-
Notifications
You must be signed in to change notification settings - Fork 274
fix(amazonq): fix LspUtilsTest in 241 #5522
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
Conversation
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]
|
|
/retryBuilds |
1 similar comment
|
/retryBuilds |
| val targetPath = zipfs.getPath("/").resolve(source.relativize(file).toString()) | ||
| Files.copy(file, targetPath) | ||
| val sourcePerms = Files.getPosixFilePermissions(file) | ||
| Files.setPosixFilePermissions(targetPath, sourcePerms) |
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.
linux 241 fixed but now this breaks the windows builds:
LSP Error [UNZIP_FAILED]: Failed to extract zip file: Attributes of type java.nio.file.attribute.PosixFileAttributes not supported
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.
odd this test should not be running on windows. but also it seems like 241 tests spontaneously fixed themselves?
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.
241 works here when the permission copying is split up like this in this PR, but from what I see in the feature branch commits 241 is still broken.
extractZipFile respects posix was not correctly copying over file permissions in 2024.1 for some reason. Explicitly copying the permissions both in the test and in the util function fixes this issue.
Types of changes
Description
Checklist
License
I confirm that my contribution is made under the terms of the Apache 2.0 license.