Open Havkost opened 1 week ago
It's my fault for not keeping the documentation up-to-date regarding how to build the project from source.
I made an attempt at updating the documentation here: https://github.com/gren-lang/compiler/pull/265
Does it help?
Sorry about the wait. Just tried installing the compiler using the new instructions but I seemed to get stuck at step 3.
When running npm run republishOnly
, I got the error Expected exactly 1 argument: a json-encoded command
.
When running npx --package=gren-lang@0.4.5 -- gren make src/Main.gren --output compiler.js
instead, it couldn't find gren; sh: line 1: gren: command not found
.
I ran npm install gren-lang
and changed the republishOnly script according to the diff proposed by Justin in #265, but got the following error:
You have included gren-lang/compiler-node as a local dependency (located at ../compiler-node) but I cannot find a gren.json file at that location.
After this, I also realized I had node v22 installed instead of v20, that might be my issue, maybe not. I'm not really interested in more debugging at the moment, just wanted to try out the language. Enjoying it so far, even though my experience with purely functional languages is wanting.
Keep it up :)
You have included gren-lang/compiler-node as a local dependency (located at ../compiler-node) but I cannot find a gren.json file at that location.
This likely meant it worked, it's just that the current master branch uses some local dependencies which haven't been tagged yet.
I'm sorry for the bad experience. I haven't been very careful with keeping the main
in a stable state, I'll be more careful in the future.
After installing the gren compiler from source, I get ParseProblem errors when running e.g.
gren init
. For now I'll try installing from npm instead, and see if that works.Error message(s)
Expected behaviour
gren init
should behave like in the gren book, instead of giving an error. At least I would not expect any error to be a parse error in the compiler itself.Project version (branch and commit)
ghc and cabal versions (installed with gchup)
Log from cabal install
System information
Hope this helps, if you need more information just say the word.