-
Notifications
You must be signed in to change notification settings - Fork 110
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
Error "redefinition of constant attr_list" from Revise.track(Base)
#677
Comments
Have you e.g. changed branch of the julia repo without rebuilding julia? |
Yes, that was my intention. The PR branch is rebased on top of the master from which I built it. However, I now get the error even on master. |
FWIW the same failure occurs when I run the tests. (On Julia master, exact same branch as built.) (jl_fb9t4z) pkg> test Revise
Testing Revise
Status `/private/var/folders/yq/4p2zwd614y59gszh7y9ypyhh0000gn/T/jl_F1W6Ae/Project.toml`
[aafaddc9] CatIndices v0.2.2
[da1fd8a2] CodeTracking v1.0.8
[340492b5] EndpointRanges v0.2.1
[97e2ac4a] EponymTuples v0.2.2
[7876af07] Example v0.5.3
[9b13fd28] IndirectArrays v1.0.0
[aa1ae85d] JuliaInterpreter v0.9.11
[6f1432cf] LoweredCodeUtils v2.2.1
[1914dd2f] MacroTools v0.5.9
[dbb5928d] MappedArrays v0.4.1
[bac558e1] OrderedCollections v1.4.1
[ae029012] Requires v1.3.0
[295af30f] Revise v3.3.3
[d5f540fe] RoundingIntegers v1.1.0
[c4a57d5a] UnsafeArrays v1.0.3
[8ba89e20] Distributed `@stdlib/Distributed`
[7b1f6079] FileWatching `@stdlib/FileWatching`
[b77e0a4c] InteractiveUtils `@stdlib/InteractiveUtils`
[76f85450] LibGit2 `@stdlib/LibGit2`
[44cfe95a] Pkg v1.8.0 `@stdlib/Pkg`
[3fa0cd96] REPL `@stdlib/REPL`
[9a3f8284] Random `@stdlib/Random`
[8dfed614] Test `@stdlib/Test`
[cf7118a7] UUIDs `@stdlib/UUIDs`
[4ec0a83e] Unicode `@stdlib/Unicode`
Status `/private/var/folders/yq/4p2zwd614y59gszh7y9ypyhh0000gn/T/jl_F1W6Ae/Manifest.toml`
[79e6a3ab] Adapt v3.3.3
[aafaddc9] CatIndices v0.2.2
[da1fd8a2] CodeTracking v1.0.8
[dc8bdbbb] CustomUnitRanges v1.0.2
[340492b5] EndpointRanges v0.2.1
[97e2ac4a] EponymTuples v0.2.2
[7876af07] Example v0.5.3
[9b13fd28] IndirectArrays v1.0.0
[aa1ae85d] JuliaInterpreter v0.9.11
[6f1432cf] LoweredCodeUtils v2.2.1
[1914dd2f] MacroTools v0.5.9
[dbb5928d] MappedArrays v0.4.1
[6fe1bfb0] OffsetArrays v1.10.8
[bac558e1] OrderedCollections v1.4.1
[ae029012] Requires v1.3.0
[295af30f] Revise v3.3.3
[d5f540fe] RoundingIntegers v1.1.0
[c4a57d5a] UnsafeArrays v1.0.3
[0dad84c5] ArgTools v1.1.1 `@stdlib/ArgTools`
[56f22d72] Artifacts `@stdlib/Artifacts`
[2a0f44e3] Base64 `@stdlib/Base64`
[ade2ca70] Dates `@stdlib/Dates`
[8ba89e20] Distributed `@stdlib/Distributed`
[f43a241f] Downloads v1.6.0 `@stdlib/Downloads`
[7b1f6079] FileWatching `@stdlib/FileWatching`
[b77e0a4c] InteractiveUtils `@stdlib/InteractiveUtils`
[b27032c2] LibCURL v0.6.3 `@stdlib/LibCURL`
[76f85450] LibGit2 `@stdlib/LibGit2`
[8f399da3] Libdl `@stdlib/Libdl`
[37e2e46d] LinearAlgebra `@stdlib/LinearAlgebra`
[56ddb016] Logging `@stdlib/Logging`
[d6f4376e] Markdown `@stdlib/Markdown`
[ca575930] NetworkOptions v1.2.0 `@stdlib/NetworkOptions`
[44cfe95a] Pkg v1.8.0 `@stdlib/Pkg`
[de0858da] Printf `@stdlib/Printf`
[3fa0cd96] REPL `@stdlib/REPL`
[9a3f8284] Random `@stdlib/Random`
[ea8e919c] SHA v0.7.0 `@stdlib/SHA`
[9e88b42a] Serialization `@stdlib/Serialization`
[6462fe0b] Sockets `@stdlib/Sockets`
[fa267f1f] TOML v1.0.0 `@stdlib/TOML`
[a4e569a6] Tar v1.10.0 `@stdlib/Tar`
[8dfed614] Test `@stdlib/Test`
[cf7118a7] UUIDs `@stdlib/UUIDs`
[4ec0a83e] Unicode `@stdlib/Unicode`
[e66e0078] CompilerSupportLibraries_jll v0.5.2+0 `@stdlib/CompilerSupportLibraries_jll`
[deac9b47] LibCURL_jll v7.81.0+0 `@stdlib/LibCURL_jll`
[29816b5a] LibSSH2_jll v1.10.2+0 `@stdlib/LibSSH2_jll`
[c8ffd9c3] MbedTLS_jll v2.28.0+0 `@stdlib/MbedTLS_jll`
[14a3606d] MozillaCACerts_jll v2022.2.1 `@stdlib/MozillaCACerts_jll`
[4536629a] OpenBLAS_jll v0.3.20+0 `@stdlib/OpenBLAS_jll`
[83775a58] Zlib_jll v1.2.12+1 `@stdlib/Zlib_jll`
[8e850b90] libblastrampoline_jll v5.1.0+0 `@stdlib/libblastrampoline_jll`
[8e850ede] nghttp2_jll v1.41.0+1 `@stdlib/nghttp2_jll`
[3f19e933] p7zip_jll v16.2.1+1 `@stdlib/p7zip_jll`
Testing Running tests...
[ Info: The following error messge is expected for this broken test
┌ Error: Failed to revise /var/folders/yq/4p2zwd614y59gszh7y9ypyhh0000gn/T/xWZjhruw5N/Order2/src/Order2.jl
│ exception =
│ UndefVarError: Ord2 not defined
│ Stacktrace:
│ [1] top-level scope
│ @ /var/folders/yq/4p2zwd614y59gszh7y9ypyhh0000gn/T/xWZjhruw5N/Order2/src/Order2.jl:3
│ Revise evaluation error at /var/folders/yq/4p2zwd614y59gszh7y9ypyhh0000gn/T/xWZjhruw5N/Order2/src/Order2.jl:3
│
└ @ Revise ~/.julia/packages/Revise/VskYC/src/packagedef.jl:708
┌ Warning: The running code does not match the saved version for the following files:
│
│ /var/folders/yq/4p2zwd614y59gszh7y9ypyhh0000gn/T/xWZjhruw5N/Order2/src/Order2.jl
│
│ If the error was due to evaluation order, it can sometimes be resolved by calling `Revise.retry()`.
│ Use Revise.errors() to report errors again. Only the first error in each file is shown.
│ Your prompt color may be yellow until the errors are resolved.
└ @ Revise ~/.julia/packages/Revise/VskYC/src/packagedef.jl:818
Revise is currently tracking the following files in ReviseFileNow [top-level]: ["src/ReviseFileNow.jl"]
[ Info: tracking Base
WARNING: redefinition of constant attr_list. This may fail, cause incorrect answers, or produce other errors.
|
Closing this as the problem seems to have gone away. On Julia master, I get a warning like this, but no ill effects that I know of: | | | | | | |/ _` | |
| | |_| | | | (_| | | Version 1.9.0-DEV.357 (2022-04-11)
_/ |\__'_|_|_|\__'_| | Commit 0deb3265ee (0 days old master)
|__/ |
julia> using Revise; Revise.track(Base)
julia> 1+1
WARNING: redefinition of constant heaps_lock. This may fail, cause incorrect answers, or produce other errors.
2 |
I'm getting an error I haven't seen reported, when trying to use Revise to track changes in Julia itself:
Then it hangs. Sometimes it gets to
Error showing value of type ERROR:
and then nothing.For definiteness this is with JuliaLang/julia#43334, newly rebased. The PR does not change anything very deep. I don't know what
attr_list
is; I think I remember seeing this complaint before, but it still worked.Edit: In fact I get the same error on master, thus no changes for Revise to handle at all:
The text was updated successfully, but these errors were encountered: