-
Notifications
You must be signed in to change notification settings - Fork 202
atom-typescript installed but no autocomplete, no format code, only get the typescript status bar #549
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
Comments
Did you get the message : Ref : https://github.com/TypeStrong/atom-typescript#installation 🌹 |
I am having the exact same issue. I installed the typescript package in the manner described on the README but I still have no autocomplete or hover functionality. I did not see the |
I had the same issue. it's seems to be related to permissions.
and the autocomplete started to work as expected. |
Wow, I just realized how much better atom-typescript is when you launch atom with sudo! Would be nice not to have to do this, though. |
I'm experiencing this issue as well. I tried installing atom-typescript through the UI then removed it and tried installing through CLI. The CLI install resulted in: |
Anyone have any stack trace (open dev tools https://github.com/TypeStrong/atom-typescript/blob/master/CONTRIBUTING.md#workflow) 🌹 |
Just installed the development version and rebooted. I'm getting a few errors in the console:
and
I'm seeing this second error message several times with different methods: |
@hitchcockwill sorry for the late reply. That is by design. We are just erroring out on invalid projects. We show a message for this as well : That if you click would guide you to the fix. Basically you have something like : {
"compilerOptions": {
"compileOnSave": false,
"target": "es5",
"module": "commonjs",
"declaration": false,
"noImplicitAny": false,
"removeComments": true,
"noLib": false
}, When you should have : {
"compileOnSave": false,
"compilerOptions": {
"target": "es5",
"module": "commonjs",
"declaration": false,
"noImplicitAny": false,
"removeComments": true,
"noLib": false
}, @hitchcockwill docs : https://github.com/TypeStrong/atom-typescript/blob/master/docs/tsconfig.md#options. So that fixes your error 🌹 Anybody else got a stacktrace with a valid error ? : rose: If not I will close this. |
After making that change in the tsconfig file I started getting autocomplete suggestions as expected in my .ts files. They are pretty slow, but they do work. |
@hitchcockwill check that the tsconfig is not touching all files. See FAQ https://github.com/TypeStrong/atom-typescript/blob/master/docs/faq.md#for-really-large-projects-atom-typescript-gets-slow for details 🌹 We should probably be easily able to figure out the intent and understand that its a folder exclusion ourselves at some point 🌹 |
Thanks @basarat I was having some other issues with the plugin and just discovered that I needed to configure my tsconfig. I've got it set up correctly now and everything seems to be working at lot better. |
Cool. Since no one else has reported back, closing this 🌹 |
There was no error displayed on atom until I opened the tsconfig.json |
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 |
For anyone that stumbles across this on a Google search and is looking for a solution on Windows 7, just give it time. When I installed and started working on an existing project it took a couple of minutes for Atom to process through a number of items in the status at the bottom. Once it finally got done with those then my autocomplete and related features started working. |
Make sure you have a |
I've got a tsconfig.json file in the root of my project directory:
and this is it:
I'm trying to edit files in the directory:
First, in the TypeScript area at the bottom of the editor, I see the message:
Sometimes it goes away, and then it just comes back (when I open another file?). Saving the file does not get rid of the message. Second, the autocomplete does not work as shown in the demo. When I type out the same example shown:
I don't see anything popping up (as in zero). If I type:
and wait, then after at least 3 seconds and sometimes as long as 7 seconds, an autocomplete menu displays. When I assign the wrong type to bar:
I get no error. I save the file--still no error. Five minutes later, I get an error. Then after I delete that line, I still get the error. I actually have to type something on the line that I deleted in order to make the error go away (is that really the way it's supposed to work). If I hover over something, sometimes I don't see the type(even after waiting for five seconds), and other times I see the type immediately. Also, I cannot find a Macbook Pro |
I wasn't getting any autocomplete at all. In the status bar, I clicked on "TypeScript", and it brought up a list of all languages supported....I noticed that there were two Typescript in the list. I clicked on the other one (the one that was not currently selected), and voila! Suddenly I started to get autocomplete functionality. |
Changing this atom-typescript tsconfig.json worked for me. { "compileOnSave": true, "compilerOptions": { The "compileOnSave" line should be moved to the top and comma separated, similar to basarat's 2015 fix |
if anyone still facing this issue please check whether you have installed package |
@amhuhn2 solutions worked for me! First in bottem right corner: Then search for TypeScript and choose the one that isn't selected. Works! |
@amhuhn2 That was the problem for me as well thank you so much it works like a charm now! :) |
Guys, install PS: Just so you know, the current version of Atom uses |
I 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 thetsconfig.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)The text was updated successfully, but these errors were encountered: