atom-typescript installed but no autocomplete, no format code, only get the typescript status bar
See original GitHub issueI installed atom-typescript and when I open a TS file I do get the TypeScript status bar on the bottom that says “Error In Open Files” and “Last Build Output” and such.
I don’t get any autocomplete though. Nothing pops up at all as I type. Nothing pops up when I hover over variables, go to declaration doesn’t work, pretty much nothing works except for the status bar.
The status bar does update as I type (mostly just “Js emit is outdated” and “Js emit is up to date”).
Initially I did not have any tsconfig.json
file. I added one to the root with mostly default options and an exclude for node modules. I still had the problem so I replaced the tsconfig.json
with empty options, {}
. Still same issue.
What can I look into to resolve what’s going on? Seems like it must be something wrong with my setup (I just installed Atom today, was using WebStorm previously).
Thanks,
Sam
atom-typescript\package.json
snippet (too long to post full file)
{
"name": "atom-typescript",
"version": "6.0.0",
"main": "./dist/main/atomts",
"bin": {
"atbuild": "./dist/main/bin/atbuild"
},
"preferGlobal": "true",
"description": "The only TypeScript plugin you will ever need.",
"engines": {
"atom": ">=0.199.0 <2.0.0",
"node": "*"
},
"providedServices": {
"autocomplete.provider": {
"versions": {
"2.0.0": "provide"
}
},
"linter": {
"versions": {
"1.0.0": "provideLinter"
}
}
},
"consumedServices": {
"snippets": {
"versions": {
"0.1.0": "consumeSnippets"
}
}
},
...
"dependencies": {
"atom-package-dependencies": "https://github.com/basarat/atom-package-dependencies/archive/cb2.tar.gz",
"atom-space-pen-views": "^2.0.4",
"babel": "^5.6.23",
"basarat-text-buffer": "6.0.0",
"d3": "^3.5.5",
"emissary": "^1.3.3",
"escape-html": "^1.0.1",
"fuzzaldrin": "^2.1.0",
"glob-expand": "0.0.2",
"htmltojsx": "0.2.4",
"immutable": "^3.7.3",
"json2dts": "0.0.1",
"mkdirp": "^0.5.0",
"ntypescript": "1.201508230720.1",
"react": "^0.13.3",
"season": "^5.1.4",
"strip-bom": "^2.0.0"
},
...
}
Issue Analytics
- State:
- Created 8 years ago
- Comments:25 (5 by maintainers)
I had the same issue. it’s seems to be related to permissions. the only way i get it to work successfully was to start the atom from the project folder with “sudo” command.
sudo atom ./
and the autocomplete started to work as expected. using the open project from the menu seems to cause some problems.
For atom-typescript and any new typescript project in general, for things like autocomplete to work correctly, you must have a tsconfig.json file. atom-typescript has a command to generate you a file, when you’re editing a .ts file.
Press Ctrl+Shift+P and type create file and click on the first result from typescript