Giter Club home page Giter Club logo

Comments (8)

HeinrichApfelmus avatar HeinrichApfelmus commented on June 25, 2024

Thanks! 😊

You did not do something wrong, it's just that there several ways of installing Cabal on macOS, and they seem to use different paths. In the HyperHaskell.app bundle (it's a folder), can you change this line in the file Contents/Resources/app/src/interpreter.js to use the path /Library/Haskell/bin/hyper-haskell-server instead? This is probably the easiest way to fix it for you.

Ideally, I would bundle a separate GHC with HyperHaskell, so that people can start right away. But that's not entirely trivial. #10

from hyper-haskell.

jegi avatar jegi commented on June 25, 2024

Thanks. That fixed that error message. But now the status box says: "Could not load imports: Interpreter not running (Error 0)". I suspect this may be a basic misunderstanding on my part... am I supposed to launch hyper-haskell-server as a daemon somehow? Just running hyper-haskell-server from a Terminal window yields an error ("lookupSymbol failed in relocateSection ... ___gmp_rands")

from hyper-haskell.

HeinrichApfelmus avatar HeinrichApfelmus commented on June 25, 2024

am I supposed to launch hyper-haskell-server as a daemon somehow?

No, you're not supposed to launch this binary by yourself, the HyperHaskell app is supposed to do that automatically.

However, running in the Terminal should work, and the error message

Just running hyper-haskell-server from a Terminal window yields an error ("lookupSymbol failed in relocateSection ... ___gmp_rands")

indicates that something went wrong, perhaps while compiling or even linking the binary. Since hyper-haskell-server uses the GHC API (via the hint package), it is important that the supporting hyper package is compiled with the exact same GHC version as the binary itself.

(Running the hyper-haskell-server binary in the terminal should give a result similar to

$ hyper-haskell-server 
Setting phasers to stun... (port 8024) (ctrl-c to quit)
Waiting for Haskell expression

)

from hyper-haskell.

jegi avatar jegi commented on June 25, 2024

I installed hyper, hyper-haskell-server, and hyper-extra on the same day, using cabal as per the instructions at https://github.com/HeinrichApfelmus/hyper-haskell. So I'm pretty sure they all used the same GHC version (8.4.3). I didn't notice any compilation or installation errors, and ~/Library/Haskell/logs/build.log shows "install-outcome: InstallOK" for every package.

from hyper-haskell.

HeinrichApfelmus avatar HeinrichApfelmus commented on June 25, 2024

That is very strange. Can you post the output that you get when running hyper-haskell-server in the Terminal.

from hyper-haskell.

jegi avatar jegi commented on June 25, 2024

$ hyper-haskell-server
Setting phasers to stun... (port 8024) (ctrl-c to quit)
hyper-haskell-server:
lookupSymbol failed in relocateSection (RELOC_GOT)
/Library/Frameworks/GHC.framework/Versions/8.4.3-x86_64/usr/lib/ghc-8.4.3/integer-gmp-1.0.2.0/HSinteger-gmp-1.0.2.0.o: unknown symbol `___gmp_rands'

from hyper-haskell.

jegi avatar jegi commented on June 25, 2024

Seems to be a known issue: https://gitlab.haskell.org/ghc/ghc/issues/15105

I have hidden the offending file HSinteger-gmp-1.0.2.0.o (by gzipping it). Now hyper-haskell-server and HyperHaskell work! I hope I haven't broken anything else.

from hyper-haskell.

HeinrichApfelmus avatar HeinrichApfelmus commented on June 25, 2024

Great! Let me know if there is any other issue.

from hyper-haskell.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.