Skip to content

Conversation

@samgst-amazon
Copy link
Contributor

module name now returns absolute path of module

files/dirs replaced with paths for dependency path

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)

Description

Checklist

  • My code follows the code style of this project
  • I have added tests to cover my changes
  • A short description of the change has been added to the CHANGELOG if the change is customer-facing in the IDE.
  • I have added metrics for my changes (if required)

License

I confirm that my contribution is made under the terms of the Apache 2.0 license.

@samgst-amazon samgst-amazon requested a review from a team as a code owner March 21, 2025 02:26
dependencies.add(pkg.name)
PythonSdkUtil.getSitePackagesDirectory(sdk)?.let { sitePackagesDir ->
val packageManager = PythonPackageManager.forSdk(module.project, sdk)
packageManager.installedPackages.forEach { pkg ->
Copy link
Contributor Author

@samgst-amazon samgst-amazon Mar 21, 2025

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

Copy link
Contributor

Choose a reason for hiding this comment

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

should be correct

@github-actions
Copy link

github-actions bot commented Mar 21, 2025

Qodana Community for JVM

It 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
☁️ View the detailed Qodana report

Contact Qodana team

Contact us at [email protected]

@samgst-amazon samgst-amazon merged commit 59d5c75 into feature/q-lsp Mar 21, 2025
2 of 11 checks passed
@samgst-amazon samgst-amazon deleted the samgst/q-lsp-change-dependency-paths branch March 21, 2025 21:21
library.getUrls(OrderRootType.CLASSES).forEach { url ->
dependencies.add(VfsUtil.urlToPath(url))
library.getFiles(OrderRootType.CLASSES).forEach { file ->
dependencies.add(file.path.removeSuffix("!/"))
Copy link
Contributor

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?

Copy link
Contributor Author

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 ->
Copy link
Contributor

Choose a reason for hiding this comment

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

should be correct

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.

2 participants