Exception details below.
Steps to reproduce:
1. Download Christophe Conraets' NodeCellar sample app to a convenient folder with "git clone https://github.com/ccoenraets/nodecellar".
2. Create a new project from existing node.js code, pointing the wizard at the nodecellar folder. Use default settings for the remainder of the wizard.
3. Expand npm node - note, as expected, missing modules.
4. Right-click npm node and click "Install Missing npm Modules"
5. npm will install the modules and the exception will occur.
I don't know how reproducible this is. It may be a race, since the call stack originates with the FileSystemWatcher.
The problem is that the filename parameter is null. NodejsFileNode._tempFilePath is passed in as the value of this parameter.
---------------------------
Assertion Failed: Abort=Quit, Retry=Debug, Ignore=Continue
---------------------------
An unhandled exception is about to terminate the process. Exception info:
System.ArgumentNullException: Value cannot be null.
Parameter name: path
at System.IO.File.WriteAllText(String path, String contents)
at Microsoft.NodejsTools.Project.NodejsProjectNode.WriteReferenceFile(String filename, String output) in c:\GitWork\rgnpm01\Nodejs\Product\Nodejs\Project\NodejsProjectNode.cs:line 363
at Microsoft.NodejsTools.Project.NodejsFileNode.GenerateReferenceFile(String newText) in c:\GitWork\rgnpm01\Nodejs\Product\Nodejs\Project\NodejsFileNode.cs:line 96
at Microsoft.NodejsTools.Project.NodejsFileNode.FileContentsChanged(Object sender, FileSystemEventArgs e) in c:\GitWork\rgnpm01\Nodejs\Product\Nodejs\Project\NodejsFileNode.cs:line 223
at Microsoft.VisualStudioTools.Project.CommonProjectNode.FileContentsChanged(Object sender, FileSystemEventArgs e) in c:\GitWork\rgnpm01\Common\Product\SharedProject\CommonProjectNode.cs:line 851
at System.IO.FileSystemWatcher.OnChanged(FileSystemEventAr......
<truncated>
---------------------------
Abort Retry Ignore
---------------------------
Steps to reproduce:
1. Download Christophe Conraets' NodeCellar sample app to a convenient folder with "git clone https://github.com/ccoenraets/nodecellar".
2. Create a new project from existing node.js code, pointing the wizard at the nodecellar folder. Use default settings for the remainder of the wizard.
3. Expand npm node - note, as expected, missing modules.
4. Right-click npm node and click "Install Missing npm Modules"
5. npm will install the modules and the exception will occur.
I don't know how reproducible this is. It may be a race, since the call stack originates with the FileSystemWatcher.
The problem is that the filename parameter is null. NodejsFileNode._tempFilePath is passed in as the value of this parameter.
---------------------------
Assertion Failed: Abort=Quit, Retry=Debug, Ignore=Continue
---------------------------
An unhandled exception is about to terminate the process. Exception info:
System.ArgumentNullException: Value cannot be null.
Parameter name: path
at System.IO.File.WriteAllText(String path, String contents)
at Microsoft.NodejsTools.Project.NodejsProjectNode.WriteReferenceFile(String filename, String output) in c:\GitWork\rgnpm01\Nodejs\Product\Nodejs\Project\NodejsProjectNode.cs:line 363
at Microsoft.NodejsTools.Project.NodejsFileNode.GenerateReferenceFile(String newText) in c:\GitWork\rgnpm01\Nodejs\Product\Nodejs\Project\NodejsFileNode.cs:line 96
at Microsoft.NodejsTools.Project.NodejsFileNode.FileContentsChanged(Object sender, FileSystemEventArgs e) in c:\GitWork\rgnpm01\Nodejs\Product\Nodejs\Project\NodejsFileNode.cs:line 223
at Microsoft.VisualStudioTools.Project.CommonProjectNode.FileContentsChanged(Object sender, FileSystemEventArgs e) in c:\GitWork\rgnpm01\Common\Product\SharedProject\CommonProjectNode.cs:line 851
at System.IO.FileSystemWatcher.OnChanged(FileSystemEventAr......
<truncated>
---------------------------
Abort Retry Ignore
---------------------------