-
Notifications
You must be signed in to change notification settings - Fork 12.8k
How can I update Visual Studio's version of TypeScript? #5995
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
TypeScript 1.7 is part of VS 2015 Update 1, please install VS 2015 Update 1. If you enabled DevMode, it will always pick the files from this location, so if you are not doing active development on the TypeScript repo, i would disable it. |
That is very helpful, thank you! Though I found it strange that I couldn't find a link to that anywhere on the TypeScript site. Is there a way by which I can upgrade Visual Studio to the next version of TypeScript (that is, the latest off this repository)? |
There are two pieces to the typescript plugin in VS; 1. The language service, this is your completion, colorization, signature help, etc.. You can update to the latest using the DevMode as you alluded to earlier. 2. The MSBuild integration pieces, this includes target file, tasks dll and the command line compiler executable (tsc.exe), you can update the manually, but there is nothing like the DevMode currently. We should have a nugget package available in the upcoming weeks, and that should making updating the MSBuild integration and command line compiler straight forward. |
hey @mhegazy I seem to be stuck at TypeScript 1.8.34.0 (according to "About Microsoft Visual Studio") and I'm not sure how to update it using DevMode. I flollowed this and created the EnableDevMode key with a value of 1, but just don't see how that helps me get TypeScript to version 1.8.6. Maybe this thread is too old or maybe I just need directions? |
this thread is probably not the same issue you are running into TS 1.8.34 is the latest TS 1.8.* release. it is the same compiler version as 1.8.10, but some updated VS plugin code, hence the higher version. so having TS 1.8.34 means you are all set with TS 1.8. |
Hmm... that throws me off because I've come across a number of forum posts saying that updating to 1.8.6 helped resolve the issue with compileOnSave not working. Plus, when I look here it says 1.8.6.0... In any case, I've tried everything and can't get VS to compile my typescript unless I do a full rebuild after every change. I've scoured the forums and nothing has really helped. Oddly, it worked again for a little while after I switched to my new dev. machine but then stopped working again. I thought that was fixed? I have tsconfig compileOnSave set to true and have tried just about every other tweak or update I've found online. I can't believe it's still not working. |
can you log a new issue, and give us some more information about what you are running into to help diagnose the problem? |
Yeah I'll do that if I should. I've hesitated to log an issue because lots of very closely related, though not identical, issues have been logged. |
I'm having the exact same issue. The tsconfig page indicates that compileOnSave is avaiable for typescrip TypeScript 1.8.4 and above, but my about page also indicates 1.8.35. Visual Studio doesn't compile the files unless I remove the tsconfig.json file. Seems to be the exact same thing as you, Methodician. |
Hey PEsteves8! I'm onto a new project now and it seems to be working Thanks! On Fri, Jul 22, 2016 at 8:39 AM PEsteves8 [email protected] wrote:
|
After multiple reinstalls/repairs, cache and temp folder deletions, things eventually started working, after I kind of installed Typescript 2.0 beta. I think. So problem solved. |
Mysterious bugs... A bit frustrating when noone can ever quite put their On Wed, Jul 27, 2016 at 3:42 AM PEsteves8 [email protected] wrote:
|
I guess the issue is that there are multiple
When you type just
|
I updated my VS C:\Program Files (x86)\Microsoft SDKs\TypeScript from 1.8 -> 2.0 via the Angular's VISUAL STUDIO 2015 QUICKSTART, prereq #4 --> Download and install TypeScript 2.0 for Visual Studio 2015 |
I bothered @DanielRosenwasser with something similar on gitter yesterday, but I want to reduce the problem to something even easier.
I want to upgrade to the latest version of TypeScript - 1.7.3 - but I'm actually not sure how I can do that when using Visual Studio, which was installed with an older version. It seems like I must be somewhere around TypeScript 1.6, as both the exponentiation operator and
this
typing don't work.What I've tried to do to upgrade my version:
It claims that TypeScript is already installed and there's nothing to do. Just for fun, I tried to remove it and reinstall it anyways. No luck.
npm install -g typescript
This had no effect, as far as I can tell.
npm install typescript
Also did nothing.
This stopped the red squiggles from appearing under my exponentiation operator and
this
type! Promising! However, when I try to compile, I get errors when I try to use features from 1.7 anyways. It's as if Visual Studio is using two separate compilers.Thanks for your help.
The text was updated successfully, but these errors were encountered: