Closed Anglagard closed 11 months ago
It looks like this is breaking because your apps path has a space in it, can you try wrapping that path in quotes?
Unfortunately no, the command line is generated by the karma IntelliJ plugin.
The original command generated by IntelliJ's plugin is : /usr/local/bin/node /Users/xxxxxxxxx/IdeaProjects/nfe-nx/node_modules/@angular/cli/bin/ng test --karma-config /Applications/IntelliJ IDEA.app/Contents/plugins/karma/js_reporter/karma-intellij/lib/intellij.conf.js --source-map --skip-nx-cache
The problem comes from the modified function rewritePositionalArguments in nx/bin/init-local.ts. The old function in 15.7.2 works fine :
function rewritePositionalArguments(args) {
if (!args[3] || args[3].startsWith('-')) {
return ['run', ${wrapIntoQuotesIfNeeded(args[2])}
, ...args.slice(3)];
} else {
return [
'run',
${args[3]}:${wrapIntoQuotesIfNeeded(args[2])}
,
...args.slice(4),
];
}
}
This issue has been automatically marked as stale because it hasn't had any recent activity. It will be closed in 14 days if no further activity occurs. If we missed this issue please reply to keep it active. Thanks for being a part of the Nx community! 🙏
This issue has been closed for more than 30 days. If this issue is still occuring, please open a new issue with more recent context.
Current Behavior
This command is generated by Intellij's karma runner plugin : nx run ui-nativescript:test --karma-config /Applications/IntelliJ IDEA.app/Contents/plugins/karma/js_reporter/karma-intellij/lib/intellij.conf.js --source-map --code-coverage
When running with nx 15.7.2 it works fine, but not anymore with nx 15.8.x
Expected Behavior
The command should run like before 15.8.x
GitHub Repo
No response
Steps to Reproduce
Create an angular project my-project with karma tests. Use the Intellij plugin to launch karma.conf or use the generated command : nx run my-project:test --karma-config /Applications/IntelliJ IDEA.app/Contents/plugins/karma/js_reporter/karma-intellij/lib/intellij.conf.js --source-map --code-coverage
Nx Report
Failure Logs
Additional Information
No response