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

ENHANCEMENT - open lisp editor for bad file before rebooting #60

Open
Doronimmo opened this issue Nov 2, 2024 · 4 comments
Open

ENHANCEMENT - open lisp editor for bad file before rebooting #60

Doronimmo opened this issue Nov 2, 2024 · 4 comments
Milestone

Comments

@Doronimmo
Copy link
Collaborator

Is your feature request related to a problem? Please describe.
Currently, the game will show an error message, but not where the error happened.

Describe wanted behaviour
If the game will open the built-in text editor before reboot, it would allow to try and fix typos etc.

Describe alternatives you've considered
Maybe the error message could show the name of the file that it was trying to read and caused the problem without opening text editor

@evanbowman
Copy link
Owner

I think it's definitely possible to display better error messages, I'll consider ways of doing this. Due to memory limitations on the gameboy, there will be limits to how descriptive that I can make the errors.

@evanbowman
Copy link
Owner

For errors that happen at the top level of a script, I can display line numbers for that right away. For errors that happen inside functions, displaying line numbers will be much more complex

@Doronimmo
Copy link
Collaborator Author

I made this issue mainly to test the new templates

@evanbowman
Copy link
Owner

Skyland-100
It was pretty easy to add line number hints in certain places, I'll put this in the next patch. For errors occurring inside functions, I'll spend some more time thinking about how to do it efficiently.

@evanbowman evanbowman added this to the fix-this-someday milestone Nov 9, 2024
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

2 participants