-
Notifications
You must be signed in to change notification settings - Fork 30
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] Kantra fails to scan .NET application #135
Comments
@eemcmullan @pranavgaikwad is there an implied assumption currently when running Kantra that it can only run against a Java project with a pom.xml? |
Hello, I do not think there is a built-in provider for .NET in Kantra yet, and I don't think that we have done any work to make this CLI work with more than the built-in Provider's. If you want to test out a .NET provider, you can use https://github.com/konveyor/analyzer-lsp with that provider to do this. If you want some help, we can chat on Slack. As it stands, by adding the ability to use more than the built-in providers for Kantra, we would need to add an RFE and design how we want to do this. This is work that has been planned, IIRC, so it's probably going to be upcoming. Sorry if this is not helpful right now, but I hope it gives some context. @pranavgaikwad @eemcmullan Please correct me if I said something incorrect. |
Thank you for the insight. Regardless, thanks to this pull request konveyor/analyzer-lsp#456, the above fatal error is gone and Kantra prints this:
The dependency.log is the following:
So without a pom.xml, the java provider fails. But it still would be nice to not fail when the Java provider does not find a pom.xml. |
Because we do not have an option, to tell Kantra to not run the dependency analysis (because we have built this specifically to mimic functionality in another CLI) I don't think this is going to be possible as of right now. @pranavgaikwad @eemcmullan am I missing an option? I assume that this is something that we will want to take on quickly though if you can join a Thursday community call to give us the full background and make sure that the priority is known? |
Sounds good to discuss this further in a community call. |
Community Meetings are every two weeks on Thursday at 9am EST. The next one is this Thursday 1/11 at 9am EST. Hope we can see you there. I will bring this up if you can not attend and you can watch the recording if that time doesn't work for you 😄 |
@shawn-hurley Yes you're correct - we still need to add support for other providers outside of Java. |
Closing for #142 |
Is there an existing issue for this?
Konveyor version
latest
Priority
Blocker
Current Behavior
I created a custom rule for a .NET application to detect deprecated APIs. I used the builtin provider and simple regex matching inside the rule. Using the builtin provider, a C# provider should not be needed to analyze .NET applications.
When I run Kantra against the .NET application, I get the following error during the Java dependency analysis:
I ran Kantra with the following command on this sample repo https://github.com/sixeyed/nerd-dinner:
kantra analyze -m source-only -i ./mvc4 -o nerddinner-kantra --overwrite
Note that the custom rule is not specified in the sample command as it is not relevant to the issue.
Expected Behavior
I would expect to run Kantra without fatal error with the builtin rulesets on all languages as the builtin provider is language-independent. Running analyzer-lsp with only the builtin provider works.
I would not assume that Java and Go providers configs are always active regardless of the language source.
How Reproducible
Always (Default)
Steps To Reproduce
kantra analyze -m source-only -i ./mvc4 -o nerddinner-kantra --overwrite
Environment
- OS: Mac OS 14.2.1 Using "Rancher Desktop" as Docker installation
Anything else?
Same error as in #116 but noting here that the issue is not only for Java applications.
The text was updated successfully, but these errors were encountered: