Skip to content
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

Return helpful error message when unable to create build lock #3809

Open
OsazuwaOyegun opened this issue Nov 9, 2024 · 3 comments
Open

Return helpful error message when unable to create build lock #3809

OsazuwaOyegun opened this issue Nov 9, 2024 · 3 comments
Labels
bug Something isn't working good first issue Good for newcomers help wanted Contributions encouraged priority:medium

Comments

@OsazuwaOyegun
Copy link

This is a bug in the Gleam compiler, sorry!

Please report this crash to https://github.com/gleam-lang/gleam/issues/new
and include this error message with your report.

Panic: compiler-cli/src/build_lock.rs:38
LockFile creation: Os { code: 13, kind: PermissionDenied, message: "Permission denied" }
Gleam version: 1.5.1
Operating system: macos

If you can also share your code and say what file you were editing or any
steps to reproduce the crash that would be a great help.

You may also want to try again with the GLEAM_LOG=trace environment
variable set.

[Info - 8:54:54 AM] Connection to server got closed. Server will restart.
true
INFO language_server_starting
Hello human!

This command is intended to be run by language server clients such
as a text editor rather than being run directly in the console.

Many editors will automatically start the language server for you
when you open a Gleam project. If yours does not you may need to
look up how to configure your editor to use a language server.

You can exit this program by pressing ctrl+c.

@lpil
Copy link
Member

lpil commented Nov 11, 2024

Hello! The issue here is that Gleam is unable to write to the directory it is open it. Is it read-only for your user?

Let's make this error message clearer

@lpil lpil added bug Something isn't working help wanted Contributions encouraged good first issue Good for newcomers priority:medium labels Nov 11, 2024
@lpil lpil changed the title vscode error when opening a lustre project Return helpful error message when unable to create build lock Nov 11, 2024
@brendisurfs
Copy link

@lpil could I take care of this one? I believe I have some time coming up over the next few days to make a fix :) ill take a closer look at the code tomorrow morning just to make sure I understand the full context of the calling function.

@brendisurfs
Copy link

nevermind saw someone hopped on it!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers help wanted Contributions encouraged priority:medium
Projects
None yet
Development

No branches or pull requests

3 participants