Skip to content
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

REPL internal crash with let assignment when the operand is undefined #62

Open
nnsee opened this issue Dec 11, 2023 · 0 comments
Open

Comments

@nnsee
Copy link

nnsee commented Dec 11, 2023

Using the latest release from https://github.com/arnetheduck/nlvm/actions/runs/7062903531

Command: echo "let a = x" | ./nlvm r

Crashes with an internal error after printing the error about the undeclared identifier:

stdin(1, 9) Error: undeclared identifier: 'x'
candidates (edit distance, scope distance); see '--spellSuggest': 
 (1, 2): '$' [func declared in /home/xx/Downloads/nlvm-2aa830c/Nim/lib/system/dollars.nim(25, 8)]
 (1, 2): '$' [func declared in /home/xx/Downloads/nlvm-2aa830c/Nim/lib/system/dollars.nim(25, 8)]
 (1, 2): '$' [func declared in /home/xx/Downloads/nlvm-2aa830c/Nim/lib/system/dollars.nim(25, 8)]
 (1, 2): '$' [func declared in /home/xx/Downloads/nlvm-2aa830c/Nim/lib/system/dollars.nim(30, 6)]
stdin(1, 9) Error: expression 'x' has no type (or is ambiguous)
Error: internal error: Unhandled type tyProxy
No stack traceback available
To create a stacktrace, rerun compilation with './koch temp r <file>', see https://nim-lang.github.io/Nim/intern.html#debugging-the-compiler for details
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant