You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I use DrWatson to manage most of my projects. I've noticed that the language server does not recognize DrWatson functions, and therefore I cannot use the helper functions for relative paths etc, meaning features like "go to definition" do not work.
The basic structure is that there are multiple directories, and functions are typically placed in the src/ directory, with scripts in the scripts/ directory.
In the below example, there is a file src/my-functions.jl that contains foo() = println("bar")
# Activate project "Test" using DrWatsonusing DrWatson
quickactivate("Test")
include("../src/my-functions.jl")
foo()
julia> bar
This does not work
# Activate project "Test" using DrWatsonusing DrWatson
quickactivate("Test")
include(srcdir("my-functions.jl")) # Missing reference: srcdirfoo()
julia> bar
In this example, it's not too hard to just use relative paths, but there are certainly times when this would be unwieldy. I get the same issue when using both NeoVim and VSCode.
I have no idea how LSPs work (in general, or in this case), but if you think it's a somewhat simple fix and could point me in the right direction I'm happy to have a go!
Thanks.
The text was updated successfully, but these errors were encountered:
I use DrWatson to manage most of my projects. I've noticed that the language server does not recognize DrWatson functions, and therefore I cannot use the helper functions for relative paths etc, meaning features like "go to definition" do not work.
The basic structure is that there are multiple directories, and functions are typically placed in the
src/
directory, with scripts in thescripts/
directory.In the below example, there is a file
src/my-functions.jl
that containsfoo() = println("bar")
This does not work
In this example, it's not too hard to just use relative paths, but there are certainly times when this would be unwieldy. I get the same issue when using both NeoVim and VSCode.
I have no idea how LSPs work (in general, or in this case), but if you think it's a somewhat simple fix and could point me in the right direction I'm happy to have a go!
Thanks.
The text was updated successfully, but these errors were encountered: