Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Debug or Start Error #102937

Closed
Ritm57 opened this issue Jul 20, 2020 · 7 comments
Closed

Debug or Start Error #102937

Ritm57 opened this issue Jul 20, 2020 · 7 comments
Assignees
Labels
debug Debug viewlet, configurations, breakpoints, adapter issues *duplicate Issue identified as a duplicate of another issue(s)

Comments

@Ritm57
Copy link

Ritm57 commented Jul 20, 2020

Issue Type: Bug

C:\Program Files\nodejs\node.exe d:_tmp_CarRenta\crm_carrental\app.js
internal/modules/cjs/loader.js:969
throw err;
^

Error: Cannot find module 'c:/Users/������������/AppData/Local/Programs/Microsoft VS Code/resources/app/extensions/ms-vscode.js-debug/src/bootloader.bundle.js'
Require stack:

  • internal/preload
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:966:15)
    at Function.Module._load (internal/modules/cjs/loader.js:842:27)
    at Module.require (internal/modules/cjs/loader.js:1026:19)
    at Module._preloadModules (internal/modules/cjs/loader.js:1278:12)
    at loadPreloadModules (internal/bootstrap/pre_execution.js:439:5)
    at prepareMainThreadExecution (internal/bootstrap/pre_execution.js:71:3)
    at internal/main/run_main_module.js:7:1 {
    code: 'MODULE_NOT_FOUND',
    requireStack: [ 'internal/preload' ]
    }
    Process exited with code 1

VS Code version: Code 1.47.2 (17299e4, 2020-07-15T18:22:06.216Z)
OS version: Windows_NT x64 10.0.18363

System Info
Item Value
CPUs Intel(R) Core(TM) i5-9400F CPU @ 2.90GHz (6 x 2904)
GPU Status 2d_canvas: enabled
flash_3d: enabled
flash_stage3d: enabled
flash_stage3d_baseline: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
oop_rasterization: disabled_off
protected_video_decode: unavailable_off
rasterization: enabled
skia_renderer: disabled_off_ok
video_decode: enabled
viz_display_compositor: enabled_on
viz_hit_test_surface_layer: disabled_off_ok
webgl: enabled
webgl2: enabled
Load (avg) undefined
Memory (System) 7.94GB (2.34GB free)
Process Argv
Screen Reader no
VM 0%
Extensions (6)
Extension Author (truncated) Version
vscode-eslint dba 2.1.8
beautify Hoo 1.5.0
regionfolder map 1.0.11
vscode-language-pack-ru MS- 1.47.3
material-icon-theme PKi 4.2.0
vscodeintellicode Vis 1.2.9
@weinand weinand removed their assignment Jul 20, 2020
@weinand weinand added the debug Debug viewlet, configurations, breakpoints, adapter issues label Jul 20, 2020
@jcampbell1710
Copy link

jcampbell1710 commented Jul 20, 2020

This started happening to me too with 1.47.2. Test scripts do not launch and I am running into a similar error. I am running on MacOSX. The message output reads as:

/Users/jcampbel/.asdf/shims/node /Users/jcampbel/front/node_modules/.bin/jest --config jest.config.js /Users/jcampbel/front/src/client/login/__tests__/containers/Auth.jsx --verbose
internal/modules/cjs/loader.js:638
    throw err;
    ^
Error: Cannot find module '"/Applications/Visual'
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:636:15)
    at Function.Module._load (internal/modules/cjs/loader.js:562:25)
    at Module.require (internal/modules/cjs/loader.js:692:17)
    at Module._preloadModules (internal/modules/cjs/loader.js:901:12)
    at preloadModules (internal/bootstrap/node.js:602:7)
    at startup (internal/bootstrap/node.js:273:9)
    at bootstrapNodeJSCore (internal/bootstrap/node.js:623:3)
Process exited with code 1

The lauch.json element I am using reads as follows. I haven't changed it in months.

    {
      "type": "node",
      "request": "launch",
      "name": "Jest Current File",
      "program": "${workspaceFolder}/node_modules/.bin/jest",
      "internalConsoleOptions": "openOnSessionStart",
      "outputCapture": "std",
      "args": [
        "--config",
        "jest.config.js",
        "${file}",
        "--verbose"
      ],
      "disableOptimisticBPs": true,
      "windows": {
        "program": "${workspaceFolder}/node_modules/jest/bin/jest",
      }
    },

I tried reordering the command line arguments to no effect.

The message Error: Cannot find module '"/Applications/Visual' suggests a quoting problem somewhere.

@Ritm57
Copy link
Author

Ritm57 commented Jul 20, 2020

This is a very serious bug in my opinion. There is no limit to my indignation why to post a non-working update and give people the opportunity to update to a non-working release. Let the developers not be lazy and describe the process of rolling back to the working version of the program. Since I need to work, and not for them to fix bugs and break my head.

@connor4312
Copy link
Member

connor4312 commented Jul 20, 2020

@Ritm57 Thanks for the issue, you're facing microsoft/vscode-js-debug#563 (comment)

@jcampbell1710 can you collect a trace log using these instructions? Also, you should be able to fix the problem you're facing by adding nodeVersionHint: 10 to your launch config (we're detecting Node 12 or higher -- or failing to detect Node, but you appear to be running Node 10 or lower). The log file will confirm what's happening.

If you're able to, add "trace": true to your launch.json and reproduce the issue. The location of the log file on your disk will be written to the Debug Console. Share that with us.

⚠️ This log file will not contain source code, but will contain file paths. You can drop it into https://microsoft.github.io/vscode-pwa-analyzer/index.html to see what it contains. If you'd rather not share the log publicly, you can email it to [email protected]

/duplicate

@Ritm57
Copy link
Author

Ritm57 commented Jul 22, 2020

Excellent work but this configuration does not help in solving the problem. You took and without working on the problem and the fact that you have an error and your software does not recognize the encoding is a big and fat minus. Even more there is a desire to get away from your wretched newproduct. THE PROBLEM IS NOT SOLVED SOLVE IT AND DO NOT PLAY UNSUBSCRIBE!!!

C:\Program Files\nodejs\node.exe d:_tmp_CarRenta\crm_carrental\controllers\rl1.js
internal/modules/cjs/loader.js:969
throw err;
^

Error: Cannot find module 'c:/Users/������������/AppData/Local/Programs/Microsoft VS Code/resources/app/extensions/ms-vscode.js-debug/src/bootloader.bundle.js'
Require stack:

  • internal/preload
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:966:15)
    at Function.Module._load (internal/modules/cjs/loader.js:842:27)
    at Module.require (internal/modules/cjs/loader.js:1026:19)
    at Module._preloadModules (internal/modules/cjs/loader.js:1278:12)
    at loadPreloadModules (internal/bootstrap/pre_execution.js:439:5)
    at prepareMainThreadExecution (internal/bootstrap/pre_execution.js:71:3)
    at internal/main/run_main_module.js:7:1 {
    code: 'MODULE_NOT_FOUND',
    requireStack: [ 'internal/preload' ]
    }
    Process exited with code 1

Версия: 1.47.2 (user setup)
Фиксация: 17299e4
Дата: 2020-07-15T18:22:06.216Z
Electron: 7.3.2
Chrome: 78.0.3904.130
Node.js: 12.8.1
V8: 7.8.279.23-electron.0
ОС: Windows_NT x64 10.0.18363

@Ritm57

This comment has been minimized.

@connor4312
Copy link
Member

Make sure you follow the complete instructions given in the linked issue (using the nightly and setting attachSimplePort). With those two things, the bootloader will not be injected into your program.

@github-actions github-actions bot locked and limited conversation to collaborators Sep 3, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
debug Debug viewlet, configurations, breakpoints, adapter issues *duplicate Issue identified as a duplicate of another issue(s)
Projects
None yet
Development

No branches or pull requests

5 participants
@weinand @connor4312 @jcampbell1710 @Ritm57 and others