Comments (3)
I'm not sure if any other kinds of errors can be out of bounds though.
In some cases, an error is possible on the line zero (if we did not provide a correct data) or on the EOF token, but the latter is probably fixed, since after #85488 the error is produced on the previous
token. It is also possible that there is a bug in the tokenizer/parser.
So I think we could add a CLAMP
on the Script Editor side. Note that we should not change the number in the error message (to fix the bug in GDScript), only for the red line marker. Say, if GDScript reports an error on line zero, then Script Editor displays the error message as is, but highlights the first line. What do you think about it?
from godot.
- somewhat fixed by #85488
The error in the example now happens on a different line in bounds.
I'm not sure if any other kinds of errors can be out of bounds though.
from godot.
Say, if GDScript reports an error on line zero, then Script Editor displays the error message as is, but highlights the first line. What do you think about it?
Sounds good to me 🙂
Does the LSP specification allow reporting errors on line 0 though?
from godot.
Related Issues (20)
- Cant press space, up and left at the same time HOT 2
- ScrollContainer doesn't obey content margins, margin container or clip rects
- Popup Menu style may be overidden by another style.
- OpenXR local floor emulation is not working on HTC Elite (and possibly other devices) HOT 3
- Node3D objects will not render when changing scale HOT 3
- High CPU usage in web export in Linux when max FPS is set HOT 2
- Android Virtual keyboard get height always is 0
- AnimationPlayer.queue does not emit signal animation_finished HOT 3
- FastNoiseLite.GetImage(normalize: true) morphs on width and height gradual change HOT 1
- Filtered properties, does not include sub-resource properties
- AnimationTree causes performance drops even if no animation is running HOT 3
- Inconsistent Control node `gui_input` detection HOT 1
- C# code generation fails when using static imports in the initializer of exported variables
- Android Editor freezes when trying to use a virtual joystick addon
- Add alternative shortcut to Ctrl + Alt + M (Align Transform with View) due to GeForce Experience conflict HOT 4
- Wayland event polling crash when VSync is disabled, with message "explicit sync is used, but no release point is set" HOT 3
- D3D12 renderer crash when it can't create buffer HOT 12
- Resources extended from GDExtension classes don't work right in 4.3
- Emulate Numpad editor setting has no effect when previewing a Camera3D (standard or cinematic preview)
- Serialization Methods `var_to_bytes_with_objects` and `bytes_to_var_with_objects` Not Preserving Instance Property Values HOT 1
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 godot.