Closed SuyogSoti closed 3 months ago
So the issue here is that 2.12.7 is very old. You'll want to update your Scala version to a newer 2.12 version. For example the latest is 2.12.19. This should be an easy version bump.
Unfortunately, I am in a corporate environment where this is not easy and requires a large organizational effort. Are there any good work arounds?
I'm sorry to hear that, but not really. In order for Metals navigation to work, it needs semanticdb to be produced. In order for that to work, you need scalameta to be available and for you old version Scalameta isn't even published anymore. Meaning that all newer versions of Metals won't work. You could maybe try an old version of Metals that uses an older version of scalameta.
Describe the bug
Hey Team,
For work, I have to write code in scala with bazel as the build system. In order to continue using vim, I have to be able to set up metals so that I get
These are the parts of LSP that I must have in order to be able to continue using vim. The problems I face is that when I import build, some files are generated and I don't get auto-complete/go-to-def/help-hover for imported files.
They can be in the same bazel target or different. When I look at the logs for metals, I see this error right after trying to import the build.
My config (I still use packer):
Expected behavior
I expect auto-complete/go-to-def/hover-help to work for imported files (both same and different bazel targets). It would be good to make it work for external dependencies (like when we import guava cache etc) but I am building my config incrementally and haven't gotten there yet.
Operating system
macOS
Version of Metals
1.2.2
Commit of nvim-metals
4f9bf0c821092f20dd34c1a4ea5b07b0500ff089