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

Gleam compiler crash when removing a dependency #3123

Open
mooreryan opened this issue May 10, 2024 · 1 comment
Open

Gleam compiler crash when removing a dependency #3123

mooreryan opened this issue May 10, 2024 · 1 comment
Labels
bug Something isn't working help wanted Contributions encouraged priority:medium

Comments

@mooreryan
Copy link

This may be sort of a duplicate of #2673 or #2618.

Steps to reproduce

gleam new my_project
cd my_project
gleam add --dev startest
rg -F 'gleeunit/should' -l test/ -0 | xargs -0 sed -i 's|gleeunit/should|startest/expect|'
rg -F 'should.equal' -l test/ -0 | xargs -0 sed -i 's|should.equal|expect.to_equal|'
gleam remove gleeunit

The last command gives

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: /cargo/registry/src/index.crates.io-6f17d22bba15001f/pubgrub-0.2.1/src/internal/partial_solution.rs:131
        add_derivation should not be called after a decision
Gleam version: 1.1.0
Operating system: linux

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.

Here is the trace when running GLEAM_LOG=trace gleam remove gleeunit:
compiler_trace.txt

Context

Following the migrating from gleeunit guide.

@lpil
Copy link
Member

lpil commented May 13, 2024

Thank you

@lpil lpil added bug Something isn't working help wanted Contributions encouraged priority:medium labels May 13, 2024
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

2 participants