monkey-patch: Monkey patch corrupts the vscode 1.63.0 -- cannot open any file

I am not able to open any file.

error I am getting for every file is:

Unable to open 'blah.md': Cannot find module 'jschardet' Require stack: - electron/js2c/renderer_init.

VS Code version: Code - Insiders 1.63.0-insider (4e303fc, 2021-11-22T05:26:03.776Z) OS version: Darwin x64 21.1.0 Restricted Mode: No

System Info
Item Value
CPUs Intel® Core™ i7-9750H CPU @ 2.60GHz (12 x 2600)
GPU Status 2d_canvas: enabled
gpu_compositing: enabled
metal: disabled_off
multiple_raster_threads: enabled_on
oop_rasterization: enabled
opengl: enabled_on
rasterization: enabled
skia_renderer: disabled_off_ok
video_decode: enabled
webgl: enabled
webgl2: enabled
Load (avg) 4, 4, 4
Memory (System) 16.00GB (0.02GB free)
Process Argv
Screen Reader no
VM 0%

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Reactions: 4
  • Comments: 20

Most upvoted comments

Can you guys retest this with once monkeypatch 0.1.16 is online?

I finally managed to reproduce the problem. I get the error when I trying to choose the encoding for the file. I’m looking into this.

I encountered the issue approximately two weeks ago, too. However, I could not reproduce the issue… (So I did not say anything.)

I updated VS Code Stable this morning, and the same error occurred (as is expected).

“Reinstalling VS Code Insiders and NOT applying the Monkey Patch is the only way to fix it.” The same here.


Update in the morning on the tenth of December:

The issue remains in the latest insider build (as is expected). It is still there.

Version: 1.64.0-insider (user setup)
Commit: 10791447894a9abc9f2ae4927bf92bcf30f3fdef
Date: 2021-12-09T21:26:02.543Z
Electron: 13.5.2
Chromium: 91.0.4472.164
Node.js: 14.16.0
V8: 9.1.269.39-electron.0
OS: Windows_NT x64 10.0.22518

However, I cannot reproduce the issue on PCs other than my own PC (as is expected, again). Why am I unable to reproduce the issue?

Version: 1.64.0-insider (user setup)
Commit: 10791447894a9abc9f2ae4927bf92bcf30f3fdef
Date: 2021-12-09T21:26:02.543Z
Electron: 13.5.2
Chromium: 91.0.4472.164
Node.js: 14.16.0
V8: 9.1.269.39-electron.0
OS: Windows_NT x64 10.0.22518

Maybe there is something else that causes the issue.

First time running Code after upgrading to Windows 11 and got the same problem. I tried disabling Monkey Patch and Customize UI. Didn’t make any difference.