Ok, interesting, what do I use as a workspace?
It really is your choice, but as a general rule I try to keep code doing similar things together. Judging by the path in your screenshots, I would run
using Pkg
Pkg.activate("C:/Users/Brett/Documents/Tutorials and Tests")
But either way, you are going to want to read the full Pkg.jl docs here
Looking over the docs now. I see what you mean about path now. I don’t want them all to be in tutorials and tests, but I have 4 folders in my documents, that I want to use, (although I these are for different kinds of projects).
Ok, now I can’t get plots to load and somehow I removed my status bar, so I can’t tell if it’s done indexing or not.
I thought it was because it wasn’t signed into GitHub. It started doing packeges, then it did 5 rows and gave the same crashed warning.
At least I have Plots working, and Weave might be working, so I’m about caught up to where I was this morning.
I installed Julia Language support 1.1.15 in VSCode. I observe that Julia Language Server Indexing.is always indexing (since hours). Going back to Julia Language support 1.0.10 the Julia Language Server Indexing.process takes just some minutes only.
Julia Version 1.5.3
Commit 788b2c77c1 (2020-11-09 13:37 UTC)
Platform Info:
OS: Windows (x86_64-w64-mingw32)
CPU: AMD Ryzen 5 3500U with Radeon Vega Mobile Gfx
WORD_SIZE: 64
LIBM: libopenlibm
LLVM: libLLVM-9.0.1 (ORCJIT, znver1)
Environment:
JULIA_EDITOR = "C:\Users\benec\AppData\Local\Programs\Microsoft VS Code\Code.exe"
JULIA_NUM_THREADS =
That’s very possible if you’re using an environment with many packages. This release changed the cache format, so everything needs to be re-indexed.
For several hours?
(@v1.5) pkg> st
Status `C:\Users\benec\.julia\environments\v1.5\Project.toml`
[537997a7] AbstractPlotting v0.12.18
[46ada45e] Agents v4.0.4
[13f3f980] CairoMakie v0.3.4
[5ae59095] Colors v0.12.6
[41a84b80] ComplexValues v0.2.1
[a93c6f00] DataFrames v0.22.5
[0c46a032] DifferentialEquations v6.16.0
[31c24e10] Distributions v0.23.12
[634d3b9d] DrWatson v1.18.1
[e9467ef8] GLMakie v0.1.13
[28b8d3ca] GR v0.54.0
[95701278] ImplicitEquations v1.0.4
[98e50ef6] JuliaFormatter v0.13.1
[2b0e0bc5] LanguageServer v3.2.0
[093fc24a] LightGraphs v1.3.5
[ae8d54c2] Luxor v2.8.0
[dbd62bd0] MakieGallery v0.2.17
[e296ed71] MakieThemes v0.0.2
[5fb14364] OhMyREPL v0.5.10
[65888b18] ParameterizedFunctions v5.9.0
[91a5bcdd] Plots v1.10.4 `https://github.com/JuliaPlots/Plots.jl.git#master`
[3a141323] PolynomialRoots v1.0.0
[d330b81b] PyPlot v2.9.0 `https://github.com/JuliaPy/PyPlot.jl.git#master`
[b3cc710f] StaticLint v4.5.0
[276b4fcb] WGLMakie v0.2.9
[83775a58] Zlib_jll v1.2.11+18
[37e2e46d] LinearAlgebra
[9a3f8284] Random
[10745b16] Statistics
It shouldn’t take that long. You can click on the “Indexing…” message, which should take you to a log of what’s been indexed in the past. Would be great if you could report what package it’s stuck on.
I have a similar problem, the Julia server keeps crashing with the new extension and it seems to be related to indexing. Here’s the log
[ Info: Starting the Julia Language Server
[ Info: Symbol server store is at '/home/lorenzo/.config/VSCodium/User/globalStorage/julialang.language-julia/symbolstorev4'.
[ Info: Indexing Interact...
┌ Warning: Some Julia code in the VS Code extension crashed with
│ e =
│ MethodError: Cannot `convert` an object of type Nothing to an object of type Bool
│ Closest candidates are:
│ convert(::Type{T}, !Matched::T) where T<:Number at number.jl:6
│ convert(::Type{T}, !Matched::Number) where T<:Number at number.jl:7
│ convert(::Type{T}, !Matched::Ptr) where T<:Integer at pointer.jl:23
│ ...
└ @ Main ~/.vscode-oss/extensions/julialang.language-julia-1.1.15/scripts/error_handler.jl:5
ERROR: MethodError: Cannot `convert` an object of type Nothing to an object of type Bool
Closest candidates are:
convert(::Type{T}, !Matched::T) where T<:Number at number.jl:6
convert(::Type{T}, !Matched::Number) where T<:Number at number.jl:7
convert(::Type{T}, !Matched::Ptr) where T<:Integer at pointer.jl:23
...
Stacktrace:
[1] DocumentFormat.FormatOptions(::Int64, ::Bool, ::Bool, ::Bool, ::Bool, ::Bool, ::Bool, ::Bool, ::Bool, ::Nothing, ::Bool, ::String) at /home/lorenzo/.vscode-oss/extensions/julialang.language-julia-1.1.15/scripts/packages/DocumentFormat/src/DocumentFormat.jl:11
[2] request_julia_config(::LanguageServerInstance, ::JSONRPC.JSONRPCEndpoint{Base.PipeEndpoint,Base.PipeEndpoint}) at /home/lorenzo/.vscode-oss/extensions/julialang.language-julia-1.1.15/scripts/packages/LanguageServer/src/requests/workspace.jl:117
[3] initialized_notification(::LanguageServer.InitializedParams, ::LanguageServerInstance, ::JSONRPC.JSONRPCEndpoint{Base.PipeEndpoint,Base.PipeEndpoint}) at /home/lorenzo/.vscode-oss/extensions/julialang.language-julia-1.1.15/scripts/packages/LanguageServer/src/requests/init.jl:178
[4] (::LanguageServer.var"#112#147"{LanguageServerInstance})(::JSONRPC.JSONRPCEndpoint{Base.PipeEndpoint,Base.PipeEndpoint}, ::LanguageServer.InitializedParams) at /home/lorenzo/.vscode-oss/extensions/julialang.language-julia-1.1.15/scripts/packages/LanguageServer/src/languageserverinstance.jl:285
[5] dispatch_msg(::JSONRPC.JSONRPCEndpoint{Base.PipeEndpoint,Base.PipeEndpoint}, ::JSONRPC.MsgDispatcher, ::Dict{String,Any}) at /home/lorenzo/.vscode-oss/extensions/julialang.language-julia-1.1.15/scripts/packages/JSONRPC/src/typed.jl:66
[6] run(::LanguageServerInstance) at /home/lorenzo/.vscode-oss/extensions/julialang.language-julia-1.1.15/scripts/packages/LanguageServer/src/languageserverinstance.jl:312
[7] top-level scope at /home/lorenzo/.vscode-oss/extensions/julialang.language-julia-1.1.15/scripts/languageserver/main.jl:59
[Info - 13:08:27] Connection to server got closed. Server will restart.
[Error - 13:08:27] Request textDocument/documentSymbol failed.
Error: Connection got disposed.
at Object.dispose (/home/lorenzo/.vscode-oss/extensions/julialang.language-julia-1.1.15/dist/extension.js:7:186220)
at Object.dispose (/home/lorenzo/.vscode-oss/extensions/julialang.language-julia-1.1.15/dist/extension.js:1:61757)
at x.handleConnectionClosed (/home/lorenzo/.vscode-oss/extensions/julialang.language-julia-1.1.15/dist/extension.js:1:61969)
at x.handleConnectionClosed (/home/lorenzo/.vscode-oss/extensions/julialang.language-julia-1.1.15/dist/extension.js:7:66938)
at t (/home/lorenzo/.vscode-oss/extensions/julialang.language-julia-1.1.15/dist/extension.js:1:60062)
at invoke (/home/lorenzo/.vscode-oss/extensions/julialang.language-julia-1.1.15/dist/extension.js:1:116025)
at o.fire (/home/lorenzo/.vscode-oss/extensions/julialang.language-julia-1.1.15/dist/extension.js:1:116786)
at Y (/home/lorenzo/.vscode-oss/extensions/julialang.language-julia-1.1.15/dist/extension.js:7:175582)
at invoke (/home/lorenzo/.vscode-oss/extensions/julialang.language-julia-1.1.15/dist/extension.js:1:116025)
at o.fire (/home/lorenzo/.vscode-oss/extensions/julialang.language-julia-1.1.15/dist/extension.js:1:116786)
at m.fireClose (/home/lorenzo/.vscode-oss/extensions/julialang.language-julia-1.1.15/dist/extension.js:7:165655)
at Socket.<anonymous> (/home/lorenzo/.vscode-oss/extensions/julialang.language-julia-1.1.15/dist/extension.js:7:167235)
at Socket.emit (events.js:327:22)
at Pipe.<anonymous> (net.js:674:12)
[Error - 13:08:27] Request textDocument/codeAction failed.
Error: Connection got disposed.
at Object.dispose (/home/lorenzo/.vscode-oss/extensions/julialang.language-julia-1.1.15/dist/extension.js:7:186220)
at Object.dispose (/home/lorenzo/.vscode-oss/extensions/julialang.language-julia-1.1.15/dist/extension.js:1:61757)
at x.handleConnectionClosed (/home/lorenzo/.vscode-oss/extensions/julialang.language-julia-1.1.15/dist/extension.js:1:61969)
at x.handleConnectionClosed (/home/lorenzo/.vscode-oss/extensions/julialang.language-julia-1.1.15/dist/extension.js:7:66938)
at t (/home/lorenzo/.vscode-oss/extensions/julialang.language-julia-1.1.15/dist/extension.js:1:60062)
at invoke (/home/lorenzo/.vscode-oss/extensions/julialang.language-julia-1.1.15/dist/extension.js:1:116025)
at o.fire (/home/lorenzo/.vscode-oss/extensions/julialang.language-julia-1.1.15/dist/extension.js:1:116786)
at Y (/home/lorenzo/.vscode-oss/extensions/julialang.language-julia-1.1.15/dist/extension.js:7:175582)
at invoke (/home/lorenzo/.vscode-oss/extensions/julialang.language-julia-1.1.15/dist/extension.js:1:116025)
at o.fire (/home/lorenzo/.vscode-oss/extensions/julialang.language-julia-1.1.15/dist/extension.js:1:116786)
at m.fireClose (/home/lorenzo/.vscode-oss/extensions/julialang.language-julia-1.1.15/dist/extension.js:7:165655)
at Socket.<anonymous> (/home/lorenzo/.vscode-oss/extensions/julialang.language-julia-1.1.15/dist/extension.js:7:167235)
at Socket.emit (events.js:327:22)
at Pipe.<anonymous> (net.js:674:12)
That’s https://github.com/julia-vscode/LanguageServer.jl/issues/884. We’re working on a fix.
Julia Language Server Indexing has been just finished
Should this be resolved ? Because I’ve noticed that the issue is marked as closed now, but my problem persists even after the update to the extension (version 1.1.16). The logs seem to be the same, but I’ll post them just in case I’m missing something important.
[ Info: Starting the Julia Language Server
[ Info: Symbol server store is at '/home/lorenzo/.config/VSCodium/User/globalStorage/julialang.language-julia/symbolstorev4'.
[ Info: Indexing Interact...
┌ Warning: Some Julia code in the VS Code extension crashed with
│ e =
│ MethodError: Cannot `convert` an object of type Nothing to an object of type Bool
│ Closest candidates are:
│ convert(::Type{T}, !Matched::T) where T<:Number at number.jl:6
│ convert(::Type{T}, !Matched::Number) where T<:Number at number.jl:7
│ convert(::Type{T}, !Matched::Ptr) where T<:Integer at pointer.jl:23
│ ...
└ @ Main ~/.vscode-oss/extensions/julialang.language-julia-1.1.16/scripts/error_handler.jl:5
ERROR: MethodError: Cannot `convert` an object of type Nothing to an object of type Bool
Closest candidates are:
convert(::Type{T}, !Matched::T) where T<:Number at number.jl:6
convert(::Type{T}, !Matched::Number) where T<:Number at number.jl:7
convert(::Type{T}, !Matched::Ptr) where T<:Integer at pointer.jl:23
...
Stacktrace:
[1] DocumentFormat.FormatOptions(::Int64, ::Bool, ::Bool, ::Bool, ::Bool, ::Bool, ::Bool, ::Bool, ::Bool, ::Nothing, ::Bool, ::String) at /home/lorenzo/.vscode-oss/extensions/julialang.language-julia-1.1.16/scripts/packages/DocumentFormat/src/DocumentFormat.jl:11
[2] request_julia_config(::LanguageServerInstance, ::JSONRPC.JSONRPCEndpoint{Base.PipeEndpoint,Base.PipeEndpoint}) at /home/lorenzo/.vscode-oss/extensions/julialang.language-julia-1.1.16/scripts/packages/LanguageServer/src/requests/workspace.jl:117
[3] initialized_notification(::LanguageServer.InitializedParams, ::LanguageServerInstance, ::JSONRPC.JSONRPCEndpoint{Base.PipeEndpoint,Base.PipeEndpoint}) at /home/lorenzo/.vscode-oss/extensions/julialang.language-julia-1.1.16/scripts/packages/LanguageServer/src/requests/init.jl:178
[4] (::LanguageServer.var"#112#147"{LanguageServerInstance})(::JSONRPC.JSONRPCEndpoint{Base.PipeEndpoint,Base.PipeEndpoint}, ::LanguageServer.InitializedParams) at /home/lorenzo/.vscode-oss/extensions/julialang.language-julia-1.1.16/scripts/packages/LanguageServer/src/languageserverinstance.jl:285
[5] dispatch_msg(::JSONRPC.JSONRPCEndpoint{Base.PipeEndpoint,Base.PipeEndpoint}, ::JSONRPC.MsgDispatcher, ::Dict{String,Any}) at /home/lorenzo/.vscode-oss/extensions/julialang.language-julia-1.1.16/scripts/packages/JSONRPC/src/typed.jl:66
[6] run(::LanguageServerInstance) at /home/lorenzo/.vscode-oss/extensions/julialang.language-julia-1.1.16/scripts/packages/LanguageServer/src/languageserverinstance.jl:312
[7] top-level scope at /home/lorenzo/.vscode-oss/extensions/julialang.language-julia-1.1.16/scripts/languageserver/main.jl:59
[Error - 14:14:15] Connection to server got closed. Server will not be restarted.
[Error - 14:14:15] Request textDocument/documentSymbol failed.
Error: Connection got disposed.
at Object.dispose (/home/lorenzo/.vscode-oss/extensions/julialang.language-julia-1.1.16/dist/extension.js:7:186220)
at Object.dispose (/home/lorenzo/.vscode-oss/extensions/julialang.language-julia-1.1.16/dist/extension.js:1:61757)
at x.handleConnectionClosed (/home/lorenzo/.vscode-oss/extensions/julialang.language-julia-1.1.16/dist/extension.js:1:61969)
at x.handleConnectionClosed (/home/lorenzo/.vscode-oss/extensions/julialang.language-julia-1.1.16/dist/extension.js:7:66938)
at t (/home/lorenzo/.vscode-oss/extensions/julialang.language-julia-1.1.16/dist/extension.js:1:60062)
at invoke (/home/lorenzo/.vscode-oss/extensions/julialang.language-julia-1.1.16/dist/extension.js:1:116270)
at o.fire (/home/lorenzo/.vscode-oss/extensions/julialang.language-julia-1.1.16/dist/extension.js:1:117031)
at Y (/home/lorenzo/.vscode-oss/extensions/julialang.language-julia-1.1.16/dist/extension.js:7:175582)
at invoke (/home/lorenzo/.vscode-oss/extensions/julialang.language-julia-1.1.16/dist/extension.js:1:116270)
at o.fire (/home/lorenzo/.vscode-oss/extensions/julialang.language-julia-1.1.16/dist/extension.js:1:117031)
at m.fireClose (/home/lorenzo/.vscode-oss/extensions/julialang.language-julia-1.1.16/dist/extension.js:7:165655)
at Socket.<anonymous> (/home/lorenzo/.vscode-oss/extensions/julialang.language-julia-1.1.16/dist/extension.js:7:167235)
at Socket.emit (events.js:327:22)
at Pipe.<anonymous> (net.js:674:12)
[Error - 14:14:15] Request textDocument/codeAction failed.
Error: Connection got disposed.
at Object.dispose (/home/lorenzo/.vscode-oss/extensions/julialang.language-julia-1.1.16/dist/extension.js:7:186220)
at Object.dispose (/home/lorenzo/.vscode-oss/extensions/julialang.language-julia-1.1.16/dist/extension.js:1:61757)
at x.handleConnectionClosed (/home/lorenzo/.vscode-oss/extensions/julialang.language-julia-1.1.16/dist/extension.js:1:61969)
at x.handleConnectionClosed (/home/lorenzo/.vscode-oss/extensions/julialang.language-julia-1.1.16/dist/extension.js:7:66938)
at t (/home/lorenzo/.vscode-oss/extensions/julialang.language-julia-1.1.16/dist/extension.js:1:60062)
at invoke (/home/lorenzo/.vscode-oss/extensions/julialang.language-julia-1.1.16/dist/extension.js:1:116270)
at o.fire (/home/lorenzo/.vscode-oss/extensions/julialang.language-julia-1.1.16/dist/extension.js:1:117031)
at Y (/home/lorenzo/.vscode-oss/extensions/julialang.language-julia-1.1.16/dist/extension.js:7:175582)
at invoke (/home/lorenzo/.vscode-oss/extensions/julialang.language-julia-1.1.16/dist/extension.js:1:116270)
at o.fire (/home/lorenzo/.vscode-oss/extensions/julialang.language-julia-1.1.16/dist/extension.js:1:117031)
at m.fireClose (/home/lorenzo/.vscode-oss/extensions/julialang.language-julia-1.1.16/dist/extension.js:7:165655)
at Socket.<anonymous> (/home/lorenzo/.vscode-oss/extensions/julialang.language-julia-1.1.16/dist/extension.js:7:167235)
at Socket.emit (events.js:327:22)
at Pipe.<anonymous> (net.js:674:12)
Pretty sure the issue is only fixed in 1.1.17 (insiders only atm). That should be promoted to an official release in a few hours or so.
Ok, thank you for the clarification and the fantastic extension!