···8383 via the flag `--package`.
8484 ([Louis Pilfold](https://github.com/lpil))
85858686+- The error message when failing to decrypt the local Hex API key is now more
8787+ informative and helpful.
8888+ ([Moritz Böhme](https://github.com/MoritzBoehme))
8989+8690### Language server
87918892- The language server now supports go-to-definition, find-references and rename
+1-3
compiler-cli/src/hex/auth.rs
···232232 encrypted_credentials.refresh_token.as_bytes(),
233233 &local_password,
234234 )
235235- .map_err(|e| Error::FailedToDecryptLocalHexApiKey {
236236- detail: e.to_string(),
237237- })?;
235235+ .map_err(|_| Error::FailedToDecryptLocalHexApiKey)?;
238236239237 // Use a refresh token, consuming it to get a new set of tokens.
240238 let request = hexpm::oauth_refresh_token_request(
+8-6
compiler-core/src/error.rs
···419419 FailedToEncryptLocalHexApiKey { detail: String },
420420421421 #[error("Failed to decrypt local Hex API key")]
422422- FailedToDecryptLocalHexApiKey { detail: String },
422422+ FailedToDecryptLocalHexApiKey,
423423424424 #[error("Cannot add a package with the same name as a dependency")]
425425 CannotAddSelfAsDependency { name: EcoString },
···19091909 }]
19101910 }
1911191119121912- Error::FailedToDecryptLocalHexApiKey { detail } => {
19121912+ Error::FailedToDecryptLocalHexApiKey => {
19131913 let text = wrap_format!(
19141914 "Unable to decrypt the local Hex API key with the given password.
19151915-The error from the encryption library was:
19161916-19171917- {detail}"
19151915+Did you make a typo? Please try again."
19181916 );
19191917 vec![Diagnostic {
19201918 title: "Failed to decrypt local Hex API key".into(),
19211919 text,
19221922- hint: None,
19201920+ hint: Some(
19211921+ "If you have forgotten your local password you can create
19221922+new credentials with `gleam hex authenticate`."
19231923+ .into(),
19241924+ ),
19231925 level: Level::Error,
19241926 location: None,
19251927 }]