2 ms·
This looks fun! Would be great to have something that catches runtime errors and highlights them in the source code. Then, of course, code completion etc to mak
by nullzzz 8y ago
This looks fun! Would be great to have something that catches runtime errors and highlights them in the source code. Then, of course, code completion etc to make it easy to find stuff.
I started working on a bit similar project some years ago (I unfortunately abandonded it...) but I got one thing right: the ability to highlight the erroneous line. See http://write-a-game.herokuapp.com/ http://write-a-game.herokuapp.com/ and try to call a non-existent function.
- nullzzz 8y agoHere's the stack trace parser used. It tries to extract the line number and error message from an Error object. Sorry for the coffeescript! https://github.com/raimohanska/write-a-game/blob/8d2111e2372c17f17b3e238093fd8131d5cdbabb/editor-app/parse-stack.coffee https://github.com/raimohanska/write-a-game/blob/8d2111e2372...
- gabrielflorit 8y agoGood idea. This would be useful for sure.