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

Investigate EOF Python Function Exception #63

Open
braxtonhall opened this issue Feb 23, 2021 · 0 comments
Open

Investigate EOF Python Function Exception #63

braxtonhall opened this issue Feb 23, 2021 · 0 comments
Assignees
Labels

Comments

@braxtonhall
Copy link
Collaborator

From #62

I'm actually not sure how this ever worked. I want to merge this but I need to look a bit more. When a file is split up trailing whitespace is removed, but the Python parser puts the end of a node as right before the beginning of the next node, which in the case of the final function in a file is the EOF.
So if a file ends with a newline you'll always end up with an out of bounds exception. I stepped through and everything was right and predictable with the latest changes. I have no idea how this was being obfuscated on develop, but I think this is enough for tonight.

Just figure out how this could have been working and double check that it is indeed working now.

@braxtonhall braxtonhall self-assigned this Feb 23, 2021
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

1 participant