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

Format Multi Does not Respect Absolute Output Paths #290

Open
eng-import-dd opened this issue Oct 4, 2021 · 2 comments
Open

Format Multi Does not Respect Absolute Output Paths #290

eng-import-dd opened this issue Oct 4, 2021 · 2 comments
Labels
enhancement New feature or request

Comments

@eng-import-dd
Copy link

  1. using scc as command line
  2. Arguments scc C:\\CAFlowRepos\ESW-AI\CAFlow_b0f26719165ec78445cee86c22bca9f1aa27a378 --by-file --format-multi "tabular:C:\\folder\\tabular.txt,csv:stdout" --cocomo-project-type "custom,1,1,1,1"

Expected behavior

  1. C:\folder\tabular.txt should be created with tabular data inside.

However removing the absolute path with relative path for format multiple works fine, the only limitation is that the output file can only be created inside the scanning directory. scc C:\\CAFlowRepos\ESW-AI\CAFlow_b0f26719165ec78445cee86c22bca9f1aa27a378 --by-file --format-multi "tabular:tabular.txt,csv:stdout" --cocomo-project-type "custom,1,1,1,1" Works Fine.

Desktop (please complete the following information):

  • OS: Windows
  • Version 3.0.0
@boyter boyter added the enhancement New feature or request label Oct 4, 2021
@boyter boyter added this to Todo in 3.1.0 Oct 4, 2021
@boyter
Copy link
Owner

boyter commented Dec 16, 2021

Interestingly this appears to be a windows issue, as it appears to work perfectly on macOS at least.

$ scc --by-file --format-multi "tabular:/tmp/test.txt" && ls /tmp/*.txt && wc -l /tmp/test.txt

/tmp/test.txt
     385 /tmp/test.txt

I will need to investigate this a bit more as I don't think there should be anything stopping it. Will try on a windows machine soon.

@boyter boyter moved this from Todo to In Progress in 3.1.0 Dec 16, 2021
@boyter
Copy link
Owner

boyter commented Dec 16, 2021

@eng-import-dd if you are able to build from master let me know, as I stupidly was eating an error which might be the issue here. If not let me know and I can produce a windows build and attach it here. This should at least establish if its a permission error.

@boyter boyter moved this from In Progress to Todo in 3.1.0 Sep 20, 2022
@boyter boyter added this to ToDo in Release 3.2.0 Oct 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
No open projects
Development

No branches or pull requests

2 participants