I am working on a package locally and it seems like VSCode + LangServer don’t recognize the references to the package and it’s exported methods.
For example:
using TestPackage
using CSV
using DataFrames
using BenchmarkTools
using TestPackage.SomeModule: update!
Here TestPackage and all the references would get a not defined error with yellow underscores, in the imports as well as all references in the file. However when executed with the repl within VSCode everything works fine.
I already tried restarting, clearning the cache, dev . and activate .
What is the recommended approach to locally develop a package and make the tools aware of it when within that repo.
I also tried to exclude the package name and do a relative import like so but then not only the language server errors out, so does the repl, with not found:
Seems like most solutions revolve around this. I tried that and it doesn’t work for me using TestItemRunner.jl not native tests, which is the required package to run tests in VSCode (althought its broken on its own).
The solution with multiple packages within the package works, but its very very cumbersome to be practical and keep all deps in sync.
I’m quite surprised using the default tools i can’t get the tests to recognize the package they are testing, this has to be a bug ?