dsrw / enu

A Logo-like 3D environment, implemented in Nim
http://getenu.com
MIT License
449 stars 15 forks source link

Invalid code crashes enu on open #9

Closed juancarlospaco closed 3 years ago

juancarlospaco commented 3 years ago

On Edit mode, type something invalid on a block like a typo or something:

import grid
forward 3
INVALID
$ ./enu
error: undeclared identifier: 'invalid'
/home/juan/.local/share/enu/default/scripts/grid_14.nim done.
undeclared identifier: 'invalid'
segfaults.nim(76)        segfaultHandler
Error: unhandled exception: Could not access value because it is nil. [NilAccessDefect]

$
juancarlospaco commented 3 years ago

I think this should be the high priority compared to the other bugs, is frequent and annoying, you have to dig deep on the hidden folders to delete or edit the Nim file with the typo. :neutral_face:

dsrw commented 3 years ago

https://github.com/dsrw/enu/releases/tag/v0.1.1 has been published, which should fix this issue.

juancarlospaco commented 3 years ago

Awesome!, downloading... :smile_cat:

dsrw commented 3 years ago

v0.1.1 had a showstopper regression that made it impossible to drop blocks on the ground. I pushed it out without much testing unfortunately.

I removed v0.1.1 from the releases page and published v0.1.2 with a fix.