Skip to content

renaming meta function to circumvent precompilation fails in julia nightly and release candidates. #43

Merged
KristofferC merged 2 commits intotopolarity:mainfrom
arhik:main
Sep 5, 2025
Merged

renaming meta function to circumvent precompilation fails in julia nightly and release candidates. #43
KristofferC merged 2 commits intotopolarity:mainfrom
arhik:main

Conversation

@arhik
Copy link
Contributor

@arhik arhik commented Sep 4, 2025

Tracy fails with following error during precompilation in julia nightly versions after JuliaLang/julia#59321 (Last know julia nightly commit that works). GPUCompiler.jl and CUDA.jl are failing with Tracy.jl as a result.

ERROR: The following 1 direct dependency failed to precompile:

Tracy

Failed to precompile Tracy [e689c965-62c8-4b79-b2c5-8359227902fd] to "C:\\Users\\arhik\\.julia\\compiled\\v1.13\\Tracy\\jl_73C6.tmp" (ProcessExited(1)).
ERROR: LoadError: TypeError: in typeassert, expected IdDict{Any, Any}, got Type{Tracy.var"##meta#12"}
Stacktrace:
  [1] meta(m::Module; autoinit::Bool)
    @ Base.Docs .\docs\Docs.jl:88
  [2] meta
    @ .\docs\Docs.jl:81 [inlined]
  [3] doc!(__module__::Module, b::Base.Docs.Binding, str::Base.Docs.DocStr, sig::Any)
    @ Base.Docs .\docs\Docs.jl:246
  [4] doc!(__module__::Module, b::Base.Docs.Binding, str::Base.Docs.DocStr)
    @ Base.Docs .\docs\Docs.jl:239
  [5] top-level scope
    @ C:\Users\arhik\.julia\dev\Tracy\src\Tracy.jl:97
  [6] include(mod::Module, _path::String)
    @ Base .\Base.jl:308
  [7] include_package_for_output(pkg::Base.PkgId, input::String, depot_path::Vector{String}, dl_load_path::Vector{String}, load_path::Vector{String}, concrete_deps::Vector{Pair{Base.PkgId, UInt128}}, source::Nothing)
    @ Base .\loading.jl:3019
  [8] top-level scope
    @ stdin:5
  [9] eval(m::Module, e::Any)
    @ Core .\boot.jl:489
 [10] include_string(mapexpr::typeof(identity), mod::Module, code::String, filename::String)
    @ Base .\loading.jl:2865
 [11] include_string
    @ .\loading.jl:2875 [inlined]
 [12] exec_options(opts::Base.JLOptions)
    @ Base .\client.jl:328
 [13] _start()
    @ Base .\client.jl:563
in expression starting at C:\Users\arhik\.julia\dev\Tracy\src\Tracy.jl:3
in expression starting at stdin:

Signature change kind of circumvents it and Julia nightly, release and +rc candidates are working with this change. Not sure if this is forward compatible way to fix it. I am coming back to Julia after long break; this needs experts view.

@arhik arhik changed the title Signature change in meta function to circumvent docs.jl precompilation fails in julia nightly and release candidates. Signature change in meta function to circumvent precompilation fails in julia nightly and release candidates. Sep 4, 2025
@KristofferC
Copy link
Collaborator

I think this is related to JuliaLang/julia#59385. Another way would be to rename the meta function a bit.

@arhik arhik changed the title Signature change in meta function to circumvent precompilation fails in julia nightly and release candidates. renaming meta function to circumvent precompilation fails in julia nightly and release candidates. Sep 4, 2025
@codecov-commenter
Copy link

codecov-commenter commented Sep 5, 2025

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

❌ Patch coverage is 50.00000% with 3 lines in your changes missing coverage. Please review.
✅ Project coverage is 77.20%. Comparing base (7b50cae) to head (1c2b8d5).
⚠️ Report is 2 commits behind head on main.

Files with missing lines Patch % Lines
src/tracepoint.jl 50.00% 2 Missing ⚠️
src/Tracy.jl 50.00% 1 Missing ⚠️
❗ Your organization needs to install the Codecov GitHub app to enable full functionality.
Additional details and impacted files
@@           Coverage Diff           @@
##             main      #43   +/-   ##
=======================================
  Coverage   77.20%   77.20%           
=======================================
  Files           8        8           
  Lines         193      193           
=======================================
  Hits          149      149           
  Misses         44       44           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@KristofferC KristofferC merged commit fee7ad3 into topolarity:main Sep 5, 2025
8 checks passed
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

Successfully merging this pull request may close these issues.

3 participants