I have created a package in the ~.julia\dev directory. I used PkgTemplates for its creation.
The package seems to have a correct project.toml and manifest.toml.
The package name was not found in ~.julia\environments\v1.6\project.toml. I tried the recommended Pkg.resolve command to no avail. Here is a list of commands tried with the results from the REPL.
julia> using Winding
ERROR: ArgumentError: Package Winding not found in current path:
- Run `import Pkg; Pkg.add("Winding")` to install the Winding package.
Stacktrace:
[1] require(into::Module, mod::Symbol)
@ Base .\loading.jl:893
(@v1.6) pkg> resolve
No Changes to `C:\Users\jakez\.julia\environments\v1.6\Project.toml`
No Changes to `C:\Users\jakez\.julia\environments\v1.6\Manifest.toml`
(@v1.6) pkg> activate Winding
Activating new environment at `C:\Users\jakez\Winding\Project.toml`
(Winding) pkg> resolve
No Changes to `C:\Users\jakez\Winding\Project.toml`
No Changes to `C:\Users\jakez\Winding\Manifest.toml`
(Winding) pkg> instantiate
(Winding) pkg> up
Updating registry at `C:\Users\jakez\.julia\registries\General`
Updating git-repo `https://github.com/JuliaRegistries/General.git`
No Changes to `C:\Users\jakez\Winding\Project.toml`
No Changes to `C:\Users\jakez\Winding\Manifest.toml`
(Winding) pkg>
When I have using Winding
in a file and execute it with Shift Enter
in VSCode I get the following more verbose error message.
[ Info: Precompiling Winding [49faafe7-1138-4428-b534-1ec25822d20a]
ERROR: LoadError: KeyError: key Winding [49faafe7-1138-4428-b534-1ec25822d20a] not found
Stacktrace:
[1] getindex
@ .\dict.jl:482 [inlined]
[2] root_module
@ .\loading.jl:979 [inlined]
[3] require(uuidkey::Base.PkgId)
@ Base .\loading.jl:945
[4] require(into::Module, mod::Symbol)
@ Base .\loading.jl:923
[5] eval
@ .\boot.jl:360 [inlined]
[6] include_string(mapexpr::typeof(REPL.softscope), mod::Module, code::String, filename::String)
@ Base .\loading.jl:1116
[7] invokelatest(::Any, ::Any, ::Vararg{Any, N} where N; kwargs::Base.Iterators.Pairs{Union{}, Union{}, Tuple{}, NamedTuple{(), Tuple{}}})
@ Base .\essentials.jl:708
[8] invokelatest(::Any, ::Any, ::Vararg{Any, N} where N)
@ Base .\essentials.jl:706
[9] inlineeval(m::Module, code::String, code_line::Int64, code_column::Int64, file::String; softscope::Bool)
@ VSCodeServer c:\Users\jakez\.vscode\extensions\julialang.language-julia-1.5.6\scripts\packages\VSCodeServer\src\eval.jl:238
[10] (::VSCodeServer.var"#58#62"{Bool, Bool, Module, Int64, Int64, String, VSCodeServer.ReplRunCodeRequestParams})()
@ VSCodeServer c:\Users\jakez\.vscode\extensions\julialang.language-julia-1.5.6\scripts\packages\VSCodeServer\src\eval.jl:182
[11] withpath(f::VSCodeServer.var"#58#62"{Bool, Bool, Module, Int64, Int64, String, VSCodeServer.ReplRunCodeRequestParams}, path::String)
@ VSCodeServer c:\Users\jakez\.vscode\extensions\julialang.language-julia-1.5.6\scripts\packages\VSCodeServer\src\repl.jl:185
[12] (::VSCodeServer.var"#57#61"{Bool, Bool, Bool, Module, Int64, Int64, String, VSCodeServer.ReplRunCodeRequestParams})()
@ VSCodeServer c:\Users\jakez\.vscode\extensions\julialang.language-julia-1.5.6\scripts\packages\VSCodeServer\src\eval.jl:180
[13] hideprompt(f::VSCodeServer.var"#57#61"{Bool, Bool, Bool, Module, Int64, Int64, String, VSCodeServer.ReplRunCodeRequestParams})
@ VSCodeServer c:\Users\jakez\.vscode\extensions\julialang.language-julia-1.5.6\scripts\packages\VSCodeServer\src\repl.jl:36
[14] (::VSCodeServer.var"#56#60"{Bool, Bool, Bool, Module, Int64, Int64, String, VSCodeServer.ReplRunCodeRequestParams})()
@ VSCodeServer c:\Users\jakez\.vscode\extensions\julialang.language-julia-1.5.6\scripts\packages\VSCodeServer\src\eval.jl:151
[15] with_logstate(f::Function, logstate::Any)
@ Base.CoreLogging .\logging.jl:491
[16] with_logger
@ .\logging.jl:603 [inlined]
[17] (::VSCodeServer.var"#55#59"{VSCodeServer.ReplRunCodeRequestParams})()
@ VSCodeServer c:\Users\jakez\.vscode\extensions\julialang.language-julia-1.5.6\scripts\packages\VSCodeServer\src\eval.jl:228
[18] #invokelatest#2
@ .\essentials.jl:708 [inlined]
[19] invokelatest(::Any)
@ Base .\essentials.jl:706
[20] macro expansion
@ c:\Users\jakez\.vscode\extensions\julialang.language-julia-1.5.6\scripts\packages\VSCodeServer\src\eval.jl:34 [inlined]
[21] (::VSCodeServer.var"#53#54")()
@ VSCodeServer .\task.jl:411
in expression starting at c:\Users\jakez\.julia\dev\Winding\example\caliper.jl:5
I think something is broken somewhere in the Project.toml and/or Manifest.toml, but am not sure where.