Code Monkey home page Code Monkey logo

Comments (10)

kazu-yamamoto avatar kazu-yamamoto commented on September 28, 2024

I cannot reproduce this with ghc-mod compiled both with GHC 7.0.4 and GHC 7.4.1.

from ghc-mod.

kazu-yamamoto avatar kazu-yamamoto commented on September 28, 2024

I meant that ghc-mod check displays the error in any cases.

from ghc-mod.

mwotton avatar mwotton commented on September 28, 2024

I'm using 7.4 on Ubuntu. Will try on 7.

Sent from my iPhone

On 06/04/2012, at 12:50 AM, Kazu Yamamoto
[email protected]
wrote:

I meant that ghc-mod check displays the error in any cases.


Reply to this email directly or view it on GitHub:
#62 (comment)

from ghc-mod.

kazu-yamamoto avatar kazu-yamamoto commented on September 28, 2024

I'm using Mac.

from ghc-mod.

exFalso avatar exFalso commented on September 28, 2024

same issue on Arch using 7.4.1, calling "ghc-mod check" directly
did a bit of source digging and the problem seems to be a SomeException thrown which is caught by "ghandle ignore" (in withGHC) ignoring it
the error thrown is "ghc-mod: Something.hs:1:14-28: You can't use Template Haskell with a profiled compiler" which is a bit mysterious to me as compiling directly with ghc works fine (might actually be a bug in the ghc api?)
anyway it seems you need a profiled ghc to reproduce the bug. will try to recompile ghc without profiling and see whats what

from ghc-mod.

exFalso avatar exFalso commented on September 28, 2024

hmm i just checked and my ghc is -not- built with profiling. a simple test compiler with the ghc api worked, so it might be some custom ghc-mod specific flag/option turned on that triggers the error message. either way the error should not be thrown

from ghc-mod.

exFalso avatar exFalso commented on September 28, 2024

ok it thinks that the compiler is built with profiling when ghc-mod is built with it. the temporary solution is to rebuild ghc-mod without profiling.

from ghc-mod.

kazu-yamamoto avatar kazu-yamamoto commented on September 28, 2024

Do you mean that you have a cabal configuration file which contains
executable-profiling: True
?

from ghc-mod.

exFalso avatar exFalso commented on September 28, 2024

not anymore:)

from ghc-mod.

kazu-yamamoto avatar kazu-yamamoto commented on September 28, 2024

Thank you. I can reproduce it now. It appeared that just ignoring exception is a bad idea. I modified ghc-mod so that it displays internal errors.

from ghc-mod.

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.