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

✨ package/symbol not found errors are now collapsable for file #615

Conversation

shawn-hurley
Copy link
Contributor

  • This also adds the clean option to maven, so that maven is recompiled every time; this is needed when the pom.xml does not yet have the maven compiler plugin.
  • The line numbers are not used in the dependency agent; because of this, we can assume we know that we don't need to pass it through.

* This also adds the clean option to maven, so that maven is recompiled
  everytime, this is needed when the pom.xml does not yet have the maven
compiler plugin.
* The lines numbers are not used in the dependency agent, because of
  this we can assume we know that we don't need to pass it through.

Signed-off-by: Shawn Hurley <[email protected]>
@pranavgaikwad
Copy link
Contributor

@shawn-hurley can we add the line number thing back to cache again?

@shawn-hurley
Copy link
Contributor Author

Debating if we need to add the line number back after this change

@shawn-hurley
Copy link
Contributor Author

After discussing with @pranavgaikwad offline, we think the cache should work just fine in the current paradigm without line numbers because of the collapsibility of tasks and the addition of violation ID to the cache path.

Copy link
Contributor

@pranavgaikwad pranavgaikwad left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for fixing the symbol not found stuff. I will take these changes again in my history PR and retest.

@@ -43,7 +43,7 @@ dependencies = [
"lxml==5.3.0",
"boto3==1.36.9", # Allows Amazon Bedrock to work
"pylspclient==0.1.2", # used for talking to RPC clients over stdin/stdout
"opentelemetry-sdk",
"opentelemetry-sdk==1.29.0",
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is needed now, because 1.30 breaks mypy

* Remove file from collapsable key for packages because they work across
  the project
* Add the ability to get the compiler message from the task for maven
  compiler errors, so that a individual error can define it's own
message
* fixed up the prompt from dependnecy agent to handle new message
* added try around spliting lines of code in maven compiler agent
  becuase sometimes the files are rewritten very poorly

Signed-off-by: Shawn Hurley <[email protected]>
@shawn-hurley shawn-hurley force-pushed the feature/maven-validator-collapsable-errors branch from b4e3f81 to 5f40880 Compare February 5, 2025 13:54
Copy link
Contributor

@JonahSussman JonahSussman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks for fixing the nits

@shawn-hurley shawn-hurley merged commit cf5ffb2 into konveyor:main Feb 5, 2025
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants