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

Attempt to perform arithmetic on a nil value (field 'y') #9

Open
Lessica opened this issue May 30, 2022 · 1 comment
Open

Attempt to perform arithmetic on a nil value (field 'y') #9

Lessica opened this issue May 30, 2022 · 1 comment

Comments

@Lessica
Copy link

Lessica commented May 30, 2022

See giann/sirocco#2. When I paste multiple lines of codes into the REPL of croissant, even in a do...end block, I got the same problem.
Problem exists on macOS 12.4 with Terminal/iTerm2/VSCode.

lua: /usr/local/lib/sirocco/prompt.lua:355: attempt to perform arithmetic on a nil value (field 'y')
stack traceback:
	/usr/local/lib/sirocco/prompt.lua:355: in function 'croissant.luaprompt.update'
	/usr/local/lib/sirocco/prompt.lua:431: in function 'croissant.luaprompt.ask'
	/usr/local/lib/croissant/repl.lua:22: in function 'croissant.repl'
	/usr/local/bin/croissant:52: in local 'route'
	/usr/local/bin/croissant:56: in main chunk
	[C]: in ?

iTerm2

# rachel @ ZhengPro in ~[22:55:25]
$ echo -e "\033[6n" | cat


# rachel @ ZhengPro in ~[22:55:28]
$ ;1R
# rachel @ ZhengPro in ~[22:56:01]
$ echo $TERM
xterm-256color

Terminal

# rachel @ ZhengPro in ~ [23:02:56] 
$ echo -e "\033[6n" | cat

^[[5;1R%                                                                        
# rachel @ ZhengPro in ~ [23:02:58] 
$ 1R
# rachel @ ZhengPro in ~ [23:02:58] 
$ echo $TERM             
xterm-256color
@Lessica
Copy link
Author

Lessica commented Jun 15, 2022

multi-line-bug.mov

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