-
-
Notifications
You must be signed in to change notification settings - Fork 29
Description
Saw an issue installing gren-lang/svg (not the issue at hand here), so I yak-shaved a script with codex that tries to install all packages listed under: https://packages.gren-lang.org/package
And these seem to have unrecoverable issues to install:
- blaix/gren-ansi
- blaix/gren-array2d
- blaix/gren-playground
- blaix/gren-tui
- blaix/prettynice
- gren-lang/compiler-node
For the blaix packages, I'll need to contact the author. But there's on by Gren-lang itself, possibly related to this ticket: Dependency resolver should check for compatible gren-version and platform #6
Logs here: https://github.com/HenkPoley/try-all-gren-packages/tree/main/output/errors
Common failure modes:
--CANNOT FIND COMPATIBLE VERSION----------------------------------------------
I cannot find a version of gren-lang/core that is compatible with your existing dependencies.
These are the confliction versions:
7.2.1 <= v < 7.2.2
6.0.0 <= v < 7.0.0
--CANNOT FIND COMPATIBLE VERSION----------------------------------------------
I cannot find a version of gren-lang/browser that is compatible with your existing dependencies.
These are the confliction versions:
6.0.2 <= v < 6.0.3
5.0.0 <= v < 6.0.0
The original issue with gren-lang/svg- which seems to be deprecated (for Gren) at: https://github.com/gren-lang/svg - so that makes sense that it's not installable.
Edit: Another clue what should be installed here:
Several different packages have now been consolidated into fewer, but bigger packages. For example:
gren-lang/virtual-dom,gren-lang/htmlandgren-lang/svgare now merged intogren-lang/browser.
Shouldn't there be a meta-package that replaces those and installs gren-lang/browser? Or a nice error message from the compiler, for this special case?
henk@MacBookPro 035-uml-editor % gren package install gren-lang/svg
Starting downloads...
gren-lang/svg --INVALID gren.json IN gren-lang/svg------------------------------------------
An error occured while I was reading the gren.json file for this package.
The error is:
Problem with the given value: { "type": "package", "name": "gren-lang/svg",
"summary": "Fast SVG, rendered with virtual DOM diffing", "license":
"BSD-3-Clause", "version": "1.0.0", "exposed-modules": { "SVG": [ "Svg",
"Svg.Attributes", "Svg.Events" ], "Optimize": [ "Svg.Keyed", "Svg.Lazy" ] },
"gren-version": "0.1.0 <= v < 0.2.0", "dependencies": { "gren-lang/core":
"1.0.0 <= v < 2.0.0", "gren-lang/html": "1.0.0 <= v < 2.0.0",
"gren-lang/json": "1.0.0 <= v < 2.0.0", "gren-lang/virtual-dom": "1.0.0 <= v
< 2.0.0" }, "test-dependencies": {} } Expecting an OBJECT with a field named
`platform`
Pretty printed:
{
"type": "package",
"name": "gren-lang/svg",
"summary": "Fast SVG, rendered with virtual DOM diffing",
"license": "BSD-3-Clause",
"version": "1.0.0",
"exposed-modules": {
"SVG": [
"Svg",
"Svg.Attributes",
"Svg.Events"
],
"Optimize": [
"Svg.Keyed",
"Svg.Lazy"
]
},
"gren-version": "0.1.0 <= v < 0.2.0",
"dependencies": {
"gren-lang/core": "1.0.0 <= v < 2.0.0",
"gren-lang/html": "1.0.0 <= v < 2.0.0",
"gren-lang/json": "1.0.0 <= v < 2.0.0",
"gren-lang/virtual-dom": "1.0.0 <= v < 2.0.0"
},
"test-dependencies": {}
}