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

Bug with debug autoAttachFilter in dev containers #378

Open
BabakScript opened this issue Jan 10, 2025 · 1 comment
Open

Bug with debug autoAttachFilter in dev containers #378

BabakScript opened this issue Jan 10, 2025 · 1 comment

Comments

@BabakScript
Copy link

BabakScript commented Jan 10, 2025

Hi @firsttris ,
First thanks for this awesome extension. ❤️

I have a devContainer setup with "debug.javascript.autoAttachFilter": "smart" setting. Previously I was able to run all of my tests using your plugin but after adding this setting I'm getting this error:

node 'node_modules/.bin/jest' '/workspace/apps/...src/main.service.spec.ts' -t 'MainService'
node:internal/modules/cjs/loader:1251
  throw err;
  ^

Error: Cannot find module '/home/node/.vscode-server/data/User/workspaceStorage/5ff47cd083827e523237aeb1fab23b76/ms-vscode.js-debug/bootloader.js'
Require stack:
- internal/preload
    at Module._resolveFilename (node:internal/modules/cjs/loader:1248:15)
    at Module._load (node:internal/modules/cjs/loader:1074:27)
    at TracingChannel.traceSync (node:diagnostics_channel:315:14)
    at wrapModuleLoad (node:internal/modules/cjs/loader:217:24)
    at Module.require (node:internal/modules/cjs/loader:1339:12)
    at Module._preloadModules (node:internal/modules/cjs/loader:1826:12)
    at loadPreloadModules (node:internal/process/pre_execution:730:5)
    at setupUserModules (node:internal/process/pre_execution:205:5)
    at prepareExecution (node:internal/process/pre_execution:158:5)
    at prepareMainThreadExecution (node:internal/process/pre_execution:53:10) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [ 'internal/preload' ]
}

Node.js v22.9.0

A workaround is to "Toggle Auto Attach" to disabled and then back to enabled/smart.

BTW, I have no issue when I'm running my tests using vscode-jest extension (even without the workaround above)

Maybe related to this: microsoft/vscode-remote-release#5516

@BabakScript
Copy link
Author

Maybe related: #335

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant