-
-
Notifications
You must be signed in to change notification settings - Fork 347
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
semanticdb
files are deleted on every compilation
#3077
Comments
IIRC, that target dir gets recreated (by copying) from another directory, which is managed by zinc. So, even when compiling incrementally, it should contain the full set of files. I might be mistaken though. I'll review the code and the tests. Maybe, something (seemingly unrelated) has changed? |
To check:
|
@lolgab Do you already have a reproducer by any chance? |
I wrote incremental tests, but couldn't reproduce any issues with missing files yet. |
Looks like my tests never compile incrementally, although they should. |
This also breaks Scalafix when used together with incremental compilation. It works again after running |
I identified some issue but also found some possible bugs, e.g. we moved files instead of copied them. I fixed the copy issue in PR #3080. Here are the other issues:
|
Added incremental test for `JavaModule.semanticDbData` and `ScalaModule.semanticDbData`. Looks like zinc isn't compiling incrementally at all when we stop at an early compiler phase. The test don't really catch that, yet. But I also found a bug where we moved files instead of copying them. Fix #3077 Pull request: #3080
When using
metals
I noticed that thesemanticdb
files where deleted on every compilation and theout/semanticDbData.dest/data/META-INF/semanticdb/src/main/scala/app
contained only the file from the last compilation.I don't know if this has negative consequences for Metals but it doesn't seem right.
Files are deleted here
The text was updated successfully, but these errors were encountered: