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

FregeDoc on directories yields ClassCastException #392

Open
Dierk opened this issue Jun 24, 2020 · 4 comments
Open

FregeDoc on directories yields ClassCastException #392

Dierk opened this issue Jun 24, 2020 · 4 comments

Comments

@Dierk
Copy link
Member

Dierk commented Jun 24, 2020

as of version 3.25.84, calling frege.tools.Doc with a directory rather than a module name yields

Exception in thread "main" java.lang.ClassCastException: frege.runtime.BlackHole cannot be cast to java.io.File
        at frege.tools.Doc$1Let$24361$1.call(Doc.java:5916)
        at frege.tools.Doc$1Let$24361$1.call(Doc.java:5914)
        at frege.run8.Thunk.call(Thunk.java:230)
        at frege.tools.Doc.lambda$docDirEntry$197(Doc.java:5923)

What if file.list

mbcontent <- f.list

yields problematic entries like ".DS_Store" on Mac..

@Dierk Dierk changed the title FregeDoc on dkre FregeDoc on directories yields ClassCastException Jun 24, 2020
@szabi
Copy link

szabi commented Oct 7, 2020

Hi, Dirk,

I see you've performed some clean-up tasks on the Frege repo recently.

Do you have some plans for the project looking forward?

@Dierk
Copy link
Member Author

Dierk commented Oct 7, 2020

Yes, I work on the project when time allows - and every now and then, I have master students working on it - or with it, see https://dierk.github.io/Home/
Do you have any specific reason for asking?

@renatoathaydes
Copy link

Just so you know: Frege does not appear to work on Java 11+.

The last artifact published on Maven Central: Last updated: Tue, 29 Sep 2015 18:55:08 +0200

So I guess this project has been pretty much abandoned for a long time.

The error I get is this:

Exception in thread "Thread-2" java.lang.ExceptionInInitializerError
        at frege.interpreter.FregeInterpreter$36.eval(FregeInterpreter.java:7589)
        at frege.interpreter.FregeInterpreter$36.eval(FregeInterpreter.java:7541)
        at frege.runtime.Fun1$1.eval(Fun1.java:63)
...
Caused by: frege.runtime.Undefined: strange java.specification.version: Just "11"
        at frege.prelude.PreludeBase.error(PreludeBase.java:17968)
        at frege.compiler.types.Targets$1$1.eval(Targets.java:831)
        at frege.runtime.Delayed.call(Delayed.java:198)
        at frege.runtime.Delayed.forced(Delayed.java:257)
        at frege.prelude.Maybe.fromMaybe(Maybe.java:1247)
        at frege.compiler.types.Targets$1.eval(Targets.java:828)
        at frege.compiler.types.Targets$1.eval(Targets.java:821)
        at frege.runtime.Delayed.call(Delayed.java:198)
        at frege.runtime.Delayed.forced(Delayed.java:267)
        at frege.compiler.common.CompilerOptions.<clinit>(CompilerOptions.java:366)

@Ingo60
Copy link
Member

Ingo60 commented Feb 13, 2022

No wonder, as the Maven Version is totally out of date.
You cannot use it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants