Skip to content

typescript.java searches wrong path for locally installed tsserver #141

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

Closed
nimo23 opened this issue Feb 6, 2017 · 2 comments
Closed

typescript.java searches wrong path for locally installed tsserver #141

nimo23 opened this issue Feb 6, 2017 · 2 comments

Comments

@nimo23
Copy link

nimo23 commented Feb 6, 2017

I installed ts 1.2.0-SNAPSHOT (and deleted old 1.1 from eclipse update site). I have tsc installed locally (v 2.1.5). When opening ts file in eclipse, this error occurs:

Cannot find [tsserver] file /usr/local/lib/node_modules/typescript/bin/tsc/bin/tsserver

When looking the path above, you see "bin/tsc/bin/" which is wrong.

The right path is
"/usr/local/lib/node_modules/typescript/bin/tsc" (for tsc)
and
"/usr/local/lib/node_modules/typescript/bin/tsserver" (for tsserver)

I use Mac OS. So I guess, typescript.java searches (local installed) tsserver/tsc with wrong path.

Please correct this. Thanks.

@angelozerr
Copy link
Owner

I I have understood you have configured Installed TypeScript with TypeScript / Runtime project property with

/usr/local/lib/node_modules/typescript/bin/tsc

But it should be

/usr/local/lib/node_modules/typescript

Please not that typescript.java provides now TypeScript 2.1.5 and TypeScript 2.2.0 (rc) as embedded TypeScript runtime.

@nimo23
Copy link
Author

nimo23 commented Feb 6, 2017

Okay, with /usr/local/lib/node_modules/typescript it works. Thanks!

@nimo23 nimo23 closed this as completed Feb 6, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants