Comments (4)
from sprig.
@cedric-h: I'm not totally sure if this should have tag:bug, or tag:enhancement. Moving the error indicator to the line itself is an enhancement, but the error says it's on dispatch.js:88, which is incorrect (to the user, it's on line 7 & not in dispatch.js). Does this ticket also include fixing up the error message to mention the place the user's code errored?
from sprig.
I've done a bit of research and I have a few findings to report.
Because of how JavaScript new Function
works, it checks for syntax errors, and since the line where it checks for the syntax error isn't in the actual code, it just says it's at new Function()
and provides no more detail. However, when it's a runtime error, since it was found within the code, it shows you exactly where it is.
Syntax error: | Runtime error: |
---|---|
We might be able to get around the syntax errors by putting it through some kind of validator and showing the error from there if it finds one. For the runtime error, we would just need to parse the error string for the line number and column number, and then subtract the line by 2 (because it's starting at 3 for some reason) and the column number by 6 because it starts at 7.
from sprig.
Implemented this when possible with new error messages.
from sprig.
Related Issues (20)
- Spade Docker / Gardenshed: Support PC Build
- Add metadata.json to .gitignore HOT 2
- Gardenshed: gardenshed.py start-debugger doesn't work on Fedora Workstation 39
- Code input field shows email field, confusing users greatly
- Map editor does not open HOT 1
- design more robust debug probe HOT 1
- error not properly displaying when variable declared twice HOT 1
- Add Collaborative Editing to the sprig Editor
- Create UX proposal for Sprig theme picker
- Propose specific UX for new Penny theme
- teleport(spr, newX, newY) HOT 7
- Create new Theme picker dropdown in sprig editor HOT 6
- Map editor does not open when clicking on map thingie HOT 3
- Relocate "I'm stuck", "Run on Device", and "Theme picker" to a dropdown HOT 1
- Icon broken HOT 1
- Improve the model for the sprig on front page HOT 2
- showcase new great games every week HOT 1
- stylize gallery
- Sprig editor UI gets overwhelmed when many sprites are used
- Image metadata is deprecated?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sprig.