question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

atom-typescript installed but no autocomplete, no format code, only get the typescript status bar

See original GitHub issue

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 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:closed
  • Created 8 years ago
  • Comments:25 (5 by maintainers)

github_iconTop GitHub Comments

7reactions
eliorcohencommented, Nov 23, 2015

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.

4reactions
gurumohanreddycommented, Jun 26, 2016

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

Read more comments on GitHub >

github_iconTop Results From Across the Web

Visual Studio Code Intellisense Typescript not working
I've included a tsconfig.json file but it still doesn't have any intellisense on a project scale. My current test project contains the following ......
Read more >
TypeScript Programming with Visual Studio Code
TypeScript in Visual Studio Code. TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. It offers classes, modules, and interfaces ......
Read more >
atom-typescript-beta
Start using atom-typescript-beta in your project by running `npm i atom-typescript-beta`. There are no other projects in the npm registry ...
Read more >
All packages
Show your GitHub profile on the status bar ... Typescript React Redux snippets (follow ES6 standard) ... Minimal Atom package for indenting Clojure...
Read more >
Atom for Webdeveloper by ellerbrock - GitHub Pages
Atom for Web Developer Build Status OpenSource Gitter ... Node.js, jQuery & Angular. atom-typescript - The only TypeScript plugin you will ever need....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found