-
Notifications
You must be signed in to change notification settings - Fork 317
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
java.lang.IllegalArgumentException in analyzer if project doesn't have a repository #6827
Comments
CC: @dgutson |
It actually is expected behavior, as ORT currently does not support analyzing source code that is not under version control. I'm proposing to close this in favor of #2896. |
Excellent then! Thanks for the answer and sorry for the noise. Closing the issue. |
I propose at least to emit a user friendly error rather than such trace, containing this explanation to guide the user. |
Actually, on a second look the problem in this specific Conan-case is something else:
See how it says the VCS type would be "Git"? But how can it say that if the project is not under version control? Turns out our Conan implementation hard-coded the VCS type to Git, which caused the side effect of the "VCS info" not being found as part of (empty) repository info. I'll propose a fix. |
Fixes #6827. Signed-off-by: Sebastian Schuberth <[email protected]>
Fixes #6827. Signed-off-by: Sebastian Schuberth <[email protected]>
Fixes #6827. Signed-off-by: Sebastian Schuberth <[email protected]>
Fixes #6827. Signed-off-by: Sebastian Schuberth <[email protected]>
Trying to run:
Generates the following error if the folder
cpp_conan_mock_example
isn't a git repository.But, if
cpp_conan_mock_example
is a git repository (particularly the one on https://github.com/JukMR/cpp_conan_mock_example) the following message is generated:I don't know if this is an expected behavior. If this is the case maybe the exception thrown could be more detailed about this.
The text was updated successfully, but these errors were encountered: