Has anyone gotten VScode working with Julia 1.0?


#1

Starting the REPL from VScode errors out with

ERROR: LoadError: UndefVarError: Display not defined
Stacktrace:
 [1] top-level scope at none:0
 [2] include at ./boot.jl:317 [inlined]
 [3] include_relative(::Module, ::String) at ./loading.jl:1038
 [4] include(::Module, ::String) at ./sysimg.jl:29
 [5] exec_options(::Base.JLOptions) at ./client.jl:229
 [6] _start() at ./client.jl:421
in expression starting at /Users/abmlab/.vscode/extensions/julialang.language-julia-0.10.3/scripts/terminalserver/terminalserver.jl:39

version info:
julia> versioninfo()

Julia Version 1.0.0
Commit 5d4eaca0c9 (2018-08-08 20:58 UTC)
Platform Info:
  OS: macOS (x86_64-apple-darwin14.5.0)
  CPU: Intel(R) Core(TM) i5-4278U CPU @ 2.60GHz
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-6.0.0 (ORCJIT, haswell)

#2

VScode runs under Julia v0.7.0 with quite a few deprecations. Given that Julia v1.0.0 is like v0.7.0 with the deprecations gone (i.e. not working at all), I would not expect it to work at all.


VS code is excellent!
#3

We are working on a release for 1.0, but it isn’t done yet.


#4

Need any help?


#5

Probably, but I think Zac has done a lot already and we need to merge that first…


#6

Is there any time line for this?


#7

Not really, I’m afraid… Zac is working on it, but my semester started and right now I don’t have much time…


#8

I understand some people have VSCode working?
I am using VS Code 1.27.2 and Julia 1.0 (or maybe 1.0.1) and still get the error (as in the first post above)
ERROR: LoadError: UndefVarError: Display not defined

any ideas?


#9

Just got the master version here. It works with Julia 1.0.1 and VSCode 1.28. Thanks to devs.


#10

Any update? I guess Julia Computing may want to spare more resources to make Julia work on VS Code.


#11

We are working on it and making good progress but I don’t know when it will be done. Julia Computing is not involved in any significant way in the development of the extension, it is all volunteer time.


#12

I am really happy that you are making progress! It already loads on Julia 1.0 on Emacs with a slightly modified lsp-julia; LanguageServer, StaticLint, and CSTParser must be on master, although it still crashes from time to time. Are bug reports already useful for you at this stage?


#13

Yes please do report crashes including the (Julia) stacktraces to https://github.com/JuliaEditorSupport/julia-vscode/issues


#14

While the new version is not released, I’ve been using it for juliav1.0 code with the executable path pointing to julia v0.6.
It provides basic editing features reasonably well (unicode symbol tab completion, basic linter, etc…). Of course, it doesn’t work well for code execution.