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

workers Failed to map the stack to user code in ESM + Ava #2827

Closed
vjpr opened this issue Oct 4, 2021 · 1 comment
Closed

workers Failed to map the stack to user code in ESM + Ava #2827

vjpr opened this issue Oct 4, 2021 · 1 comment
Labels

Comments

@vjpr
Copy link

vjpr commented Oct 4, 2021

Issue description or question

In this repro: https://github.com/vjpr/issue-wallaby-ava, I am seeing the following:

2021-10-04T14:28:17.476Z workers Failed to map the stack to user code, entry message: false, stack: AssertionError
    at ExecutionContext.assert (/Users/Vaughan/dev/code/issue-wallaby-ava/node_modules/.pnpm/ava@4.0.0-alpha.2/node_modules/ava/lib/assert.js:959:11)
    at file:///Users/Vaughan/Library/Application%20Support/JetBrains/IntelliJIdeaVaughan/system/wallaby/projects/b6febda6b403d55c/instrumented/packages/stress/tests/test0.test.ava.js?update=1633357697461&wallaby=true:6:25
    at Test.callFn (/Users/Vaughan/dev/code/issue-wallaby-ava/node_modules/.pnpm/ava@4.0.0-alpha.2/node_modules/ava/lib/test.js:578:21)
    at Test.run (/Users/Vaughan/dev/code/issue-wallaby-ava/node_modules/.pnpm/ava@4.0.0-alpha.2/node_modules/ava/lib/test.js:591:23)
    at Test.run (/Users/Vaughan/Library/Application Support/JetBrains/IntelliJIdeaVaughan/system/wallaby/wallaby/runners/node/ava@1.0.0/initializer.js:256:31)
    at Runner.runSingle (/Users/Vaughan/dev/code/issue-wallaby-ava/node_modules/.pnpm/ava@4.0.0-alpha.2/node_modules/ava/lib/runner.js:270:33)

The issue is in this line:

var j = i._fileRoot ? e.lastIndexOf(i._fileRoot) : -1;
i._fileRoot = /Users/Vaughan/Library/Application Support/JetBrains/IntelliJIdeaVaughan/system/wallaby/projects/b6febda6b403d55c/instrumented
- e = file:///Users/Vaughan/Library/Application%20Support/JetBrains/IntelliJIdeaVaughan/system/wallaby/projects/b6febda6b403d55c/instrumented/packages/stress/tests/test0.test.ava.js?update=1633357697461&wallaby=true:6:25
+ e = file:///Users/Vaughan/Library/Application Support/JetBrains/IntelliJIdeaVaughan/system/wallaby/projects/b6febda6b403d55c/instrumented/packages/stress/tests/test0.test.ava.js?update=1633357697461&wallaby=true:6:25

Note: Application%20Support vs Application Support.

URL's need to be unescaped.

@smcenlly
Copy link
Member

smcenlly commented Oct 5, 2021

This is fixed in the latest version of Wallaby core, v1.0.1161.

@smcenlly smcenlly closed this as completed Oct 5, 2021
@smcenlly smcenlly added the bug label Oct 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants