AL icon indicating copy to clipboard operation
AL copied to clipboard

A JavaScript error occurred in the main process while opening Visual Studio Code

Open pmohanakrishna opened this issue 9 years ago • 14 comments

I stopped my VM (deallocated) and started again. getting below error while opening Visual Studio Code vscode

pmohanakrishna avatar Jan 17 '17 05:01 pmohanakrishna

restarting the vm solved above problem but now getting "No task runner configured." while building the package. status.txt

pmohanakrishna avatar Jan 17 '17 06:01 pmohanakrishna

I had this previously and here was the solution.

https://github.com/Microsoft/AL/issues/45.

DavidRoys avatar Jan 17 '17 07:01 DavidRoys

AL Extension (al-0.2.6084.vsx) is already installed under extensions. My VM is not restarting. what else should I do instead of creating new image?

pmohanakrishna avatar Jan 17 '17 07:01 pmohanakrishna

Easiest thing is to delete the VM and create a new one. I would however like to know what exactly went wrong, so if it isn't too much to ask, you can send the remote desktop info (url, username and password) to me (freddyk at microsoft dot com) and I will have a look - otherwise, just delete it and I will see if I can repro myself.

freddydk avatar Jan 17 '17 13:01 freddydk

It was bit late freddy. I have already deleted VM and created new one. I will provide you if it happens again. I guess, you can create new VM and deallocate it and start again. it should replicate.

pmohanakrishna avatar Jan 18 '17 04:01 pmohanakrishna

Let's reopen if this problem occurs again.

StanislawStempin avatar Jan 30 '17 12:01 StanislawStempin

This error just occurred after it prompted me to update VSCode.

Uncaught Exception:
Error: Cannot find module 'C:\Program Files (x86)\Microsoft VS Code\resources\app\out\main'
    at Module._resolveFilename (module.js:470:15)
    at Function.Module._resolveFilename (C:\Program Files (x86)\Microsoft VS Code\resources\electron.asar\common\reset-search-paths.js:35:12)
    at Function.Module._load (module.js:418:25)
    at Object.<anonymous> (C:\Program Files (x86)\Microsoft VS Code\resources\electron.asar\browser\init.js:171:8)
    at Object.<anonymous> (C:\Program Files (x86)\Microsoft VS Code\resources\electron.asar\browser\init.js:173:3)
    at Module._compile (module.js:571:32)
    at Object.Module._extensions..js (module.js:580:10)
    at Module.load (module.js:488:32)
    at tryModuleLoad (module.js:447:12)
    at Function.Module._load (module.js:439:3)

sghaleb1 avatar May 16 '17 08:05 sghaleb1

This looks like VS Code issue, you can try reporting it at http://github.com/microsoft/vscode/issues

StanislawStempin avatar May 16 '17 19:05 StanislawStempin

@sghaleb1 getting the same error- VSCode prompted me to update it and I allowed it to by mistake. I clicked cancel during the process and it spat out that error.

[Window Title] Error

[Main Instruction] A JavaScript error occurred in the main process

[Content] Uncaught Exception: Error: Cannot find module 'D:\Program Files (x86)\Microsoft VS Code\resources\app\out\main' at Module._resolveFilename (module.js:470:15) at Function.Module._resolveFilename (D:\Program Files (x86)\Microsoft VS Code\resources\electron.asar\common\reset-search-paths.js:35:12) at Function.Module._load (module.js:418:25) at Object. (D:\Program Files (x86)\Microsoft VS Code\resources\electron.asar\browser\init.js:171:8) at Object. (D:\Program Files (x86)\Microsoft VS Code\resources\electron.asar\browser\init.js:173:3) at Module._compile (module.js:571:32) at Object.Module._extensions..js (module.js:580:10) at Module.load (module.js:488:32) at tryModuleLoad (module.js:447:12) at Function.Module._load (module.js:439:3)

[OK]

arihan-1560795 avatar Nov 29 '17 18:11 arihan-1560795

image

Fang-Li avatar Jan 29 '18 02:01 Fang-Li

I too got same error after updating visual studio code vs error

devarajchidambaram avatar Feb 01 '18 07:02 devarajchidambaram

I too got the same issue after updating.

naveenfy avatar Feb 02 '18 11:02 naveenfy

Solution

My solution is to re-download a copy to overwrite the current directory, the previous configuration is still valid

Fang-Li avatar Feb 05 '18 06:02 Fang-Li

Try uninstalling and the installing the Code. This helped me in fixing the error.

abhisaa avatar Mar 20 '18 06:03 abhisaa