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

WIP: Nightly version of Effekt #3

Open
wants to merge 7 commits into
base: main
Choose a base branch
from
Open

WIP: Nightly version of Effekt #3

wants to merge 7 commits into from

Conversation

jiribenes
Copy link
Owner

Goal: Add a nightly version of Effekt compiled straight from the effekt-lang/effekt repository.

Current state: Fails with an Scala 3 compiler crash:

 unhandled exception while running genBCode on /build/effekt-with-kiama/effekt/shared/src/main/scala/effekt/util/Control.scala

  An unhandled exception was thrown in the compiler.
        during phase: <no phase>
                mode: Mode(ImplicitsEnabled,ReadPositions)
     library version: version 2.13.10
    compiler version: version 3.3.1
            settings: [ ... ]
                tree: EmptyTree
       tree position: :<unknown>
           tree type: <notype>
              symbol: val <none>
           call site: package <root> in module class <root>
  == Source file context for tree position ==

Error:  ## Exception when compiling 111 sources to /build/effekt-with-kiama/effekt/jvm/target/scala-3.3.1/classes
Error:  java.nio.file.InvalidPathException: Malformed input or input contains unmappable characters: package$?.class

I spent a lot of time debugging this in #2, but I'm lost -- if you know how to fix this / how to progress with this, please let me know!

@jiribenes jiribenes added help wanted Extra attention is needed enhancement New feature or request labels Aug 13, 2024
@jiribenes
Copy link
Owner Author

👀 TODO: Take a look at the way lexa packages "latest" Effekt: https://github.com/lexa-lang/lexa/blob/main/nix/effekt_latest.nix

@jiribenes
Copy link
Owner Author

Still crashes with more-or-less the same error message.
Could we perhaps try to monkeypatch the Scala version to a higher one? 🤔

@jiribenes
Copy link
Owner Author

All versions work for me locally.
This old version https://github.com/jiribenes/effekt-nix/blob/0d249145a6be8be6e4997d571cf676028f87d69d/effekt-nightly.nix also used to work, maybe there's something important there that I overlooked?

@jiribenes
Copy link
Owner Author

Interesting! The last commit seems to have reverted to the package$? issue, but the one before it seems to have worked a bit more (getting stuck on missing Scala 3.3.3 compiler)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant