-
Notifications
You must be signed in to change notification settings - Fork 17.3k
Can't select anything on the first line of XML file using the mouse #3009
Comments
I'm on Win8, atom v116, and it's working for me too, no problem here. |
Possibly fixed in 0.116 then, maybe also only on Windows? I will try again on Monday when I'm back at my desk. @lee-dohm Steps look correct to me. I will see if it's specific to the XML passed in by trying with some more variations. |
Are you using the react editor? |
I was using the React editor, yes. So that is definitely something to try. |
Ok, I've done some more testing. It turns out I just wasn't being patient enough - I can select text, it's just incredibly laggy (2-3 seconds on a quad core desktop). The first line of the document I was using is over 4000 characters long. Enabling soft wrap makes it much quicker to select characters on the top line. Sample file pasted below:
|
@batjko Disable wrapping. What are you using for those screen grabs by the way? I've not got any packages installed, I just did a standard "choco install Atom" install. |
I didn't say it was all on one line, just that the first line was very long. |
@tjrobinson Disabled wrapping and still no issues here: I'm using LiceCap. It's old and ugly, but simple and works just fine. Sorry I can't replicate what you're experiencing. The only difference is that I didn't use chocolatey. |
Hopefully this will make the behaviour clearer. I create a new document, paste my XML (straight from this issue report), press HOME, try to select some text on the top line (note the delay after I swipe). I then try selecting it a few different ways. As I said before, it does work, just very slowly sometimes. It seems to improve the longer Atom has been running. Note that when I select text on lines 2,3 and 4 it's very quick. |
Yes that's what I understood. I just tried to increase the effect by putting it all on one buffer line, but I tried various formats of the text, various ways of selecting etc. Never fails me. I'm not sure how to debug this, other than to run Also possible is a memory issue, I suppose? |
Safe mode doesn't make any difference, Windows reports 7GB of RAM free. Atom is using 21MB. |
@tjrobinson Does this issue cover the performance problems you described here? If not, could you add a comment to that issue; seems like this is related to long lines, not XML or the first line? Also, does turning on react editor mode in Atom > Preferences > Settings help? It should help -- I can reproduce the slow selection behavior when react is turned off, and can't if it's turned on. (Note: you'll need to restart Atom after turning on react mode). |
This issue has been automatically locked since there has not been any recent activity after it was closed. If you can still reproduce this issue in Safe Mode then please open a new issue and fill out the entire issue template to ensure that we have enough information to address your issue. Thanks! |
Affects:
Atom 0.115.0
Windows 8.1
Installed from Chocolatey
Steps to reproduce:
Existing XML files that are opened are fine. Other file formats/contents work fine.
The text was updated successfully, but these errors were encountered: