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

PowerShell on a WSL mount results in compiler crash #3948

Open
Janiczek opened this issue Dec 3, 2024 · 2 comments
Open

PowerShell on a WSL mount results in compiler crash #3948

Janiczek opened this issue Dec 3, 2024 · 2 comments
Labels
bug Something isn't working help wanted Contributions encouraged priority:medium

Comments

@Janiczek
Copy link

Janiczek commented Dec 3, 2024

The setup:

  • OS: Windows 11 Home
  • Shell: PowerShell (with Gleam installed via Scoop)
  • Gleam 1.6.2
  • Project: vanilla gladvent one, (important!) on a WSL mount.
PS Microsoft.PowerShell.Core\FileSystem::\\wsl.localhost\Ubuntu\home\martin\advent-of-code> gleam run new 13 --year 2023
error: Fatal compiler bug!

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:47
        Trying build locking: Os { code: 1, kind: Uncategorized, message: "Incorrect function." }
Gleam version: 1.6.2
Operating system: windows

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.

I wasn't able to make Gleam log more. I tried these PowerShell ways to do it:

  • Set-Variable -Name "GLEAM_LOG" -Value "trace"
  • $Env:GLEAM_LOG = "trace"

A relevant finding: The same command in the same PowerShell session, but in C:\whatever, works just fine. So the issue seems to be something about WSL mounts when accessed from Windows "over the network".

@joshi-monster
Copy link
Contributor

This looks like a problem the rust/cargo folks have also run into a lot, I'm going to leave those links here for others and look at them more tomorrow :)

rust-lang/rust#49773
rust-lang/rust#66513
rust-lang/rust#84417

rust-lang/rust#85698

@lpil lpil added bug Something isn't working help wanted Contributions encouraged priority:medium labels Dec 4, 2024
@lpil
Copy link
Member

lpil commented Dec 4, 2024

Thank you

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

No branches or pull requests

3 participants