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
use the correct TOML.Parser
coupled to Base.TOMLCache
#3782
base: master
Are you sure you want to change the base?
Conversation
const TOML_LOCK = ReentrantLock() | ||
_parsefile(toml_file::AbstractString) = Base.parsed_toml(toml_file, TOML_CACHE, TOML_LOCK) | ||
function parsefile(in_memory_registry::Union{Dict, Nothing}, folder::AbstractString, file::AbstractString) | ||
if in_memory_registry === nothing | ||
return _parsefile(joinpath(folder, file)) | ||
else | ||
content = in_memory_registry[to_tar_path_format(file)] | ||
return TOML.Internals.parse(TOML.Parser(content; filepath=file)) | ||
return TOML.Internals.parse(Base.TOML.Parser(content; filepath=file)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems odd to use TOML.Internals
here but pass Base.TOML
as an argument. Maybe instead change using TOML
to using Base.TOML
at the top of the file?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
bump?
Bump |
bump? |
I don't know why this was put on the milestone, it's been like this for years. |
Fixes JuliaLang/julia#53196