-
Notifications
You must be signed in to change notification settings - Fork 9
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
Support VSCode using startup.jl #38
Comments
Can you please clarify "doesn't work"? |
It just prints the normal stack trace as if you weren't using AbbreviatedStackTraces. |
Hmm, so the issue is that the VSCodeServer has its own custom REPL functions. Anything that loads before it does will get overwritten. |
One possible workaround is to set and read an environment variable. The problem is that you'd lose the ability to display full traces on demand, as it couldn't tell the difference between an original REPL error and a general show call. |
Another hotfix is delaying the laoding in @async begin
sleep(3)
@eval using Suppressor
@eval @suppress using AbbreviatedStackTraces
end |
Looks like you can also do this with atreplinit() do _
@eval using AbbreviatedStackTraces
end |
I wonder if, now that I have the requisite code in a package extension in the master branch, that AbbreviatedStackTraces in startup.jl works without extra tricks? |
Nope, doesn't. VSCodeServer isn't defined when the extension is loaded. |
Currently AbbreviatedStackTraces doesn't work in VSCode if you have
using AbbreviatedStackTraces
in your startup.jl file. If you try tousing
again after startup, it still doesn't work. However it does work outside of VSCode using the startup.jl file and inside of VSCode not using the startup.jl file.The text was updated successfully, but these errors were encountered: