You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
sean-mcmanus opened this issue
May 7, 2019
· 3 comments
Assignees
Labels
bugIssue identified by VS Code Team member as probable bugoutputOutput channel system issuesverifiedVerification succeededwindowsVS Code on Windows issues
Use our C/C++ extension with a workspace with a .cpp file to activate it and set the C_Cpp.loggingLevel to "Debug" or run the "C/C++: Log Diagnostics" command, which calls code "vscode.window.createOutputChannel("C/C++") or "C/C++ Diagnostics"...or use any extension that does something equivalent.
Bug: VS Code gives some error like the following, which causes users of our extension to be confused/concerned (users send us the error in their bug reports). Changing our code to use "C++" instead fixes the issue, but that is unideal. This a somewhat recent regression over the past few months, but up till now we've just ignored it.
[Extension Host] Error: Failed opening file c:\Users\user\AppData\Roaming\Code\logs\20190506T193340\exthost11\output_logging_20190507T164807\6-C\C++ Diagnostics.log for writing: No such file or directory
at Object.createRotatingLogger (f:\Program Files\Microsoft VS Code 1.26\resources\app\node_modules.asar\spdlog\index.js:34:9)
at Object.t.createRotatingLogger (f:\Program Files\Microsoft VS Code 1.26\resources\app\out\vs\workbench\services\extensions\node\extensionHostProcess.js:290:530)
at new r (f:\Program Files\Microsoft VS Code 1.26\resources\app\out\vs\workbench\services\extensions\node\extensionHostProcess.js:629:222)
at f:\Program Files\Microsoft VS Code 1.26\resources\app\out\vs\workbench\services\extensions\node\extensionHostProcess.js:631:639
at Generator.next ()
at s (f:\Program Files\Microsoft VS Code 1.26\resources\app\out\vs\workbench\services\extensions\node\extensionHostProcess.js:11:9) (at f:\Program Files\Microsoft VS Code 1.26\resources\app\out\vs\workbench\services\extensions\node\extensionHostProcess.js:631:716)
Does this issue occur when all extensions are disabled?: Yes
The text was updated successfully, but these errors were encountered:
sean-mcmanus
changed the title
"Error: Failed opening file "C\C++.log" for writing occurs
Error: Failed opening file "C\C++.log" for writing occurs when createOutputChannel("C/C++") is used
May 7, 2019
sean-mcmanus
changed the title
Error: Failed opening file "C\C++.log" for writing occurs when createOutputChannel("C/C++") is used
"Error: Failed opening file "C\C++.log" for writing" occurs when createOutputChannel("C/C++") is used
May 7, 2019
To verify, create a sample extension that creates an output channel with name that has characters not supported in windows file names. Eg: vscode.window.createOutputChannel('C/C++');
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
bugIssue identified by VS Code Team member as probable bugoutputOutput channel system issuesverifiedVerification succeededwindowsVS Code on Windows issues
Steps to Reproduce:
Bug: VS Code gives some error like the following, which causes users of our extension to be confused/concerned (users send us the error in their bug reports). Changing our code to use "C++" instead fixes the issue, but that is unideal. This a somewhat recent regression over the past few months, but up till now we've just ignored it.
[Extension Host] Error: Failed opening file c:\Users\user\AppData\Roaming\Code\logs\20190506T193340\exthost11\output_logging_20190507T164807\6-C\C++ Diagnostics.log for writing: No such file or directory
at Object.createRotatingLogger (f:\Program Files\Microsoft VS Code 1.26\resources\app\node_modules.asar\spdlog\index.js:34:9)
at Object.t.createRotatingLogger (f:\Program Files\Microsoft VS Code 1.26\resources\app\out\vs\workbench\services\extensions\node\extensionHostProcess.js:290:530)
at new r (f:\Program Files\Microsoft VS Code 1.26\resources\app\out\vs\workbench\services\extensions\node\extensionHostProcess.js:629:222)
at f:\Program Files\Microsoft VS Code 1.26\resources\app\out\vs\workbench\services\extensions\node\extensionHostProcess.js:631:639
at Generator.next ()
at s (f:\Program Files\Microsoft VS Code 1.26\resources\app\out\vs\workbench\services\extensions\node\extensionHostProcess.js:11:9) (at f:\Program Files\Microsoft VS Code 1.26\resources\app\out\vs\workbench\services\extensions\node\extensionHostProcess.js:631:716)
Does this issue occur when all extensions are disabled?: Yes
The text was updated successfully, but these errors were encountered: