Closed Vici37 closed 2 years ago
Hello,
Unfortunately, running a large project is a bit tricky for the interpreter now. I get the same error running IC on itself. When I try running IC with crystal-i
directly, I get also the same error. It seem so be related to the interpreter (crystal-ic is the direct copy of https://github.com/crystal-lang/crystal/archive/refs/tags/1.4.1.zip unless I merged the fix for #4).
If fact, I found this issue, merging it would work I think!
However I don't guarantee you it will works after that. (some language feature aren't yet implemented Crystal::Splat
(when not inline by the parser), etc.)
What I could recommend you is to extract some small algorithm you what to debug (when possible) and to run it with IC on a separate file.
Wahoo! Verified that error has gone away!
I'm now running into a new one, but it looks related to one of my shards that I might be able to verify outside of my large project. I'll create a new issue if I can't track it down (or just try it with crystal i
and create an issue on the compiler itself instead).
Not sure if the error is part of crystal's interpreter itself, or ic's own changes in
crystal-ic
(are there any differences in there?). Anywho, when tryingic
against my largest non-trivial project, I get this error:The stacktrace is considerably larger, but the above bit should contain the relevant parts. Putting in some custom
puts
statements help show what it's tripping up on. Thename
param passed toc_function
isgetcwd
, and the args that are being parsed and failing utterly are:Not entirely sure where to go from here from a debugging perspective. Let me know if you have any ideas of where I can search next, I'm not afraid to get my hands dirty when I have time :)