in my company laptop they did a central update on the vscode version and from one day to the other my code does not even start. (by company laptop means I don't really have admin access and can only try a few things to debug this)
I wanted to know how can I debug this because maybe is some additional plugin or something I might have that might be causing this problem.
It seems is not affecting other users so they don't really know what much can be.
anyway this is the stacktrace when I launch it, either from terminal or from the launcher.
Z:\>code
Error: Cannot find module 'iconv-lite'
Require stack:
- C:\Program Files\Microsoft VS Code\resources\app\out\bootstrap-amd.js
- C:\Program Files\Microsoft VS Code\resources\app\out\cli.js
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:844:17)
at Module._load (internal/modules/cjs/loader.js:737:27)
at Function.Module._load (electron/js2c/asar.js:769:28)
at Module.require (internal/modules/cjs/loader.js:899:19)
at require (internal/modules/cjs/helpers.js:74:18)
at t.load (C:\Program Files\Microsoft VS Code\resources\app\out\vs\loader.js:16:119)
at e.load (C:\Program Files\Microsoft VS Code\resources\app\out\vs\loader.js:13:586)
at i (C:\Program Files\Microsoft VS Code\resources\app\out\vs\loader.js:29:189)
at Object.errorback (C:\Program Files\Microsoft VS Code\resources\app\out\vs\loader.js:29:313)
at e.triggerErrorback (C:\Program Files\Microsoft VS Code\resources\app\out\vs\loader.js:13:955)
at C:\Program Files\Microsoft VS Code\resources\app\out\vs\loader.js:13:659
at ReadFileContext.callback (C:\Program Files\Microsoft VS Code\resources\app\out\vs\loader.js:16:494)
at FSReqCallback.readFileAfterOpen [as oncomplete] (fs.js:239:13) {
code: 'MODULE_NOT_FOUND',
requireStack: [
'C:\\Program Files\\Microsoft VS Code\\resources\\app\\out\\bootstrap-amd.js',
'C:\\Program Files\\Microsoft VS Code\\resources\\app\\out\\cli.js'
],
phase: 'loading',
moduleId: 'iconv-lite',
neededBy: [ 'vs/base/node/encoding' ]
}
Error: Cannot find module 'vscode-minimist'
Require stack:
- C:\Program Files\Microsoft VS Code\resources\app\out\bootstrap-amd.js
- C:\Program Files\Microsoft VS Code\resources\app\out\cli.js
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:844:17)
at Module._load (internal/modules/cjs/loader.js:737:27)
at Function.Module._load (electron/js2c/asar.js:769:28)
at Module.require (internal/modules/cjs/loader.js:899:19)
at require (internal/modules/cjs/helpers.js:74:18)
at t.load (C:\Program Files\Microsoft VS Code\resources\app\out\vs\loader.js:16:119)
at e.load (C:\Program Files\Microsoft VS Code\resources\app\out\vs\loader.js:13:586)
at i (C:\Program Files\Microsoft VS Code\resources\app\out\vs\loader.js:29:189)
at Object.errorback (C:\Program Files\Microsoft VS Code\resources\app\out\vs\loader.js:29:313)
at e.triggerErrorback (C:\Program Files\Microsoft VS Code\resources\app\out\vs\loader.js:13:955)
at C:\Program Files\Microsoft VS Code\resources\app\out\vs\loader.js:13:659
at ReadFileContext.callback (C:\Program Files\Microsoft VS Code\resources\app\out\vs\loader.js:16:494)
at FSReqCallback.readFileAfterOpen [as oncomplete] (fs.js:239:13) {
code: 'MODULE_NOT_FOUND',
requireStack: [
'C:\\Program Files\\Microsoft VS Code\\resources\\app\\out\\bootstrap-amd.js',
'C:\\Program Files\\Microsoft VS Code\\resources\\app\\out\\cli.js'
],
phase: 'loading',
moduleId: 'vscode-minimist',
neededBy: [ 'vs/platform/environment/node/argv' ]
}
Any idea what I might try? it's probably some configuration issue on my side.
I believe this to be the version of the latest update:
https://code.visualstudio.com/updates/v1_49
I'm now trying to run a portable version of vscode without plugins to try and figure out what the problem is, if interesting this are the extensions I've found in my user profile folder:
ms-azuretools.vscode-docker-1.1.0
ms-vscode.vscode-typescript-tslint-plugin-1.2.3
naco-siren.gradle-language-0.2.3
richardwillis.vscode-gradle-2.4.14
shd101wyy.markdown-preview-enhanced-0.5.13
tht13.html-preview-vscode-0.2.5
zxh404.vscode-proto3-0.4.2
abusaidm.html-snippets-0.2.1
angular.ng-template-0.1001.0
dbaeumer.jshint-0.10.21
dbaeumer.vscode-eslint-2.1.1
eamodio.gitlens-10.2.2
ecmel.vscode-html-css-0.2.3
esbenp.prettier-vscode-5.5.0
hookyqr.beautify-1.5.0
marlon407.code-groovy-0.1.2
Related
I want to do some simulations that need C++-Code in Matlab. This works like a charm, but as soon as I put in some additional #include's in the C++/MEX-Code I get a ton of error messages like this:
C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\INCLUDE\cstdlib(19) : error C2054: expected '(' to follow 'using'
C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\INCLUDE\cstdlib(19) : error C2061: syntax error : identifier 'using'
C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\INCLUDE\cstdlib(21) : error C2061: syntax error : identifier 'using'
C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\INCLUDE\cstdlib(21) : error C2061: syntax error : identifier 'abs'
C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\INCLUDE\cstdlib(21) : error C2059: syntax error : ';'
C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\INCLUDE\cstdlib(21) : error C2061: syntax error : identifier 'atexit'
C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\INCLUDE\cstdlib(22) : error C2061: syntax error : identifier 'atof'
C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\INCLUDE\cstdlib(22) : error C2059: syntax error : ';'
C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\INCLUDE\cstdlib(22) : error C2061: syntax error : identifier 'atoi'
C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\INCLUDE\cstdlib(22) : error C2061: syntax error : identifier 'atol'
C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\INCLUDE\cstdlib(23) : error C2061: syntax error : identifier 'bsearch'
C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\INCLUDE\cstdlib(23) : error C2059: syntax error : ';'
C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\INCLUDE\cstdlib(23) : error C2061: syntax error : identifier 'calloc'
C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\INCLUDE\cstdlib(23) : error C2061: syntax error : identifier 'div'
C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\INCLUDE\cstdlib(24) : error C2061: syntax error : identifier 'exit'
C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\INCLUDE\cstdlib(24) : error C2059: syntax error : ';'
C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\INCLUDE\cstdlib(24) : error C2061: syntax error : identifier 'free'
C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\INCLUDE\cstdlib(25) : error C2061: syntax error : identifier 'labs'
C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\INCLUDE\cstdlib(25) : error C2059: syntax error : ';'
...
I tried different versions of Matlab, Visual Studio and different C++-Compilers. I have code that works perfectly fine and also tried this with example-code from Mathworks that also works fine.
For testing-purposes I simply put #include <random> or include <algorithm> on top of working examples and then those error-messages occur. No "file not found"-errors.
Can anybody give me a hint what I'm doing wrong here? I didn't change anything in mexopts.bat and I believe the right include-directories are in there. Programming in Visual Studio itself works without any problems with those #include's...
OK, so in hope that other people who run into the same problem have an answer here: My source-files were always *.c - so no C++-files. Changing them to *.cpp solved the problem.
I am not sure if this is a Visual Studio Code issue or Dafny issue as I am new to both.
Loaded Visual Studio Code then from within Visual Studio Code loaded the extension for Dafny.
I get the following error message and know that you can tell Visual Studio explicitly where mono is to be found but I do not know where mono is?
verify all1
all verifyfile:///Users/dstr/GoogleDrive/Teaching/SWEN324/FreshStart/fresh.dfy
The verifyer process ended with code 0
Local: 2.3.0
Remote:2.3.0
events.js:180
throw er; // Unhandled 'error' event
^
Error: spawn mono EAGAIN
at Process.ChildProcess._handle.onexit (internal/child_process.js:264:19)
at onErrorNT (internal/child_process.js:456:16)
at processTicksAndRejections (internal/process/task_queues.js:77:11)
Emitted 'error' event at:
at Process.ChildProcess._handle.onexit (internal/child_process.js:270:12)
at onErrorNT (internal/child_process.js:456:16)
at processTicksAndRejections (internal/process/task_queues.js:77:11) {
errno: 'EAGAIN',
code: 'EAGAIN',
syscall: 'spawn mono',
path: 'mono',
spawnargs: [
'/Users/dstr/.vscode/extensions/correctnesslab.dafny-vscode-0.17.2/dafny/dafny/DafnyServer.exe'
]
}
The problem was solved by turning off the Automatic counter example generator. In the settings for the dafny extension.
Whenever I attempt to open VS Code, I am seeing the following error:
Error Message
Here is the transcript:
Uncaught Exception:
Error: Cannot find module 'C:\Program Files\Microsoft VS Code\resources\app\out\main'
Require stack:
-
at Module._resolveFilename (internal/modules/cjs/loader.js:627:15)
at Function.Module._resolveFilename (C:\Program Files\Microsoft VS Code\resources\electron.asar\common\reset-search-path.js:46:16)
at Function.Module._load (internal/modules/cjs/loader.js:531:27)
at Object.<anonymous> (C:\Program Files\Microsoft VS Code\resources\electron.asar\browser\init.js:191:12)
at Module._compile (internal/modules/cjs/loader.js:645:32)
at Function.Module._load (internal/modules/cjs/loader.js:560:12)
at Function.Module.runMain (internal/modules/cjs/loader.js:850:10)
at internal/main/run_main_module.js:17:11
I am unable to open any projects in VS Code; any attempt throws the same error. I was running VS Code in the same session without any issues prior to receiving this error.
VSCode Version: 1.19.0
OS Version: Windows 10 1709 (16299.125)
Reproduces without extensions: Yes
There is no way to open VSCode after 1.19.0 update installed. It always launches blank screen and prints 2 error messages in debug console.
index.js:5 TypeError: Cannot read property 'comments' of null
at file:///C:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:2920:762
at Array.forEach (native)
at e.setCustomTokenColors (file:///C:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:2920:735)
at new e (file:///C:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:2927:679)
at t.create (file:///C:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:90:103)
at e._createInstance (file:///C:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:1209:289)
at e.createInstance (file:///C:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:1208:560)
at e.initServiceCollection (file:///C:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:4516:741)
at e.createContents (file:///C:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:4511:118)
at e.open (file:///C:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:4518:113)
onError # index.js:5
I tried to reinstall vscode or launch it without extensions - same result.
What's more, I got the same issue on Linux virtual machine:
VSCode Version: 1.19.0
OS Version: Ubuntu 17.10 x64
index.js:41 TypeError: Cannot read property 'comments' of null
at file:///usr/share/code/resources/app/out/vs/workbench/workbench.main.js:2920:762
at Array.forEach (native)
at e.setCustomTokenColors (file:///usr/share/code/resources/app/out/vs/workbench/workbench.main.js:2920:735)
at new e (file:///usr/share/code/resources/app/out/vs/workbench/workbench.main.js:2927:679)
at t.create (file:///usr/share/code/resources/app/out/vs/workbench/workbench.main.js:90:103)
at e._createInstance (file:///usr/share/code/resources/app/out/vs/workbench/workbench.main.js:1209:289)
at e.createInstance (file:///usr/share/code/resources/app/out/vs/workbench/workbench.main.js:1208:560)
at e.initServiceCollection (file:///usr/share/code/resources/app/out/vs/workbench/workbench.main.js:4516:741)
at e.createContents (file:///usr/share/code/resources/app/out/vs/workbench/workbench.main.js:4511:118)
at e.open (file:///usr/share/code/resources/app/out/vs/workbench/workbench.main.js:4518:113)
This seems to be the same issue as #40339, which has already been fixed on VSCode's master branch. The issue's milestone (November Recovery 2017) indicates that it will be part of a 1.19.1 patch release.
For now, it looks like you can work around the issue by setting editor.tokenColorCustomization to {} (source):
Can you check if you have editor.tokenColorCustomizations set to null in your settings file (you can find it at ~/Library/Application Support/Code/User/settings.json). If yes, then set it to {} instead and then try opening VS Code.
I have the follow configuration:
Windows 10 64bit
Matlab r2016b, NVidia GeForce 920MX, compute capability 5.0, toolkit version 7.5
Visual Studio 2015 for community
MatConvNet beta 23
Cuda 8.0 (ga1 02/2017)
cuDNN 6.0 (04/2017)
When I compile with vl_compilenn (only cpu) the compile is correct.
But when I compile with:
vl_compilenn ('enableGpu', true)
or more specific with:
vl_compilenn('enableGpu', true, 'cudaMethod', 'nvcc', 'cudaRoot', 'C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v8.0', 'enableCudnn', true, 'cudnnRoot', 'C:\..\..\..\..\..\MatConvNet\cuda')
I have the follow issue:
vl_compilenn: CUDA: MEX config file: 'C:\Program
Files\MATLAB\R2016b\toolbox\distcomp\gpu\extern\src\mex\win64\mex_CUDA_win64.xml'
C:/Program Files (x86)/Microsoft Visual Studio
14.0/VC/../VC/bin/../../VC/INCLUDE\crtdefs.h(10): fatal error C1083: Non Þ possibile aprire il file inclusione: 'corecrt.h': No such file
or directory data.cu Error using vl_compilenn>nvcc_compile (line 540)
Command "C:\Program Files\NVIDIA GPU Computing
Toolkit\CUDA\v8.0\bin\nvcc" -c
"C:.........\MatConvNet\matconvnet-1.0-beta23\matlab\src\bits\data.cu"
-DNDEBUG -DENABLE_GPU -DENABLE_CUDNN -I"C:..........\MatConvNet\cuda\include" -DENABLE_DOUBLE -D__SSSE3__ -gencode=arch=compute_50,code=\"sm_50,compute_50\" -I"C:\Program Files\MATLAB\R2016b\extern\include" -I"C:\Program Files\MATLAB\R2016b\toolbox\distcomp\gpu\extern\include"
-gencode=arch=compute_50,code=\"sm_50,compute_50\" -O3
-Xcompiler /MD --compiler-bindir "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC..\VC\bin" -o
"C:..........\MatConvNet\matconvnet-1.0-beta23\matlab\mex.build\bits\data.obj"
failed.
Error in vl_compilenn (line 485) nvcc_compile(opts, srcs{i}, objfile,
flags.nvcc) ;
Also, i have copied the cudnn64_6.dll into the specific directory matlab/mex
If you have an idea, i would be gratefull, since I have made several attempt with another version of matconvnet (example b24), but the issue is similar.
Thank you very much.
I have solved used the follows libraries and software:
Matlab r2017a
Visual studio 2015
MatConvNet beta 24
Cuda 8.0.66
Regards
Probably there is no bin folder so Create 'C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC..\VC\bin' folder. It will stay empty but compiling will finished.