My current workaround (when needing test-dependencies intellisense besides MyPackage.jl):
create a new MyPackageTest.jl project (at the same dir level as MyPackage.jl)
name the .jl files exactly as I would if I were writing the tests inside the test directory within MyPackage.jl
the entry point for MyPackageTest.jl only includes runtests.jl + force copy functionality (acting as a one-way mirror and replacing the test files inside MyPackage/test)
The only inconvenience is that I now need two VSCode instances - but no more issues with autocompletion (at least, this is the only way I can write tests with autocompletion for both the package I working on and the test dependencies).
I am thinking of making it a template that can be hydrated with any package.
I am not saying this in bad faith - but I feel that we shouldnāt need to try crazy workarounds to have decent tooling. But at the same time, I know that this is OSS - so my feelings are just that - feelings - I cannot really demand things.
Partially a joke: @gdalle, youāll have to remove modern in front of the workflow when presenting the test side of things in your blog entry.
Well, but we - as an OS community - can try to organize the development of high quality tooling if we need it. If 10000 Julia users pay 10 EUR each we could pay a full-time developer for a yearā¦
OK, perhaps not so realistic, but with a mix of public, commercial and community funding it should be possible to pay someone to fix the vscode Julia issuesā¦
I want to repeat my suggestion to have a Zoom call to do some brainstorming how this could be doneā¦
A funny (and maybe inspiring) story from the F# community.
They created Fable - that transpiles F# to JavaScript (and these days to Rust, Python and more).
They used F# to develop the VS Code plugin for F# development (ionide) and compiled it to JavaScript.
The quality of the extension is just amazing.
/start :dream
The takeaway: letās create JS.jl so lots of Julia developers can work on the tooling - and as a side effect, get Julia competitive in the web development area (not only as a backend language) and get an additional incentive for people to come to Julia.
Iām using my default Pkg environment (called ā1.9ā), in which Foo and Bar are both devved.
Youāre right I meant to say using
Iām finding it really hard to find any useful documentation or even code to help figure out the problem. Iām not averse to trying to solve this myself, but I really donāt know where to begin, so thank you for engaging!
VS Code must be configured to be using that environment.
The file you are working with must either be
A. A script that uses or imports the package in question.
B. Included by the top level module named after the environment.