Giter Club home page Giter Club logo

Comments (11)

ZacLN avatar ZacLN commented on May 22, 2024

Could you restart it and then when it crashes open the output bar (View: Toggle Output, the key binding should be C-K C-H), switch to 'julia Language Server' in the drop down on the right hand side and paste the output.

Cheers!

from julia-vscode.

davidanthoff avatar davidanthoff commented on May 22, 2024

The key binding for View: Toggle Output is Ctrl+Shift+U on Windows.

from julia-vscode.

Ken-B avatar Ken-B commented on May 22, 2024

There you go.

INFO: Initializing package repository /Users/ken/.vscode/extensions/julialang.language-julia-0.5.0-beta.2/scripts/languageserver/julia_pkgdir/v0.5
INFO: Package directory /Users/ken/.vscode/extensions/julialang.language-julia-0.5.0-beta.2/scripts/languageserver/julia_pkgdir/v0.5 is already initialized.
INFO: Installing Lint v0.2.5
INFO: Removing JSON v0.8.0
ERROR: LoadError: KeyError: key "PATH" not found
 in access_env(::Base.##339#340, ::String) at ./env.jl:45
 in getindex(::Base.EnvHash, ::String) at ./env.jl:73
 in getindex(::Base.EnvHash, ::String) at /Applications/Julia-0.5.app/Contents/Resources/julia/lib/julia/sys.dylib:?
 in include_from_node1(::String) at ./loading.jl:488
 in include_from_node1(::String) at /Applications/Julia-0.5.app/Contents/Resources/julia/lib/julia/sys.dylib:?
 in load_juliarc() at ./client.jl:274
 in process_options(::Base.JLOptions) at ./client.jl:216
 in _start() at ./client.jl:318
 in _start() at /Applications/Julia-0.5.app/Contents/Resources/julia/lib/julia/sys.dylib:?
while loading /Applications/Julia-0.5.app/Contents/Resources/julia/etc/julia/juliarc.jl, in expression starting on line 9
INFO: Another julia language server process is currently updating packages, trying again in 1 second.
ERROR: LoadError: KeyError: key "params" not found
 in getindex(::Dict{String,Any}, ::String) at ./dict.jl:688
 in parse(::Type{JSONRPC.Request}, ::String) at /Users/ken/.vscode/extensions/julialang.language-julia-0.5.0-beta.2/scripts/languageserver/jsonrpc.jl:33
 in run(::LanguageServer) at /Users/ken/.vscode/extensions/julialang.language-julia-0.5.0-beta.2/scripts/languageserver/languageserver.jl:28
 in include_from_node1(::String) at ./loading.jl:488
 in include_from_node1(::String) at /Applications/Julia-0.5.app/Contents/Resources/julia/lib/julia/sys.dylib:?
 in process_options(::Base.JLOptions) at ./client.jl:262
 in _start() at ./client.jl:318
 in _start() at /Applications/Julia-0.5.app/Contents/Resources/julia/lib/julia/sys.dylib:?
while loading /Users/ken/.vscode/extensions/julialang.language-julia-0.5.0-beta.2/scripts/languageserver/main.jl, in expression starting on line 43
[Info  - 6:45:30 PM] Connection to server got closed. Server will restart.
INFO: Initializing package repository /Users/ken/.vscode/extensions/julialang.language-julia-0.5.0-beta.2/scripts/languageserver/julia_pkgdir/v0.5
INFO: Package directory /Users/ken/.vscode/extensions/julialang.language-julia-0.5.0-beta.2/scripts/languageserver/julia_pkgdir/v0.5 is already initialized.
INFO: Installing JSON v0.8.0
INFO: Removing Lint v0.2.5
ERROR: LoadError: KeyError: key "PATH" not found
 in access_env(::Base.##339#340, ::String) at ./env.jl:45
 in getindex(::Base.EnvHash, ::String) at ./env.jl:73
 in getindex(::Base.EnvHash, ::String) at /Applications/Julia-0.5.app/Contents/Resources/julia/lib/julia/sys.dylib:?
 in include_from_node1(::String) at ./loading.jl:488
 in include_from_node1(::String) at /Applications/Julia-0.5.app/Contents/Resources/julia/lib/julia/sys.dylib:?
 in load_juliarc() at ./client.jl:274
 in process_options(::Base.JLOptions) at ./client.jl:216
 in _start() at ./client.jl:318
 in _start() at /Applications/Julia-0.5.app/Contents/Resources/julia/lib/julia/sys.dylib:?
while loading /Applications/Julia-0.5.app/Contents/Resources/julia/etc/julia/juliarc.jl, in expression starting on line 9
INFO: Another julia language server process is currently updating packages, trying again in 1 second.
ERROR: LoadError: UndefVarError: LintContext not defined
 in Block(::Bool, ::Expr, ::Range) at /Users/ken/.vscode/extensions/julialang.language-julia-0.5.0-beta.2/scripts/languageserver/parse.jl:23
 in parseblocks(::String, ::LanguageServer, ::Bool) at /Users/ken/.vscode/extensions/julialang.language-julia-0.5.0-beta.2/scripts/languageserver/parse.jl:79
 in process(::JSONRPC.Request{Val{Symbol("textDocument/didOpen")},DidOpenTextDocumentParams}, ::LanguageServer) at /Users/ken/.vscode/extensions/julialang.language-julia-0.5.0-beta.2/scripts/languageserver/provider_misc.jl:25
 in run(::LanguageServer) at /Users/ken/.vscode/extensions/julialang.language-julia-0.5.0-beta.2/scripts/languageserver/languageserver.jl:30
 in include_from_node1(::String) at ./loading.jl:488
 in include_from_node1(::String) at /Applications/Julia-0.5.app/Contents/Resources/julia/lib/julia/sys.dylib:?
 in process_options(::Base.JLOptions) at ./client.jl:262
 in _start() at ./client.jl:318
 in _start() at /Applications/Julia-0.5.app/Contents/Resources/julia/lib/julia/sys.dylib:?
while loading /Users/ken/.vscode/extensions/julialang.language-julia-0.5.0-beta.2/scripts/languageserver/main.jl, in expression starting on line 43
[Error - 6:45:37 PM] Connection to server got closed. Server will not be restarted.
[Error - 6:45:37 PM] Connection to server is erroring. Shutting down server.

from julia-vscode.

davidanthoff avatar davidanthoff commented on May 22, 2024

Ah, this is somehow related to our package installation story. I'm trying something completely different for that now, hold tight.

from julia-vscode.

ZacLN avatar ZacLN commented on May 22, 2024

@davidanthoff this maybe related to this? I'm shooting in the dark here but is the PATH env not being passed in our spawnOptions on Mac?

from julia-vscode.

davidanthoff avatar davidanthoff commented on May 22, 2024

Here is what I'm trying for now: put all the packages that we need as submodules into this git repo, so that they will be shipped in the VSIX file for the extension. If that works, we won't even need any setup code, all the package code would just be deployed with the extension itself. I hope that is more robust, and it would certainly speed up first-use things a lot.

from julia-vscode.

ZacLN avatar ZacLN commented on May 22, 2024

That sounds good

from julia-vscode.

davidanthoff avatar davidanthoff commented on May 22, 2024

@Ken-B Can you try beta 3?

from julia-vscode.

davidanthoff avatar davidanthoff commented on May 22, 2024

I'll keep the issue open until you report that things work.

from julia-vscode.

Ken-B avatar Ken-B commented on May 22, 2024

beta3 did the job, thank you very much @davidanthoff and @ZacLN !

from julia-vscode.

davidanthoff avatar davidanthoff commented on May 22, 2024

Excellent, thanks for testing!

from julia-vscode.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.