Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

clean does not seem to work with java projects #7187

Open
johnynek opened this issue Mar 24, 2023 · 0 comments
Open

clean does not seem to work with java projects #7187

johnynek opened this issue Mar 24, 2023 · 0 comments
Labels

Comments

@johnynek
Copy link

steps

  1. Make a minimal subproject in a multiproject build that has a few files of only java.
  2. compile the code: mysubproject/compile
  3. view that the class files are generated
  4. clean: mysubproject/clean
  5. verify that the classes are gone
  6. compile the code again and see that nothing happens.

problem

It seems that some in-memory state in sbt is failing to be synced with the disk state.

Workaround: exit sbt after the clean and restart and it works. Again this suggests it is memory state, not disk state that is incorrect.

expectation

javac should be invoked again on the sources.

notes

you can see an example of this in this repo: johnynek/bosatsu#974

check it out at johnynek/bosatsu@c5a623d and
try this set of steps:

  1. truffle/compile
  2. truffle/test (should pass)
  3. truffle/clean
  4. truffle/test (now it fails, and compile won't fix it. exit sbt and restart and it should work again).
@johnynek johnynek added the Bug label Mar 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant