dsrw / enu

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

tutorial: Error: identifier expected, but got `[EOF]` [ValueError] #32

Closed inv2004 closed 7 months ago

inv2004 commented 7 months ago

image

Maybe you can point me to logs if it helps

dsrw commented 7 months ago

bot_lk3cug8hf7pnk.nim isn't one of the files that ships with Enu, so I think that's an error coming from one of your scripts. If you give me the contents of the script I can help you work it out. You can switch to the code tool and start clicking through bots that were added to find the one with the error highlighted in red, or you can just open the file from outside enu. I can't see the full path from your screenshot, but it should be at AppData\Roaming\enu\tutorial\tutorial-1\scripts\bot_lk3cug8hf7pnk.nim under your home directory.

The fact that it isn't obvious where the error is coming from still counts as an Enu bug I think. Units with errors should highlight in some way, and you should be able to open the code directly from the console. I'll try to get that fixed soon.

The logs will be at AppData\Roaming\enu\logs, but in this case I don't think we'll find anything useful there.

inv2004 commented 7 months ago

Hm, it is a bit strange - I have not create any code yet. Just set enu and started tutorial. But let me check

dsrw commented 7 months ago

Also, Enu does lots of macro weirdness, so could be that your code is perfectly valid but Enu is messing it up somehow. It's not something I've run into recently, but definitely possible.

dsrw commented 7 months ago

Hm, it is a bit strange - I have not create any code yet. Just set enu and started tutorial. But let me check

That is strange. When you have time, please take a look at bot_lk3cug8hf7pnk.nim. If you'd like you can just delete the entire AppData\Roaming\enu\tutorial\tutorial-1 directory. It will be recreated with a fresh copy of the tutorial the next time you launch Enu.

inv2004 commented 7 months ago

tutorial folder deletion helped. Thank you. But the root cause of the problem is still unclear