-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Out of bounds error when idle #457
Comments
This is someone being caused by the linter. I'm not sure how, but it seems like the autoclose plugin is also involved. I'll have to take a closer look. |
I'm seeing this more frequently now, especially when leaving micro open overnight. Any clues as to what the root causes of this is/anything I can do to provide more info? |
@zyedidia could you give me some more info on this, I think I would like to look into fixing it myself but i'm not sure where to start. |
Sure. I'm not able to reproduce it, but the problem seems to be coming from both the linter plugin and the autoclose plugin. The first error is from an out-of-bounds error on line 76. The second error is in the linter plugin. The error is coming from line 27 (which makes sense since you were using python). I find it hard to believe that line 27 is actually causing the error. The issue is actually probably happening in the |
OK, that is interesting, I don't use |
Alright. There should probably be some sort of check to see if you have the linter installed, although even without |
I left micro running overnight and I was able to get it to happen again:
I'm still not sure what this stacktrace means though. |
@zyedidia I'm not really so well versed in lua, but the autoclose function seems to allow for invalid values of |
@zyedidia http://stackoverflow.com/questions/17974622/what-does-mean-in-lua/17974661 |
@samdmarshall Did you have softwrapping on when these errors occured? |
I believe so, since i have softwrap enabled by default.
Quoting Collin Warren (2017-03-14 13:36:45)
… @samdmarshall Did you have softwrapping on when these errors occured?
--
You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub:
#457 (comment)
|
@samdmarshall I don't know for certain, but I'm wondering if softwrapping might have something to do with it. |
I don't know, i've ruled out the auto-close plugin so I don't know what else might be causing this. |
Description of the problem or steps to reproduce
Today I have been working in a file on and off and have seen this problem a few times where I get dropped out of the micro UI and back to my command line with an error message:
and
In both cases pressing enter returns me to the micro editor, then the cursor flickers for a few seconds and the process repeats and I get stuck in a loop like this until i can hit enter and mash control+q fast enough to quit micro before it drops back out to the "press enter to continue" prompt again.
Both the times I experienced this I was idle in the editor (not typing anything, just reading code), which was odd to me given the stack traces that were give. If it matters, the language of the file being viewed was Python 3.
I don't know if it is possible to write out these errors to some sort of log file, that might make it easier to get an accurate read for issues that aren't necessarily reproducible.
Specifications
ProductName: Mac OS X
ProductVersion: 10.12.1
BuildVersion: 16B2555
Version: 1.1.2
Commit hash: c04a4ba
Compiled on October 24, 2016
The text was updated successfully, but these errors were encountered: