-
Notifications
You must be signed in to change notification settings - Fork 32
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
SymbolServer.jl can't find SHA
#239
Comments
That sounds like your Manifest is invalid (created under 1.6, used with 1.7), no? |
Which one? The one I Note that my project was never supposed to depend on SHA. On top of that, the project I'm trying to use with the LanguageServer/SymbolServer here doesn't even have a Manifest.toml inside of it - it's basically a fresh clone that's not even instantiated. |
I guess the MWE for the
which really should be an issue in julia itself instead of SymbolServer, if that's the root cause... |
Hm, that works fine for me:
Are you by chance re-using the same global environment for 1.6 and 1.7? |
No, I don't even have 1.6 installed on this machine.. This install is basically just a local build of a fresh 1.7-rc1 clone. There never was 1.6 on this machine.
This is
with julia build locally, not from pacman (there were some precompile statements that didn't run during compilation, but I never checked which). |
It's possible your build is broken then. I just now rebuilt my RC1 and deleted the global env, and can't repro your issue:
|
I have my doubts that rebuilding 1.7-rc1 would fix this since I didn't change anything from the base image, but I guess I can try? I'll try clearing out the default Manifest first. |
Clearing out the manifest didn't fix it:
I'll try to rebuild. |
Notably, using other Stdlibs that depend on SHA (e.g. LibGit2) worked fine.. |
Might also be worth trying the official build. |
Ok, with a fresh build of 1.7-rc1 it works, which gave me an idea. I recently opened a PR for some doc change (JuliaLang/julia#42454), which was based on master. I didn't switch back to the 1.7-rc1 branch though, to keep the doc change around. Rebuilding forced me to switch back to the "real" 1.7-rc1 branch. Going back to the master branch on the 1.7-rc1 build also failed, so I guess this had to do with that. I'll try building master to see if it fails there as well as checking whether my language server issues are solved by just being on a pure 1.7-rc1. |
|
OK, I can confirm that the |
These seem to be the only modules it can find - am I using |
IIRC you need an instantiated environment or we'll fall back to your (presumably empty) global env. |
Hmm that does give me the symbols of dependencies, but not of the module that's defined at that path :/ Do I have to add that specially? |
I'm guessing I have to use a temporary environment, where I add Revise and the package I'm developing and use that for the symbol server environment..? Seems like a very roundabout way of doing it, but I guess that's the only way.. I think that would also pollute the symbol server cache with Revise stuff though :/ |
Ok, reading through julia-vscode/LanguageServer.jl#748 it seems what I originally wanted to do just isn't possible right now outside of VSCode. I'll add my thoughts in regards to that there. |
Hi,
as mentioned in julia-vscode/LanguageServer.jl#987, my symbol server for a language server can't seem to find
SHA
, crashing and thus making all symbols missing references. I'm on1.7-rc1
, if that matters.MWE:
will result in:
Running the following:
So I guess
SHA
is no longer available for justusing
in 1.7..?Possibly related: JuliaLang/julia#41370
The text was updated successfully, but these errors were encountered: