Skip to content
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

Does README.md file have wrong demo #115

Open
AbhimanyuAryan opened this issue Jul 4, 2023 · 0 comments
Open

Does README.md file have wrong demo #115

AbhimanyuAryan opened this issue Jul 4, 2023 · 0 comments

Comments

@AbhimanyuAryan
Copy link

AbhimanyuAryan commented Jul 4, 2023

I don't understand what's causing this. There's no Colors in JSON. What should the Project.toml look like in this? Should I add Colors as deps? It's very confusing

~/Desktop/ReqDemo [ஃ v1.9.1][⏱ 1m55s]
❯
julia --project
               _
   _       _ _(_)_     |  Documentation: https://docs.julialang.org
  (_)     | (_) (_)    |
   _ _   _| |_  __ _   |  Type "?" for help, "]?" for Pkg help.
  | | | | | | |/ _` |  |
  | | |_| | | | (_| |  |  Version 1.9.1 (2023-06-07)
 _/ |\__'_|_|_|\__'_|  |  Official https://julialang.org/ release
|__/                   |

julia> include("Reqs.jl")
Main.Reqs

julia> using Reqs
ERROR: ArgumentError: Package Reqs not found in current path, maybe you meant `import/using .Reqs`.
- Otherwise, run `import Pkg; Pkg.add("Reqs")` to install the Reqs package.
Stacktrace:
 [1] macro expansion
   @ ./loading.jl:1630 [inlined]
 [2] macro expansion
   @ ./lock.jl:267 [inlined]
 [3] require(into::Module, mod::Symbol)
   @ Base ./loading.jl:1611

julia> using Main.Reqs

julia> using JSON
 │ Package JSON not found, but a package named JSON is available from a registry.
 │ Install package?
 │   (ReqDemo) pkg> add JSON
 └ (y/n/o) [y]: y
┌ Warning: could not download https://pkg.julialang.org/registries
│   exception = RequestError: HTTP/2 301 (Connection timeout after 30002 ms) while requesting https://pkg.julialang.org/registries
└ @ Pkg.Registry ~/.julia/juliaup/julia-1.9.1+0.aarch64.apple.darwin14/share/julia/stdlib/v1.9/Pkg/src/Registry/Registry.jl:69
   Resolving package versions...
    Updating `~/Desktop/ReqDemo/Project.toml`
  [682c06a0] + JSON v0.21.4
    Updating `~/Desktop/ReqDemo/Manifest.toml`
  [682c06a0] + JSON v0.21.4
  [69de0a69] + Parsers v2.7.1
  [aea7be01] + PrecompileTools v1.1.2
  [21216c6a] + Preferences v1.4.0
  [ade2ca70] + Dates
  [a63ad114] + Mmap
  [de0858da] + Printf
  [fa267f1f] + TOML v1.0.3
  [4ec0a83e] + Unicode
┌ Warning: Error requiring `JSON` from `Main.Reqs`
│   exception =
│    ArgumentError: Package Colors not found in current path.
│    - Run `import Pkg; Pkg.add("Colors")` to install the Colors package.
│    Stacktrace:
│      [1] macro expansion
│        @ ./loading.jl:1630 [inlined]
│      [2] macro expansion
│        @ ./lock.jl:267 [inlined]
│      [3] require(into::Module, mod::Symbol)
│        @ Base ./loading.jl:1611
│      [4] eval(m::Module, e::Any)
│        @ Core ./boot.jl:370
│      [5] top-level scope
│        @ none:1
│      [6] eval
│        @ ./boot.jl:370 [inlined]
│      [7] eval
│        @ ~/Desktop/ReqDemo/Reqs.jl:1 [inlined]
│      [8] (::Main.Reqs.var"#3#6")()
│        @ Main.Reqs ~/.julia/packages/Requires/Z8rfN/src/require.jl:101
│      [9] macro expansion
│        @ timing.jl:393 [inlined]
│     [10] err(f::Any, listener::Module, modname::String, file::String, line::Any)
│        @ Requires ~/.julia/packages/Requires/Z8rfN/src/require.jl:47
│     [11] (::Main.Reqs.var"#2#5")()
│        @ Main.Reqs ~/.julia/packages/Requires/Z8rfN/src/require.jl:100
│     [12] withpath(f::Any, path::String)
│        @ Requires ~/.julia/packages/Requires/Z8rfN/src/require.jl:37
│     [13] (::Main.Reqs.var"#1#4")()
│        @ Main.Reqs ~/.julia/packages/Requires/Z8rfN/src/require.jl:99
│     [14] #invokelatest#2
│        @ ./essentials.jl:816 [inlined]
│     [15] invokelatest
│        @ ./essentials.jl:813 [inlined]
│     [16] foreach(f::typeof(invokelatest), itr::Vector{Function})
│        @ Base ./abstractarray.jl:3073
│     [17] loadpkg(pkg::Base.PkgId)
│        @ Requires ~/.julia/packages/Requires/Z8rfN/src/require.jl:27
│     [18] #invokelatest#2
│        @ ./essentials.jl:816 [inlined]
│     [19] invokelatest
│        @ ./essentials.jl:813 [inlined]
│     [20] run_package_callbacks(modkey::Base.PkgId)
│        @ Base ./loading.jl:1129
│     [21] _require_prelocked(uuidkey::Base.PkgId, env::String)
│        @ Base ./loading.jl:1667
│     [22] macro expansion
│        @ ./loading.jl:1648 [inlined]
│     [23] macro expansion
│        @ ./lock.jl:267 [inlined]
│     [24] require(into::Module, mod::Symbol)
│        @ Base ./loading.jl:1611
│     [25] eval
│        @ ./boot.jl:370 [inlined]
│     [26] eval_user_input(ast::Any, backend::REPL.REPLBackend, mod::Module)
│        @ REPL ~/.julia/juliaup/julia-1.9.1+0.aarch64.apple.darwin14/share/julia/stdlib/v1.9/REPL/src/REPL.jl:153
│     [27] repl_backend_loop(backend::REPL.REPLBackend, get_module::Function)
│        @ REPL ~/.julia/juliaup/julia-1.9.1+0.aarch64.apple.darwin14/share/julia/stdlib/v1.9/REPL/src/REPL.jl:249
│     [28] start_repl_backend(backend::REPL.REPLBackend, consumer::Any; get_module::Function)
│        @ REPL ~/.julia/juliaup/julia-1.9.1+0.aarch64.apple.darwin14/share/julia/stdlib/v1.9/REPL/src/REPL.jl:234
│     [29] run_repl(repl::REPL.AbstractREPL, consumer::Any; backend_on_current_task::Bool, backend::Any)
│        @ REPL ~/.julia/juliaup/julia-1.9.1+0.aarch64.apple.darwin14/share/julia/stdlib/v1.9/REPL/src/REPL.jl:379
│     [30] run_repl(repl::REPL.AbstractREPL, consumer::Any)
│        @ REPL ~/.julia/juliaup/julia-1.9.1+0.aarch64.apple.darwin14/share/julia/stdlib/v1.9/REPL/src/REPL.jl:365
│     [31] (::Base.var"#1017#1019"{Bool, Bool, Bool})(REPL::Module)
│        @ Base ./client.jl:421
│     [32] #invokelatest#2
│        @ ./essentials.jl:816 [inlined]
│     [33] invokelatest
│        @ ./essentials.jl:813 [inlined]
│     [34] run_main_repl(interactive::Bool, quiet::Bool, banner::Bool, history_file::Bool, color_set::Bool)
│        @ Base ./client.jl:405
│     [35] exec_options(opts::Base.JLOptions)
│        @ Base ./client.jl:322
│     [36] _start()
│        @ Base ./client.jl:522
└ @ Requires ~/.julia/packages/Requires/Z8rfN/src/require.jl:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant