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
Visual Studio 2015 crashes with many packages to download #336
Comments
I do think the Visual Studio crash happens due to the Node.js analysis refresh operation that the Node Tools does. This starts during npm install and it crashes Visual Studio after a short while. When it crashes Visual Studio, it can actually make NPM packages corrupt on the local machine, and this can even happen in the npm-cache folder. This means the next time a user tries to install the package, it will actually fail unless "npm cache clear" first is run. Is it possible to DISABLE the Node.js analysis somehow? And perhaps enable after packages have been restored? |
I do think the issue is related to paths to long for Windows, one of the times I manually added one and one package, it failed on gulp-imagemin. When I now tried to delete that folder, I got path to long error in File Explorer. Please inform what options to disable in Visual Studio to make sure it won't crash during npm install. For now I can't use this add-on. |
Hmm, unfortunately I can't repro on my machine. Since VS crashed, there should be a corresponding entry in the Windows event viewer. Mind grabbing the relevant info so we can track this one down? |
I have the same problem here. But as an extra "bonus" it takes Visual Studio 5 an extra minutes to open the project / solution. I have a different project than sondreb, but I think it still relates to the same problem. We have reproduced the error on multiple machines, all freshly installed Win 10 machines with VS 2015 Professional. Before i do a "npm install" and "bower install" VS starts up just fine within 10 seconds. node_modules and bower_modules are excluded from the project. I do get an exception in the output, but not sure if it is the root cause
I see that there is a duplication in the "graceful-fs" module package.json file, but I have no problem starting up the server, or opening the project in WebStorm or Code. |
BTW: If i make a Empty ASP.NET Web project and places the entire emberjs project in that solution it works as expected. |
Energiz0r- check your .ntvs_analysis.dat file. I had a glitch in mine, and it was over 200 meg. Erased started again. |
Closing - the crash is likely a duplicate of #361 and the errors in the Output Window look like a duplicate of #208, but lmk if you think otherwise so we can re-open. One thing that would be helpful to verify is to see if the corresponding log for the crash in the Windows Event Log matches the one in #361. @Energiz0r regarding the project load perf issue, would you mind trying RC2 or our latest dev build? We fixed some issues with that. http://github.com/Microsoft/nodejstools |
@mousetraps Just tried RC2. |
Creating a new project, then modifying the package.json adding all of these packages, then saving, will eventually make Visual Studio crash. I'm using the "Basic Azure Node.js Express 4 Application" template. This does not happen with the ASP.NET 5 beta 5 project template:
Then opening the solution and project after crash, simply throws a bunch of errors in the Output window:
... This is because a lot of files was stopped writing mid-file, so they are destroyed.
Downloading ONLY the dependencies, and not the devDependencies, works fine. Downloading half of the devDependencies, makes Visual Studio 2015 RTM consistently crash.
Clean Windows 10 RTM installation with Visual Studio 2015 with Tools released 29th of July.
The text was updated successfully, but these errors were encountered: