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

Atom hangs with long do files #119

Open
mnaven opened this issue Jul 20, 2022 · 2 comments
Open

Atom hangs with long do files #119

mnaven opened this issue Jul 20, 2022 · 2 comments

Comments

@mnaven
Copy link

mnaven commented Jul 20, 2022

I have a large do file that is 12,000 lines long (404 KB). Atom handles the file fine if it is loaded with plain text grammar. However, enabling language-stata and selecting Stata grammar causes Atom to hang and eventually display the "Editor is not responding" message. I have no issues with shorter do files.

One practical solution is to work with smaller do files, but I currently need to use another editor in order to break files into chunks before being able to edit them in Atom.

Mac Mini 2018
macOS Version: Catolina 10.15.7
Atom Version: 1.60.0
language-stata Version: 1.7.3

@mnaven mnaven changed the title Atom Atom Hangs with Long Do Files Jul 20, 2022
@mnaven mnaven changed the title Atom Hangs with Long Do Files Atom hangs with long do files Jul 20, 2022
@kylebarron
Copy link
Owner

kylebarron commented Jul 20, 2022

I don't think there's anything actionable from language-stata. It's true the regexes are complex; a very simple grammar of the stata language might be more performant. But Atom is kinda slow and is in maintenance mode, so I don't think there will be any future work done on language-stata.

I think your only option is to not have a 12k line do file

@mnaven
Copy link
Author

mnaven commented Jul 21, 2022

That's what I figured - thanks for taking the time to consider it!

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

No branches or pull requests

2 participants