LanguageServer.jl icon indicating copy to clipboard operation
LanguageServer.jl copied to clipboard

Cannot follow some standard modules

Open 00sapo opened this issue 3 years ago • 6 comments

image

It happens for Random module and for other more complex modules such as Flux.

It's recognised as a module, but still warns and doesn't find its symbols

00sapo avatar Jun 24 '21 16:06 00sapo

Found that with Julia 1.6.1 only Flux is not found correctly. With Julia 1.3.1 I have the above errors

00sapo avatar Jun 24 '21 16:06 00sapo

I'm getting something similar while using Spacemacs.

Screen Shot 2021-07-15 at 2 48 08 PM

This is using Julia 1.6.1

bojohnson5 avatar Jul 15 '21 18:07 bojohnson5

I can observe this too, in both Spacemacs and VSCode running on NixOS. I have tested both julia-lts-bin (1.6.6) and julia-bin (1.7.3). Whenever the language server is started with a custom project path, only packages that are explicitly added to the project are indexed. I get a “Missing Reference” for many standard modules, e.g., using Pkg or import LinearAlgebra etc.

manuelbb-upb avatar Jul 22 '22 08:07 manuelbb-upb

You can (should) add standard modules to the project.

fredrikekre avatar Jul 22 '22 08:07 fredrikekre

Ok thanks for the clarification :) I am doing so in most projects. Actually, the above "issue" arose when I tried to test one of my own packages and tried to circumvent https://github.com/julia-vscode/julia-vscode/issues/1023 by starting a LanguageServer from a project containing only said package. I was not sure if all the "Missing Reference" hints were intentional when I then used Test for example.

manuelbb-upb avatar Jul 22 '22 11:07 manuelbb-upb

You can (should) add standard modules to the project.

what does that mean

qq-me avatar Feb 11 '24 18:02 qq-me