-
Notifications
You must be signed in to change notification settings - Fork 274
fix(amazonq): fix didChangeDependencyPathsParams with absolute pathing #5492
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
fix(amazonq): fix didChangeDependencyPathsParams with absolute pathing #5492
Conversation
| dependencies.add(pkg.name) | ||
| PythonSdkUtil.getSitePackagesDirectory(sdk)?.let { sitePackagesDir -> | ||
| val packageManager = PythonPackageManager.forSdk(module.project, sdk) | ||
| packageManager.installedPackages.forEach { pkg -> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm still not certain this is the proper way to get Python packages -- need to revisit with better test setup
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should be correct
Qodana Community for JVMIt seems all right 👌 No new problems were found according to the checks applied 💡 Qodana analysis was run in the pull request mode: only the changed files were checked Contact Qodana teamContact us at [email protected]
|
| library.getUrls(OrderRootType.CLASSES).forEach { url -> | ||
| dependencies.add(VfsUtil.urlToPath(url)) | ||
| library.getFiles(OrderRootType.CLASSES).forEach { file -> | ||
| dependencies.add(file.path.removeSuffix("!/")) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
where does this suffix come from?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
signifies jar as root archive path, was told this was not needed for flare purposes
| dependencies.add(pkg.name) | ||
| PythonSdkUtil.getSitePackagesDirectory(sdk)?.let { sitePackagesDir -> | ||
| val packageManager = PythonPackageManager.forSdk(module.project, sdk) | ||
| packageManager.installedPackages.forEach { pkg -> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should be correct
module name now returns absolute path of module
files/dirs replaced with paths for dependency path
Types of changes
Description
Checklist
License
I confirm that my contribution is made under the terms of the Apache 2.0 license.