microsoft / TypeScript-Sublime-Plugin

IO wrapper around TypeScript language services, allowing for easy consumption by editor plugins
Apache License 2.0
1.72k stars 235 forks source link

Autocomplete not and errors highlighting not showing #588

Open hanchiang opened 7 years ago

hanchiang commented 7 years ago

Hi, I have just upgraded node to 6.9.5, but the autocomplete and highlightings are not showing.I tried uninstalling and reinstalling, and there is no difference.

I am on windows 8.1, using sublime build 3126. Installed the plugin from package control.

Do I have to include typings in sublime?

zhengbli commented 7 years ago

I guess the plugin failed to find the node executable from your environmental paths. Can you share your sublime console output when starting it?

Also, you can set node_path to be the path of your node executable file in the sublime user settings.

roblav96 commented 7 years ago

@hanchiang If you're on a Mac it looks something like this: "typescript_tsdk": "/usr/local/lib/node_modules/typescript/lib",

benfrain commented 7 years ago

I have the same issue.

OS X Sublime Build 3141 Node version v8.1.3 TypeScript 2.4.1

Here is the console output on Sublime Launch:

reloading plugin TypeScript.main
2017-07-07 10:14:24,505: 4482192320: WARNING: TypeScript plugin initialized.
plugins loaded
SublimeLinter: debug mode: off 
lang_service_enabled: True
Path of tsserver.js: /Users/benfrain/Library/Application Support/Sublime Text 3/Packages/TypeScript/tsserver/tsserver.js
Path of tsc.js: /Users/benfrain/Library/Application Support/Sublime Text 3/Packages/TypeScript/tsserver/tsc.js
Trying to spawn node executable from: /usr/local/bin/node
ref view not found
no shell found to fetch environment from

Not sure if that helps dedug?

Also tried adding:

"enable_inline_error_tips": true

Into my Preferences file but makes no difference.