Skip to content

Conversation

@simuleite
Copy link
Contributor

I encountered an error when activating Lombok on Windows:

Language server error: jdtls

oneshot canceled
-- stderr--
Error opening zip file or JAR manifest missing : /C:\Users\Myuser\AppData\Local\Zed\extensions\work\java/lombok/lombok-1.18.36.jar

I changed the line

let jar_path = format!("{prefix}/{jar_name}");

to

let jar_path = Path::new(prefix).join(&jar_name).to_string_lossy().into_owned();

I am not a Rust programmer, I don't know if it was correct!

@cla-bot
Copy link

cla-bot bot commented Mar 31, 2025

We require contributors to sign our Contributor License Agreement, and we don't have @simuleite on file. You can sign our CLA at https://zed.dev/cla. Once you've signed, post a comment here that says '@cla-bot check'.

@simuleite
Copy link
Contributor Author

@cla-bot check

@cla-bot cla-bot bot added the cla-signed label Mar 31, 2025
@cla-bot
Copy link

cla-bot bot commented Mar 31, 2025

The cla-bot has been summoned, and re-checked this pull request!

@valentinegb valentinegb added the bug Something isn't working label Mar 31, 2025
@valentinegb
Copy link
Collaborator

Looks good to me. Thanks! I always forget that Windows is weird about things ^^'

@valentinegb valentinegb changed the title Use functions handling path Use standard library path structure instead of plain string manipulation Mar 31, 2025
@valentinegb valentinegb merged commit fe6e5ce into zed-extensions:main Mar 31, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working cla-signed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants