-
Notifications
You must be signed in to change notification settings - Fork 12.8k
Can't edit files in Visual Studio after installing 1.8.4 On Update 2 CTP #7204
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
I have the same problem. My co worker does not and the only major difference is I have the vs2015.2 CTP and he just has vs2015.1 rtm. Hope that helps |
I ran into the same problem as well. I was playing using the newly added ability to add comments to the tsconfig.json file. If I added a comment at the very top of the file, then this behavior occurred after a restart of VS. To resolve, remove any comments at the top of the tsconfig.json file (only use inline comments to the json), and then restart VS. To be safe, you might try removing any comments to the file and restarting VS and see if that fixes it. |
Update 2 CTP does not support TS 1.8.4. We are looking into why the setup did not show the correct blocking message. |
@mhegazy - thanks for the update. Partly our fault for running a CTP :) The perf improvements have been worth it though. If you've got some hacky way of rolling back to the 1.8.1-beta that'd be splendid. |
uninstall TS 1.8.4, repair Update 2 entry in Add/Remove programs should do the trick. |
I went to my layout folder for the update 2 CTP and found the pair of Typescript *.msi files. They wouldn't install as a newer version of the product was already present. Removing TypeScript 1.7.x and 1.8.x from add/remove programs still didn't let the *.msi files executes. So I then fired up Windows Installer Cleanup Utility. It lists many packages for CTP update 2 - so that's good. It also still listed the TypeScript packages. I nuked them and then ran the ones from the update 2 ctp folder. That got me back to VS 2015 throwing errors directing me to the activity log upon opening a TypeScript file. I visited add/remove programs and removed TypeScript from there. Opening VS 2015 got me back to the behaviour described in this thread where I get the read-only TypeScript experience (but no errors raised in the GUI). Strange that even after uninstalling TypeScript I still got syntax highlighting, etc. I'm now running a full repair from the VS 2015 Update 2 CTP installer. Fingers crossed. |
🙅 I'm heading home (GMT + 10 here) and will check this thread again in an hour or two. I have some work to do tonight so am very happy to be a guinea pig for any suggested fixes you may have. |
Unfortunately, this does not resolve the issue. Everything @IanYates has posted is the same for my machine. There is no Update 2 entry in Add/Remove programs, and Visual Studio is still showing 1.8.4 as being installed. Testing out all these different repairs takes way too long. At this point, I'm beginning to think that doing a clean install is going to be the easiest fix for me. |
I've uninstalled, reinstalled, uninstalled, gone crazy... 🔥 I have run uninstallers for VS 2015 Update 1 from add/remove programs and then also ran the installer for Update2 CTP to ask it to remove itself. Rebooting in between every change. I tried just VS 2015 update 1, which claims to mostly work (some TFS component fails) but then I can't apply the servicing update for update 1 since it says it needs update 1 installed. TypeScript files open but with no syntax highlighting or any other special behaviour. Whilst VS doesn't talk about being a CTP in its splash screen it's help->about menu still mentioned CTP 2. So I figured I might as well try to get on to Update 2 CTP. It installs without complaint. Reboot. But now I'm back to square one - I can't edit any typescript files :( How can I completely remove TypeScript from my system so that I can perhaps run the 2x TypeScript MSIs that ship with Update 2's CTP? I assume there are registry keys and folders to remove. I just don't want to remove too many and break things further. |
Can you delete the component cache [0] and the activity log from your machine... and send me the activitylog.xml [1] when it's created again? And what's the version of the TypeScript language service assembly [2]. [0] |
@paulvanbrenk -TypeScript language service version: |
Can you nuke this folder |
@OSUblake just to make sure, did you open a TypeScript file before grabbing the activitylog? I don't see any errors in there, which is a unexpected. |
I was wondering if that's what you wanted to happen, but I had to manually log that out. After doing a repair and clearing the component cache, it stops creating errors when you launch VS, even though it's not working correctly. |
@OSUblake did you try clearing the TypeScript folder and re-running the Update 2 installer.. not repair from 'Programs and Features'... I'm setting up a machine to see if I can get it in the same state... but that's taking a little while. |
I'm not near my computer right now, but I'll try again using the steps you provided. I did try running the installer before, but it would always crash as soon as I pressed install. For some reason using the installer from the Visualstudio.com site would always cause it to crash, but the installer from the Microsoft.com downloads worked. |
I've just gone through the nuking of folders and am about to try the typescript installer. I should add that I had the same TS language file version as reported by @OSUblake above |
Setup log After launching VS it's still broken I'm afraid. No user visible errors. I can open a TS file and get syntax highlighting but I can't type. Unfortunately there's now no activity log file. Weird. (I did delete the XSL stylesheet for it by accident - maybe that had an effect). I'll rerun with the -log parameter. |
Version of typescript is now The folder BUT, it is in the Activity log... |
A better activity log. I realised that I renamed TypeScript folder to _TypeScript and could see in the previous log that VS enumerates all folders for extensions and found the _TypeScript folder. It's now completely nuked. So rerunning VS again gives me a TypeScript editor where I can type but Activity log attached |
You probably saw this message: Now I see TypeScript files as plain text files.. but no TypeScript features work. Uninstall of 1.8.4 from the Programs and Features dialog runs into an issue, where the 1.8.4 components depend on the 1.7.6 components.... Trying some things to get the correct TypeScript bits on my machine. I'll let you know. |
Thanks @paulvanbrenk - I appreciate the help. |
.tsx - typo there.
|
There's absolutely nothing proprietary, it's just junk code, so I pushed the whole repo: https://github.com/maggiepint/ReactTSBehavingWeird |
I had to create a batch file to workaround this. move tsconfig.json tsconfig.json.bak REM start typing in the visual studio typescript file then un pause the this script to keep gulp happy pause move tsconfig.json.bak tsconfig.json |
@CarlosOnline Can you elaborate on how exactly are you using your solution? In my case after I rename the tsconfig file I regain editing ability, but when when the file is renamed back to its original name although I retain editing ability the project system is no longer using the tsconfig file and instead is looking at the project as if no tsconfig is present in the project. Note: I'm using an ASP.Net 4.6 project not a ASP.Net Core one. |
I make sure to restore tsconfig before typescript file is saved, otherwise gulp will fail. |
After get latest with tfs I cant edit any typescrit files anymore. Turned source control plugin on and off, changed nothing in the tsconfig file, reboot and can still edit .js and .html files but no .ts files. unable to work |
In my case I was able to overcome my problems by removing some content from my tsconfig.json file. More specifically I had a filesGlob element and a files element in my file, which weren't being used, my project builds with gulp and the source files are specified in another form. After removing these elements everything started working normally. |
@segersrobbert If you remove the Further can you share your |
I've upgraded visual studio and all works fine now. I'm sorry to say it's been a real struggle working with visual studio on front-end work besides this edit bug, configuring own compiling of typescript was a real hassle, its slow, it freezes and crashes quite often. |
@segersrobbert sorry to hear you are running into trouble there. We would love to get these issues fixed. Can you share more information about your set up, how can we reproduces the crashes, and freezes? can you share crash dumps, or at least stacks from relevant error events in your event viewer? |
Setup: mac(10.11.4) running parallels with windows10, since updated to VS2015 update 2 crashes and freezes are no more. VS is still interfering with typescript compiling and adding its typescript compile tags to |
adding a new typescript file will always add it as |
can you elaborate on this? what is the expectation and what is actually happening? |
I ran into a similar issue to @cboulva, except my .ts files would only be editable when I added the tsconfig.json (default one from Add > New Item context menu) file back to my project. I initially used VS to compile my .ts files, but then switched to using gulp for compiling them. That's when I deleted the tsconfig.json file, restarted VS the following day, then ran into the non-editable .ts files. Of course, adding it back made it work. I also added the
|
@vanister can you share your project? |
@paulvanbrenk sure, how do you want me to get it to you? |
@vanister A repo on GitHub is probably easiest. Also, which version of VS and TypeScript are you using ( see Help - About). |
@paulvanbrenk I'll create a repo for it and send you the details. I'm using 2015 update 2 with TypeScript 1.8.31. Whatever was installed with the VS update 2 installer. I am also using gulp-typescript and that typescript version is:
|
@paulvanbrenk sent you and email |
@vanister change the following in your project files: - <TypeScriptTarget>Unknown</TypeScriptTarget>
+ <TypeScriptTarget>ES6</TypeScriptTarget> We don't gracefully deal with that, this will be fixed in the next release of TypeScript |
Thanks @paulvanbrenk |
I think I found the Issue! If I have a very simple project; which contains only a single On future investigation, I discovered that when I couldn't edit the By changing my My test tsconfig.json file:
Can anyone else verify that this fixed the issue? |
@kabua that sounds very plausible.. I'll update the default |
I am running into the same issue, and none of the fixes suggested here seem to be working. My .tsconfig has always excluded node_modules, so I can't add it pursuant to @kabua 's suggestion, so presumably that's not universally the cause of this issue. I tried adding and removing .bak on the .tsconfig and that also has made no difference. I'm compiling .ts into .js using VisualStudio, and not running gulp or any other such tool. I have a question out on Stack Overflow here: http://stackoverflow.com/questions/37820711/visual-studio-2015-cannot-edit-typescript-files-get-exception-0x80020101 and I'm happy to share any other information that may be useful, though I can't upload the project itself without getting fired. :) |
@natwebb Yeah, this looks like a different issue.. replied on the StackOverflow question. |
At the suggestion of @paulvanbrenk I intalled Update 3 RC from here: https://www.visualstudio.com/downloads/visual-studio-prerelease-downloads and while the initial install failed, necessitating a restart and making VS unusable, running a Repair to get VS back up and running included a successful install of Update 3 RC and fixed the bug! |
I started receiving this error after I updated to Update 3 (Final). I made a stackoverflow question about this issue: http://stackoverflow.com/questions/38184024/error-in-visual-studio-2015-update-3-when-opening-solution-typescript |
I was able to edit Typescript files again when I installed Update 3 for VS. |
Close VS2015. |
TypeScript Version:
1.8.4
Visual Studio Version:
Community 2015 CTP 14.0.25008.00
Everything was working fine using TypeScript 1.8.1 beta. After installing 1.8.4 last night, the editor no longer works. Typing does nothing. The onlys keys it responds to are enter, delete, backspace. The three drop-down lists at the top of the editor that let you jump to certain parts of your code are all blank.
I've tried all of the following with no luck.
I also can't seem to stop Visual Studio from updating to the CTP when I reinstall. I started getting a lot of JavaScript language service crashes after installing the CTP. Viewing a compiled TS file would cause JavaScript to stop working.
The text was updated successfully, but these errors were encountered: