atom-typescript: Editing is very slow - about one second per keystroke
UPDATE - After I wrote the report below, editing suddenly became faster. It’s still a little slow, but much better. I don’t know what changed or how to make it happen again. 😦
UPDATE 2 - 2015-07-17: I’m still finding Atom unusable for working on TypeScript… 😦 It’s too slow. I type a few characters, then I have to wait for it to catch up with me. I’m switching back to WebStorm 10 for now. It’s a shame because Atom is very nice in many other ways, but responsiveness is a critical requirement for an IDE.
Using atom-typescript 5.0.17 and Linter 1.2.0 or 1.2.3, I am now in a state where editing a particular TypeScript file is very slow. Every key I press takes about a full second for the editor to respond. There is no perceptible lag editing files other than this particular file, including C++ files, HTML, and even other TypeScript files.
Not sure it matters, but I’m running Debian Jessie after an upgrade from Debian Wheezy:
don@spearmint:~/flywheel$ uname -a
Linux spearmint 3.16.0-4-amd64 #1 SMP Debian 3.16.7-ckt11-1 (2015-05-24) x86_64 GNU/Linux
The following may help repro the problem:
- Clone my repository at: https://github.com/cosinekitty/flywheel
- Open the directory with Atom.
- Edit the file
src/flywheel.ts - Start typing - everything is slow! (At least it is when I do it on my machine…)
If I can provide more info to diagnose/repro this problem, please let me know!
Thanks in advance…
Don
About this issue
- Original URL
- State: closed
- Created 9 years ago
- Reactions: 1
- Comments: 31 (10 by maintainers)
@omidkrad alternatively move
tsconfig.jsonto a some directory inside e.gsrcIt is much faster after I excluded the tmp and dist directories in tsconfig.json “exclude”: [ “node_modules”, “src/lib”, “typings/main”, “typings/main.d.ts”, “dist”, “tmp” ],
Excluding node_modules resolves the slowness, but on the other hand we loose the @types from things like module.id and describe, beforeEach, etc in a Angular 2 project. Sublime and vscode works with node_modules without being slow.
hmmm… I did that as well, changed nothing. What actually made it a little bit faster was moving the tsconfig.json in the src directory (obviously it has no “node_modules” in its “path” then). But still: @basarat Screen-GIF is (unless it’s in 1.5x speed) very impressive. My performance is way slower.