Closed adamw closed 1 month ago
Thanks for reporting! Does your .bloop directory contain any json files? Did it fail to import maybe? I will double check on my end
Ah yes, I removed .vscode, .metals, .bloop and .bsp before trying again. I did have to run sbt before opening metals, though, as otherwise bloop reported some other errors. Running sbt seems to initialise bloop
Best to use the reset command, which will leave json files around. It looks like the initial issues caused you to remove .bloop, which then caused the new errors. Why did you remove them in the first place? This is probably what we should concentrate on.
I removed them to try a "clean import" as the project didn't import - not sure what where the exact errors, maybe the same
the project didn't import
<- would be great to see the error from that if possible. It should actually be in .metals,though you unfortunately removed it, which is why I recommend doing a reset workspace, which only removes the files that could get corrupted.
Clean import of tapir seems to work otherwise.
Hm well I'm not sure what you'd like me to do :) I still get the same error, and the logs have
2024.09.17 14:58:27 INFO no build target found for /Users/adamw/projects/tapir/build.sbt. Using presentation compiler with project's scala-library version: 3.3.3
Did you run metals.build-import
after deleting? This should regenerate all the .bloop files. Otherwise it will not load any build targets.
Ah ... clicking "import build" seems to have fixed the issue, after removing everything one more time (this time alse project/.bloop
). But maybe this would have helped from the beginning ...
Anyway, thanks! :)
Describe the bug
When opening Tapir using VSCode + Metals, I get an "empty build targets" warning. Doctor says the following:
Indeed. most functionality doesn't work.
Logs:
The `SchemaMacroTest.scala bit looks suspicious. Other projects work fine. As in other projects, I have sbt settings which aims to import the projects only for one specific Scala version:
Expected behavior
Working project ;)
Operating system
macOS
Editor/Extension
VS Code
Version of Metals
1.3.5
Extra context or search terms
No response