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

Strange output with Pkg add on 1.11.0-rc3, after "failed Task notice; giving up" #4012

Open
PallHaraldsson opened this issue Sep 3, 2024 · 12 comments

Comments

@PallHaraldsson
Copy link
Contributor

PallHaraldsson commented Sep 3, 2024

Full log after starting Julia:

(@v1.11) pkg> st
Status `~/.julia/environments/v1.11/Project.toml`
⌃ [992eb4ea] CondaPkg v0.2.20
  [f878e3a2] OpenCV v4.5.3
  [69de0a69] Parsers v2.8.1
  [91a5bcdd] Plots v1.40.8
  [438e738f] PyCall v1.96.4
⌃ [6099a3de] PythonCall v0.9.14
  [33b9d88c] OpenCV_jll v4.6.0+2
⌅ [3eaa8342] libcxxwrap_julia_jll v0.9.7+3
  [0dad84c5] ArgTools v1.1.2
Info Packages marked with ⌃ and ⌅ have new versions available. Those with ⌃ may be upgradable, but those with ⌅ are restricted by compatibility constraints from upgrading. To see why use `status --outdated`

(@v1.11) pkg> add [email protected]
   Resolving package versions...
    Updating `~/.julia/environments/v1.11/Project.toml`
  [992eb4ea] ↑ CondaPkg v0.2.20 ⇒ v0.2.23
    Updating `~/.julia/environments/v1.11/Manifest.toml`
  [992eb4ea] ↑ CondaPkg v0.2.20 ⇒ v0.2.23
Precompiling project...
  ✗ CxxWrap
  ✗ OpenCV_jll
  ✗ OpenCV
  1 dependency successfully precompiled in 20 seconds. 197 already precompiled.
  3 dependencies errored.
  For a report of the errors see `julia> err`. To retry use `pkg> precompile`

julia> @time using PythonCall
ERROR: InitError: MethodError: no method matching 
Stacktrace:
  [1] __init__()
    @ REPLExt ~/.julia/juliaup/julia-1.11.0-rc3+0.x64.linux.gnu/share/julia/stdlib/v1.11/Pkg/ext/REPLExt/REPLExt.jl:305
  [2] 
SYSTEM (REPL): showing an error caused an error
ERROR: TypeError: 
Stacktrace:
  [1] active_module()
    @ REPL ~/.julia/juliaup/julia-1.11.0-rc3+0.x64.linux.gnu/share/julia/stdlib/v1.11/REPL/src/REPL.jl:593
  [2] #invokelatest#2
    @ ./essentials.jl:1054 [inlined]
  [3] invokelatest
    @ ./essentials.jl:1051 [inlined]
  [4] active_module
    @ ./show.jl:519 [inlined]
  [5] 
SYSTEM (REPL): caught exception of type TypeError while trying to handle a nested exception; giving up

(@v1.11) pkg> add PythonCall
ERROR: MethodError: no method matching 
SYSTEM: caught exception of type :TypeError while trying to print a failed Task notice; giving up
ERROR: TaskFailedException
Stacktrace:
  [1] fatal: error thrown and no exception handler available.
TypeError(func=:typeassert, context="", expected=REPL.AbstractREPL, got=REPL.LineEditREPL(t=REPL.Terminals.TTYTerminal(term_type="xterm-256color", in_stream=Base.TTY(handle=0x0000000000789c90, status=8, buffer=Base.GenericIOBuffer{GenericMemory{:not_atomic, UInt8, Core.AddrSpace{Core}(0x00)}}(data=Memory{UInt8}(65536, 0xe07dc8)[0x0d, 0x5b, 0x43, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,

...

  #<null>]), file_path="/home/pharaldsson/.julia/logs/repl_history.jl", history_file=Base.IOStream(handle=0x00007f97df0b2e70, ios=Array{UInt8, 1}(dims=(184,), mem=Memory{UInt8}(184, 0x7f97df0b2e70)[0x90, 0x22, 0xc8, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xea, 0x03, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x15, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x7f, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00]), name="<file /home/pharaldsson/.julia/logs/repl_history.jl>", mark=-1, lock=Base.ReentrantLock(locked_by=nothing, reentrancy_cnt=0x00000000, havelock=0x00, cond_wait=Base.GenericCondition{Base.Threads.SpinLock}(waitq=Base.IntrusiveLinkedList{Task}(head=nothing, tail=nothing), lock=Base.Threads.SpinLock(owned=0)), _=(0, 0, 0)), _dolock=true), start_idx=18808, cur_idx=18809, last_idx=-1, last_buffer=Base.GenericIOBuffer{GenericMemory{:not_atomic, UInt8, Core.AddrSpace{Core}(0x00)}}(data=Memory{UInt8}(32, 0x7f97844e7ea8)[0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00], reinit=false, readable=true, writable=true, seekable=true, append=false, size=0, maxsize=9223372036854775807, ptr=1, offset=0, mark=-1), last_mode=<circular reference @-6>, mode_mapping=Base.Dict{Symbol, REPL.LineEdit.Prompt}(slots=Memory{UInt8}(16, 0x7f97de5df920)[0x00, 0x00, 0x00, 0x96, 0xaf, 0xd0, 0x00, 0x00, 0x00, 0x00, 0xd5, 0x00, 0x00, 0x00, 0x00, 0x00], keys=Memory{Symbol}(16, 0x7f97dec03400)[
  #<null>,
  #<null>,
  #<null>,
  :julia,
  :help,
  :pkg,
  #<null>,
  #<null>,
  #<null>,
  #<null>,
  :shell,
  #<null>,
  #<null>,
  #<null>,
  #<null>,
  #<null>], vals=Memory{REPL.LineEdit.Prompt}(16, 0x7f97dec034a0)[
  #<null>,
  #<null>,
  #<null>,
  <circular reference @-8>,
  REPL.LineEdit.Prompt(prompt=REPL.var"#103#104"{REPL.LineEditREPL, String}(repl=<circular reference @-14>, prompt="help?> ")
@favba
Copy link

favba commented Sep 5, 2024

I'm also seeing a very strange error, with a similar error.
Here is a recording of what happened.
I hit ctrl+C to stop the error messages. I seems to print it forever if I don't kill it.
julia_error

@favba
Copy link

favba commented Sep 5, 2024

Here are the last few errors lines:

...
  REPL.var"#97#100"{REPL.LineEdit.Prompt}(julia_prompt=<circular reference @-9>),
  #<null>,
  #<null>,
  REPL.LineEdit.KeyAlias(seq="\b"),
  #<null>,
  #<null>,
  #<null>,
  nothing,
  REPL.LineEdit.var"#154#210"(),
  REPL.LineEdit.KeyAlias(seq="\r"),
  REPL.LineEdit.var"#127#183"(),
  REPL.LineEdit.var"#151#207"(),
  #<null>,
  #<null>,
  REPL.LineEdit.var"#125#181"(),
  #<null>,
  #<null>,
  #<null>,
  nothing,
  REPL.LineEdit.var"#158#214"(),
  nothing,
  nothing,
  REPL.LineEdit.var"#145#201"(),
  nothing,
  #<null>,
  #<null>,
  #<null>,
  #<null>,
  REPL.LineEdit.var"#150#206"(),
  #<null>,
  Base.Dict{Char, Any}(slots=Memory{UInt8}(64, 0x7fa797c8a240)[0xfe, 0x00, 0xca, 0xcd, 0x00, 0x00, 0x00, 0xb9, 0x00, 0xc0, 0xec, 0x00, 0x00, 0x99, 0x00, 0xd9, 0xab, 0x8a, 0x00, 0x00, 0x00, 0xe4, 0x00, 0xb6, 0x00, 0x9d, 0x00, 0x00, 0x00, 0x00, 0x9a, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xad, 0x00, 0x00, 0xac, 0xb3, 0xba, 0x99, 0x00, 0x00, 0x00, 0xbc, 0xda, 0xff, 0x00, 0x00, 0x00, 0x00, 0xb5, 0xd2, 0x00, 0x00, 0x00, 0x00, 0xe3, 0x00], keys=Memory{Char}(64, 0x7fa797c91a00)[Char(0x6e000000), Char(0x00000000), Char(0x66000000), Char(0x77000000), Char(0x00000001), Char(0x00000000), Char(0x97c91a20), Char(0x64000000), Char(0x97c95e10), Char(0x65000000), Char(0x5b000000), Char(0x00007fa7), Char(0x97c91a20), Char(0x08000000), Char(0x97c91a10), Char(0x3e000000), Char(0x7f000000), Char(0x3c000000), Char(0x8fdbf2f0), Char(0x00007fa7), Char(0x00000001), Char(0x0a000000), Char(0x97c91a60), Char(0x79000000), Char(0x97c95e40), Char(0x74000000), Char(0x8fdc0260), Char(0x00007fa7), Char(0x97c91a60), Char(0x00007fa7), Char(0x4f000000), Char(0x00007fa7), Char(0x00000001), Char(0x00000000), Char(0x8fdbf2f0), Char(0x00007fa7), Char(0x00000001), Char(0x00000000), Char(0x97c91aa0), Char(0x63000000), Char(0x97c95e70), Char(0x00007fa7), Char(0x70000000), Char(0xf48f9fbf), Char(0x57000000), Char(0x6d000000), Char(0x97c91a90), Char(0x00007fa7), Char(0x00000001), Char(0x0d000000), Char(0x2e000000), Char(0x5f000000), Char(0x9907e5e8), Char(0x00007fa7), Char(0x9384dff0), Char(0x00007fa7), Char(0x6c000000), Char(0x75000000), Char(0x00000090), Char(0x00000000), Char(0x00000002), Char(0x00000000), Char(0x62000000), Char(0x00007fa7)], vals=Memory{Any}(64, 0x7fa796ecc680)[
  REPL.LineEdit.var"#233#243"(),
  #<null>,
  REPL.LineEdit.var"#138#194"(),
  REPL.LineEdit.var"#148#204"(),
  #<null>,
  #<null>,
  #<null>,
  REPL.LineEdit.var"#156#212"(),
  #<null>,
  REPL.LineEdit.var"#172#228"(),
  Base.Dict{Char, Any}(slots=Memory{UInt8}(64, 0x7fa797c8a180)[0x00, 0x00, 0x00, 0x00, 0xed, 0x00, 0x00, 0x00, 0x00, 0x00, 0x93, 0xdc, 0xc9, 0x00, 0x00, 0xa2, 0xef, 0x9f, 0xc0, 0xf2, 0x00, 0x00, 0x00, 0x00, 0xba, 0x00, 0x00, 0x00, 0x00, 0xe6, 0x89, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xe6, 0x00, 0x00, 0x00, 0x00, 0xb3, 0xf8, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xbc, 0xe0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00], keys=Memory{Char}(64, 0x7fa797c918e0)[Char(0x97c95d20), Char(0x00007fa7), Char(0x8fdc0260), Char(0x00007fa7), Char(0x31000000), Char(0x00007fa7), Char(0x97c918d0), Char(0x00007fa7), Char(0x00000001), Char(0x00000000), Char(0x37000000), Char(0x36000000), Char(0x5a000000), Char(0x00000000), Char(0x97c91920), Char(0x35000000), Char(0x42000000), Char(0x43000000), Char(0x44000000), Char(0x41000000), Char(0x97c91920), Char(0x00007fa7), Char(0x97c91910), Char(0x00007fa7), Char(0x34000000), Char(0x00000000), Char(0x8fdbf2f0), Char(0x00007fa7), Char(0x00000001), Char(0x38000000), Char(0x46000000), Char(0x00007fa7), Char(0x97c95d80), Char(0x00007fa7), Char(0x8fdc0260), Char(0x00007fa7), Char(0x97c91960), Char(0x00007fa7), Char(0x48000000), Char(0x00007fa7), Char(0x00000001), Char(0x00000000), Char(0x8fdbf2f0), Char(0xf48f9fbf), Char(0x39000000), Char(0x00000000), Char(0x97c919a0), Char(0x00007fa7), Char(0x97c95db0)^C, Char(0x00007fa7), Char(0x8fdc0260), Char(0x00007fa7), Char(0x97c919a0), Char(0x00007fa7), Char(0x32000000), Char(0x33000000), Char(0x00000001), Char(0x00000000), Char(0x8fdbf2f0), Char(0x00007fa7), Char(0x00000001), Char(0x00000000), Char(0x97c919e0), Char(0x00007fa7)], fatal: error thrown and no exception handler available.
InterruptException()
jl_ast_ctx_leave at /cache/build/tester-amdci5-12/julialang/julia-release-1-dot-11/src/ast.c:319 [inlined]
ijl_is_operator at /cache/build/tester-amdci5-12/julialang/julia-release-1-dot-11/src/ast.c:998
jl_static_show_x_ at /cache/build/tester-amdci5-12/julialang/julia-release-1-dot-11/src/rtutils.c:1269
jl_static_show_next_ at /cache/build/tester-amdci5-12/julialang/julia-release-1-dot-11/src/rtutils.c:1367
jl_static_show_x_ at /cache/build/tester-amdci5-12/julialang/julia-release-1-dot-11/src/rtutils.c:1184
jl_static_show_next_ at /cache/build/tester-amdci5-12/julialang/julia-release-1-dot-11/src/rtutils.c:1367
jl_static_show_x_ at /cache/build/tester-amdci5-12/julialang/julia-release-1-dot-11/src/rtutils.c:1278
jl_static_show_next_ at /cache/build/tester-amdci5-12/julialang/julia-release-1-dot-11/src/rtutils.c:1367
jl_static_show_x_ at /cache/build/tester-amdci5-12/julialang/julia-release-1-dot-11/src/rtutils.c:1184
jl_static_show_next_ at /cache/build/tester-amdci5-12/julialang/julia-release-1-dot-11/src/rtutils.c:1367
jl_static_show_x_ at /cache/build/tester-amdci5-12/julialang/julia-release-1-dot-11/src/rtutils.c:1278
jl_static_show_next_ at /cache/build/tester-amdci5-12/julialang/julia-release-1-dot-11/src/rtutils.c:1367
jl_static_show_x_ at /cache/build/tester-amdci5-12/julialang/julia-release-1-dot-11/src/rtutils.c:1278
jl_static_show_next_ at /cache/build/tester-amdci5-12/julialang/julia-release-1-dot-11/src/rtutils.c:1367
jl_static_show_x_ at /cache/build/tester-amdci5-12/julialang/julia-release-1-dot-11/src/rtutils.c:1184
jl_static_show_next_ at /cache/build/tester-amdci5-12/julialang/julia-release-1-dot-11/src/rtutils.c:1367
jl_static_show_x_ at /cache/build/tester-amdci5-12/julialang/julia-release-1-dot-11/src/rtutils.c:1278
jl_static_show_next_ at /cache/build/tester-amdci5-12/julialang/julia-release-1-dot-11/src/rtutils.c:1367
jl_static_show_x_ at /cache/build/tester-amdci5-12/julialang/julia-release-1-dot-11/src/rtutils.c:1278
jl_static_show_next_ at /cache/build/tester-amdci5-12/julialang/julia-release-1-dot-11/src/rtutils.c:1367
jl_static_show_x_ at /cache/build/tester-amdci5-12/julialang/julia-release-1-dot-11/src/rtutils.c:1278
jl_static_show_x_ at /cache/build/tester-amdci5-12/julialang/julia-release-1-dot-11/src/rtutils.c:1286
jl_static_show_next_ at /cache/build/tester-amdci5-12/julialang/julia-release-1-dot-11/src/rtutils.c:1367
jl_static_show_x_ at /cache/build/tester-amdci5-12/julialang/julia-release-1-dot-11/src/rtutils.c:1278
jl_static_show_next_ at /cache/build/tester-amdci5-12/julialang/julia-release-1-dot-11/src/rtutils.c:1367
jl_static_show_x_ at /cache/build/tester-amdci5-12/julialang/julia-release-1-dot-11/src/rtutils.c:1184
jl_static_show_next_ at /cache/build/tester-amdci5-12/julialang/julia-release-1-dot-11/src/rtutils.c:1367
jl_static_show_x_ at /cache/build/tester-amdci5-12/julialang/julia-release-1-dot-11/src/rtutils.c:1113
jl_static_show_next_ at /cache/build/tester-amdci5-12/julialang/julia-release-1-dot-11/src/rtutils.c:1367
jl_static_show_x_ at /cache/build/tester-amdci5-12/julialang/julia-release-1-dot-11/src/rtutils.c:1278
jl_static_show_x_ at /cache/build/tester-amdci5-12/julialang/julia-release-1-dot-11/src/rtutils.c:1286
jl_static_show_next_ at /cache/build/tester-amdci5-12/julialang/julia-release-1-dot-11/src/rtutils.c:1367
jl_static_show_x_ at /cache/build/tester-amdci5-12/julialang/julia-release-1-dot-11/src/rtutils.c:1278
jl_static_show_next_ at /cache/build/tester-amdci5-12/julialang/julia-release-1-dot-11/src/rtutils.c:1367
jl_static_show_x_ at /cache/build/tester-amdci5-12/julialang/julia-release-1-dot-11/src/rtutils.c:1278
jl_static_show_next_ at /cache/build/tester-amdci5-12/julialang/julia-release-1-dot-11/src/rtutils.c:1367
ijl_no_exc_handler at /cache/build/tester-amdci5-12/julialang/julia-release-1-dot-11/src/task.c:693
true_main at /cache/build/tester-amdci5-12/julialang/julia-release-1-dot-11/src/jlapi.c:907
jl_repl_entrypoint at /cache/build/tester-amdci5-12/julialang/julia-release-1-dot-11/src/jlapi.c:1059
main at /cache/build/tester-amdci5-12/julialang/julia-release-1-dot-11/cli/loader_exe.c:58
unknown function (ip: 0x7fa7a1c56e07)
__libc_start_main at /usr/lib/libc.so.6 (unknown line)
unknown function (ip: 0x4010b8)

@IanButterworth
Copy link
Member

Are you loading any packages in your startup.jl? If so disable it?

@favba
Copy link

favba commented Sep 5, 2024

Are you loading any packages in your startup.jl? If so disable it?

Indeed. I had VimBindings.jl in my startup.jl :

if isinteractive()
    @eval using VimBindings
end

Disabling it fixes the issue.

@IanButterworth
Copy link
Member

IanButterworth commented Sep 5, 2024

I tried to investigate but VimBindings doesn't work on master

% ./julia -ie "using VimBindings"
Info Given VimBindings was explicitly requested, output will be shown live
WARNING: Method definition (::Type{Base.Dict{K, V} where V where K})(Base.RegexMatch{S} where S<:AbstractString) in module Base at regex.jl:304 overwritten in module Parse at /Users/ian/.julia/packages/VimBindings/7dPgl/src/parse.jl:183.
ERROR: Method overwriting is not permitted during Module precompilation. Use `__precompile__(false)` to opt-out of precompilation.
  ? VimBindings
[ Info: Precompiling VimBindings [51b3953f-5e5d-4a6b-bd62-c64b6fa1518a]
WARNING: Method definition (::Type{Base.Dict{K, V} where V where K})(Base.RegexMatch{S} where S<:AbstractString) in module Base at regex.jl:304 overwritten in module Parse at /Users/ian/.julia/packages/VimBindings/7dPgl/src/parse.jl:183.
ERROR: Method overwriting is not permitted during Module precompilation. Use `__precompile__(false)` to opt-out of precompilation.
┌ Info: Skipping precompilation due to precompilable error. Importing VimBindings [51b3953f-5e5d-4a6b-bd62-c64b6fa1518a].
└   exception = Error when precompiling module, potentially caused by a __precompile__(false) declaration in the module.
ERROR: LoadError: InitError: LoadError: UndefVarError: `TextInterface` not defined in `REPL`
Suggestion: check for spelling errors or missing imports.
Stacktrace:
  [1] getproperty(x::Module, f::Symbol)
    @ Base ./Base.jl:42
  [2] top-level scope
    @ ~/.julia/packages/VimBindings/7dPgl/src/lineeditalt.jl:163
  [3] include(mod::Module, _path::String)
    @ Base ./Base.jl:582
  [4] include
    @ ~/.julia/packages/VimBindings/7dPgl/src/VimBindings.jl:9 [inlined]
  [5] __init__()
    @ VimBindings ~/.julia/packages/VimBindings/7dPgl/src/VimBindings.jl:46

Which is known caleb-allen/VimBindings.jl#98

@favba
Copy link

favba commented Sep 5, 2024

I tried to investigate but VimBindings doesn't work on master

% ./julia -ie "using VimBindings"
Info Given VimBindings was explicitly requested, output will be shown live
WARNING: Method definition (::Type{Base.Dict{K, V} where V where K})(Base.RegexMatch{S} where S<:AbstractString) in module Base at regex.jl:304 overwritten in module Parse at /Users/ian/.julia/packages/VimBindings/7dPgl/src/parse.jl:183.
ERROR: Method overwriting is not permitted during Module precompilation. Use `__precompile__(false)` to opt-out of precompilation.
  ? VimBindings
[ Info: Precompiling VimBindings [51b3953f-5e5d-4a6b-bd62-c64b6fa1518a]
WARNING: Method definition (::Type{Base.Dict{K, V} where V where K})(Base.RegexMatch{S} where S<:AbstractString) in module Base at regex.jl:304 overwritten in module Parse at /Users/ian/.julia/packages/VimBindings/7dPgl/src/parse.jl:183.
ERROR: Method overwriting is not permitted during Module precompilation. Use `__precompile__(false)` to opt-out of precompilation.
┌ Info: Skipping precompilation due to precompilable error. Importing VimBindings [51b3953f-5e5d-4a6b-bd62-c64b6fa1518a].
└   exception = Error when precompiling module, potentially caused by a __precompile__(false) declaration in the module.
ERROR: LoadError: InitError: LoadError: UndefVarError: `TextInterface` not defined in `REPL`
Suggestion: check for spelling errors or missing imports.
Stacktrace:
  [1] getproperty(x::Module, f::Symbol)
    @ Base ./Base.jl:42
  [2] top-level scope
    @ ~/.julia/packages/VimBindings/7dPgl/src/lineeditalt.jl:163
  [3] include(mod::Module, _path::String)
    @ Base ./Base.jl:582
  [4] include
    @ ~/.julia/packages/VimBindings/7dPgl/src/VimBindings.jl:9 [inlined]
  [5] __init__()
    @ VimBindings ~/.julia/packages/VimBindings/7dPgl/src/VimBindings.jl:46

Yes. I see there is an open issue on that

@PallHaraldsson , were you also using VimBindings.jl ?
If not, then my issue was different than yours...

@caleb-allen
Copy link

caleb-allen commented Sep 5, 2024

I'm also seeing a very strange error, with a similar error.
Here is a recording of what happened.

@favba is there a particular sequence of keys which resulted in this error loop? Also, what terminal and OS are you using? I haven't dug into 1.12, but it'd be particularly concerning if VimBindings is causing this on the 1.11 RC.

@IanButterworth
Copy link
Member

I think there are at least two issues here:

  1. Something to do with VimBindings interacting with REPL internals that may have changed
  2. The way we load Pkg via a task now when requesting the pkg repl should have better error state handling if it fails

@favba
Copy link

favba commented Sep 5, 2024

I'm also seeing a very strange error, with a similar error.
Here is a recording of what happened.

@favba is there a particular sequence of keys which resulted in this error loop? Also, what terminal and OS are you using? I haven't dug into 1.12, but it'd be particularly concerning if VimBindings is causing this on the 1.11 RC.

In order to trigger the error I have to first start the Pkg REPL with ]. It then throws the SYSTEM: caught exception of type :TypeError while trying to print a failed Task notice; giving up error.

After that, I exit the Pkg REPL mode and type any function, the infinite error msg happens after I type the opening bracket ( for the function.

I'm using the foot terminal v1.18.1 on Arch linux with zen kernel v6.10.8

@PallHaraldsson
Copy link
Contributor Author

PallHaraldsson commented Sep 5, 2024

@PallHaraldsson , were you also using VimBindings.jl ?
If not, then my issue was different than yours...

No I wasn't. I've never had a problem with my startup.jl, if that's even the cause here, first on 1.11. And there's basically nothing in it, first line some old test I forgot in there...

1+2
ENV["JULIA_PKG_PRESERVE_TIERED_INSTALLED"] = true

This seems to have been the problem (I may have been deving the package, but then only to try to disable some stuff, to reduce startup time:

julia> @time using PythonCall
ERROR: InitError: MethodError: no method matching 
..
SYSTEM (REPL): caught exception of type TypeError while trying to handle a nested exception; giving up

While I didn't until:

(@v1.11) pkg> add PythonCall
ERROR: MethodError: no method matching

I probably should have made the issue at julialang, since I'm not/no longer sure, kg> add triggered it. Can somebody move it over there?

@IanButterworth
Copy link
Member

Seems like a PythonCall issue with something async that it starts during __init__() then?

At least, if this should go to the julia repo it needs a clearer name / diagnosis.

@PallHaraldsson
Copy link
Contributor Author

PallHaraldsson commented Sep 5, 2024

Seems like a PythonCall issue with something async that it starts during init() then?

No, I don't see any async used (unless if a dependency of it and I also ruled out in CondaPkg), except for @async write in code I wouldn't have used:

https://github.com/JuliaPy/PythonCall.jl/blob/a61c0223a60b803016e51a0dde39371222abf773/pysrc/juliacall/ipython.py#L86

so I'm back to thinking this is Pkg related, completely unrelated to PythonCall.

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

4 participants