-
Notifications
You must be signed in to change notification settings - Fork 178
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] In debug bundle, many extra backslashes appear in Windows paths when a command fails #1408
Comments
Thank you @ryanlink for creating this issue. If this is in regards to a defect, product question or feature request: you should use our support portal at https://support.fossa.com to file a request, as you would receive more immediate support. |
Debug bundle |
Note that these redundant backslashes do not occur in
|
Closing, filed as internal Jira ticket https://fossa.atlassian.net/browse/ANE-1638 |
Describe the bug
When using
--debug
to generate output fromfossa analyze
to troubleshoot a command failure in the build process on a Windows machine, the output contains many redundant backslashes, presumably as escape chars:Attempted to run the command 'C:\\\\\\\\Program Files\\\\\\\\apache-maven-3.9.6\\\\\\\\bin\\\\\\\\mvn -v'\\\\n inside the working directory 'C:\\\\\\\\FOSSA\\\\\\\\pfmService\\\\\\\\access-center\\\\\\\\',\\\\n but failed, because the command exited with code '1'.\\\\n\\\\n Often, this kind of error is caused by the project not being ready to build;\\\\n please ensure that the project at 'C:\\\\\\\\FOSSA\\\\\\\\pfmService\\\\\\\\access-center\\\\\\\\'\\\\n builds successfully before running fossa
To Reproduce
Steps to reproduce the behavior:
fossa analyze ...
Expected behavior
This error should not contain extraneous backslashes.
Debug bundle
Please run
fossa
with the--debug
flag and attach the resultingfossa.debug.json.gz
file here.Additional context
I asked ChatGPT to analyze the code in https://github.com/fossas/fossa-cli/blob/master/src/Effect/Exec.hs and explain the backslashes. Here's the response:
The text was updated successfully, but these errors were encountered: