JuliaLang / TOML.jl

A fast TOML parser for TOML 1.0 written in Julia
MIT License
34 stars 15 forks source link

Can no longer install on Julia 1.5: "no known versions" #10

Closed yha closed 4 years ago

yha commented 4 years ago
(@v1.5) pkg> update
   Updating registry at `C:\Users\sternlab\.julia\registries\General`
   Updating git-repo `https://github.com/JuliaRegistries/General.git`
   Updating git-repo `https://github.com/JuliaLang/TOML.jl.git`
ERROR: UUID `fa267f1f-6049-4f14-aa54-33bafae1ed76` given by project file `C:\Users\sternlab\AppData\Local\Temp\jl_pC8oli\Project.toml` does not match given UUID `191fdcea-f9f2-43e0-b922-d33f71e2abc3`

(@v1.5) pkg> status TOML
Status `C:\Users\sternlab\.julia\environments\v1.5\Project.toml`
  [191fdcea] TOML v0.4.0 `https://github.com/JuliaLang/TOML.jl.git#master`

(@v1.5) pkg> remove TOML
Updating `C:\Users\sternlab\.julia\environments\v1.5\Project.toml`
  [191fdcea] - TOML v0.4.0 `https://github.com/JuliaLang/TOML.jl.git#master`
No Changes to `C:\Users\sternlab\.julia\environments\v1.5\Manifest.toml`

(@v1.5) pkg> update
   Updating registry at `C:\Users\sternlab\.julia\registries\General`
   Updating git-repo `https://github.com/JuliaRegistries/General.git`
ERROR: Unsatisfiable requirements detected for package TOML [191fdcea]:
 TOML [191fdcea] log:
 ├─TOML [191fdcea] has no known versions!
 └─restricted to versions * by Elegans [27ab0b70] — no versions left
   └─Elegans [27ab0b70] log:
     ├─possible versions are: 0.2.0 or uninstalled
     └─Elegans [27ab0b70] is fixed to version 0.2.0

(@v1.5) pkg> add https://github.com/JuliaLang/TOML.jl.git
   Updating git-repo `https://github.com/JuliaLang/TOML.jl.git`
  Resolving package versions...
ERROR: Unsatisfiable requirements detected for package TOML [191fdcea]:
 TOML [191fdcea] log:
 ├─TOML [191fdcea] has no known versions!
 └─restricted to versions * by Elegans [27ab0b70] — no versions left
   └─Elegans [27ab0b70] log:
     ├─possible versions are: 0.2.0 or uninstalled
     └─Elegans [27ab0b70] is fixed to version 0.2.0
KristofferC commented 4 years ago

The old TOML parser was moved to https://github.com/JuliaAttic/TOML.jl. You can use that one or change to this one which supports the 1.0 version of the TOML spec.

yha commented 4 years ago

I see. Perhaps there should be a notice in this parser's README? The error message from Pkg was quite confusing without the background knowledge. Anyway, removing and re-adding TOML in the environment that had the dependency fixed the problem.

KristofferC commented 4 years ago

Yeah, a notice could be added.