language-stata
language-stata copied to clipboard
Atom hangs with long do files
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
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
That's what I figured - thanks for taking the time to consider it!