Skip to content
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

Index error occurs when trying to type on line 2 #73

Closed
aaxu opened this issue Oct 5, 2017 · 2 comments
Closed

Index error occurs when trying to type on line 2 #73

aaxu opened this issue Oct 5, 2017 · 2 comments
Assignees
Labels

Comments

@aaxu
Copy link
Contributor

aaxu commented Oct 5, 2017

Open any file and try to type on the 2nd line in the document. An index error should occur and the program will crash.

@aaxu
Copy link
Contributor Author

aaxu commented Oct 5, 2017

Seems to be caused by parse() function in parser.py. if beginRow = 1, then you decrement it and the line
self.parserNodes = self.parserNodes[:self.rows[beginRow]] sets self.parserNodes to an empty list, but you don't check for this condition in __buildGrammarList. I'll leave this up to you for now since I don't want to mess up your implementation, since I don't fully understand how it works yet.

dschuyler added a commit that referenced this issue Oct 6, 2017
@dschuyler dschuyler self-assigned this Oct 6, 2017
@dschuyler dschuyler added the bug label Oct 6, 2017
@dschuyler
Copy link
Collaborator

Thanks for the report!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants