-
-
Notifications
You must be signed in to change notification settings - Fork 395
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
Cursor randomly jumps to beginning of line #437
Comments
@tomotvos |
There is a nice screencast demonstrating the bug in the other report we received: #476 (comment) |
It happens everytime you are on new line, then press TAB, cursor jumps back to home position of line, then, when you type anything, it jumps one line below. It's very annoying, I don't understand why this is not fixed yet since it makes working with IDE v2 frustrating. Considering going back to 1.8. Bug still on IDE 2.0.0-beta.12 on Windows 10 |
@gdarthy this bug is due to a faulty interaction between the editor and the Language Server. The team is hard at work to release a stable IDE 2.0 Thank you for your comment. |
IDE 2.0 rc3 (Windows 10) : cursor jumps after hitting enter -> jumps to new line, removes spaces before previous line, breaks words, inserts spaces, ... |
No, it's still happening with the current nightly: Version: 2.0.0-rc9-nightly-20220729 |
I am experiencing this with the latest nightly. I did not have this before, only with the latest few nightlys. Version: 2.0.0-rc9.1-nightly-20220810 |
I am able to reproduce this on my Linux machine, but not on my Windows machine. @Willem43T did some investigation and shared their valuable findings on the Arduino Forum: https://forum.arduino.cc/t/cursor-jumping-problem/1023535 I'll document what I have learned about the issue here: To reproduce
🐛 The whitespace is removed from line 2: ⓘ I set Expected behaviorIn short: the VS Code behavior. This is the behavior the Arduino IDE has on my Windows machine. I expect the Arduino IDE to work exactly like that, and to work that way consistently. I'll provide the exact descriptions of the expected behavior of each of the related settings.
|
As I mentioned in 1364 this is one of a few bugs that would keep me from using IDE2 for any serious stuff. Hope it gets fixed soon. Will try the workaround. But as mentioned I don't think that is the correct end solution, as I would still prefer the files to have trailing white space removed. |
The cursor jump bug made the editor mostly unusable for me. With the workaround I can use IDE 2 which offers huge advantages for me and the way I work. I agree it is not ideal and definitely not the final solution. However, since the complier does not mind a few possible trailing spaces, neither do I (for the moment). I am sure it will eventually be solved. The serial monitor is a different issue and not one that particularly effects me at present - I am sure it will also eventually be solved. Considering the progress over the last few updates, the team is doing well - keep up the good work. |
@Willem43T - I totally agree, the work around, helped a lot. Keeps me from using another editor to make the changes. And I agree that for the most part, things keep getting better Suggestion to Arduino:
Maybe a Menu item somewhere? Tools->Advanced->Command Palette Maybe something at the end of the preferences dialog, like the Arduino 1:
Where, maybe instead button that takes you to Command Palette or to the UI preferences page... Serial Monitor - I use a lot, to help debug things as well as to document stuff. So, hopefully you are right, and they will fix the major issues with it soon. |
@KurtE - F1 will open the Advanced Preferences (same as Ctrl+Shift+P). In search enter "settings" and select "Open Settings (UI)" from the list. Under "Editor" you now have hundreds of understandable as well as some really obscure settings. Quite a way down you will also find, under the "T"s (with Have fun. |
before checking if it's in sync or not. Closes #437 Signed-off-by: Akos Kitta <[email protected]>
before checking if it's in sync or not. Closes #437 Signed-off-by: Akos Kitta <[email protected]>
I downloaded the PR as a Windows 64 zip file and installed it. About lists it as Version: 2.0.5-snapshot-baf98f0 Copyright © 2023 Arduino SA Next I loaded a sketch, enabled all the skip whitespace options, particularly the "trimAutoWhitespace" which provided the current work around. Editing did not exhibit the, by now, well known cursor jumping randomly to the start of the line. I then closed the snapshot version, leaving the whitespace settings as is, and loaded my previous knightly. This immediately had the cursor jumping to the start problem. Back to the PR version and all seems to behave correctly. |
before checking if it's in sync or not. Closes #437 Signed-off-by: Akos Kitta <[email protected]>
Describe the problem
While editing, the cursor sometimes randomly jumps to the beginning of a new line
To reproduce
Expected behavior
The cursor should not jump around and stay where I am typing
Arduino IDE version
2.0.0-beta.7
Operating system
macOS
Operating system version
Big Sur
Additional context
Additional reports
Workaround
editor.trimAutoWhitespace
☑
Remove trailing auto inserted whitespace." setting.Issue checklist
The text was updated successfully, but these errors were encountered: