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

Add TOML to list of stdlibs for Julia v1.6 #522

Merged
merged 1 commit into from
Aug 31, 2020
Merged

Conversation

jmert
Copy link
Contributor

@jmert jmert commented Aug 31, 2020

Without this change, I encountered the following while trying to test-revise part of Julia:

$ make test-revise-Mmap
    JULIA test/revise-Mmap
ERROR: LoadError: no Revise.track recipe for module TOML
Stacktrace:
  [1] error(::String, ::Symbol)
    @ Base ./error.jl:42
...

I'm not sure if having :TOML added to the set conditional on the Julia version is what you want or not, so I can easily switch that to just a simple insert into the list if preferred.

@timholy timholy merged commit e073949 into timholy:master Aug 31, 2020
@timholy
Copy link
Owner

timholy commented Aug 31, 2020

I don't know what would happen if it were there with no TOML module, but this looks fine. Thanks for the contribution!

@jmert jmert deleted the add_toml branch August 31, 2020 21:18
jmert added a commit to jmert/julia that referenced this pull request Nov 15, 2020
This doesn't make PRs like timholy/Revise.jl#522, timholy/Revise.jl#534,
timholy/Revise.jl#553, etc unnecessary since that will still be
required if you want to revise a stdlib while working normally from the
REPL, but this at least makes a quick `make test-revise-complex` to
work where you're trying out unrelated changes to the as-yet unknown
standard libraries.

Before:
```julia
$ make test-revise-complex
    JULIA test/revise-complex
ERROR: LoadError: no Revise.track recipe for module NetworkOptions
Stacktrace:
  [1] error(::String, ::Symbol)
    @ Base ./error.jl:42
  [2] _track(id::Base.PkgId, modname::Symbol; modified_files::Set{Tuple{Revise.PkgData, String}})
    @ Revise ~/.julia/packages/Revise/fwStr/src/recipes.jl:105
...
```

After:
```julia
$ make test-revise-complex
    JULIA test/revise-complex
WARNING: redefinition of constant _clipboard_copy. This may fail, cause incorrect answers, or produce other errors.
WARNING: redefinition of constant _clipboard_paste. This may fail, cause incorrect answers, or produce other errors.
┌ Warning: skipping callee #wait#19 (called by wait) due to UndefVarError(:WindowsRawSocket)
└ @ LoweredCodeUtils ~/.julia/packages/LoweredCodeUtils/cquzG/src/signatures.jl:279
Test  (Worker) | Time (s) | GC (s) | GC % | Alloc (MB) | RSS (MB)
complex    (1) |        started at 2020-11-15T12:06:27.051
complex    (1) |    17.83 |   0.29 |  1.6 |    1338.02 |   592.97

Test Summary: | Pass  Broken  Total
  Overall     | 8410       5   8415
    SUCCESS
```
Keno pushed a commit to JuliaLang/julia that referenced this pull request Nov 26, 2020
This doesn't make PRs like timholy/Revise.jl#522, timholy/Revise.jl#534,
timholy/Revise.jl#553, etc unnecessary since that will still be
required if you want to revise a stdlib while working normally from the
REPL, but this at least makes a quick `make test-revise-complex` to
work where you're trying out unrelated changes to the as-yet unknown
standard libraries.

Before:
```julia
$ make test-revise-complex
    JULIA test/revise-complex
ERROR: LoadError: no Revise.track recipe for module NetworkOptions
Stacktrace:
  [1] error(::String, ::Symbol)
    @ Base ./error.jl:42
  [2] _track(id::Base.PkgId, modname::Symbol; modified_files::Set{Tuple{Revise.PkgData, String}})
    @ Revise ~/.julia/packages/Revise/fwStr/src/recipes.jl:105
...
```

After:
```julia
$ make test-revise-complex
    JULIA test/revise-complex
WARNING: redefinition of constant _clipboard_copy. This may fail, cause incorrect answers, or produce other errors.
WARNING: redefinition of constant _clipboard_paste. This may fail, cause incorrect answers, or produce other errors.
┌ Warning: skipping callee #wait#19 (called by wait) due to UndefVarError(:WindowsRawSocket)
└ @ LoweredCodeUtils ~/.julia/packages/LoweredCodeUtils/cquzG/src/signatures.jl:279
Test  (Worker) | Time (s) | GC (s) | GC % | Alloc (MB) | RSS (MB)
complex    (1) |        started at 2020-11-15T12:06:27.051
complex    (1) |    17.83 |   0.29 |  1.6 |    1338.02 |   592.97

Test Summary: | Pass  Broken  Total
  Overall     | 8410       5   8415
    SUCCESS
```
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.

2 participants