language-stata icon indicating copy to clipboard operation
language-stata copied to clipboard

Atom hangs with long do files

Open mnaven opened this issue 2 years ago • 2 comments

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 avatar Jul 20 '22 18:07 mnaven

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

kylebarron avatar Jul 20 '22 20:07 kylebarron

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

mnaven avatar Jul 21 '22 16:07 mnaven