Comments (10)
I cannot reproduce this with ghc-mod compiled both with GHC 7.0.4 and GHC 7.4.1.
from ghc-mod.
I meant that ghc-mod check displays the error in any cases.
from ghc-mod.
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.
I'm using Mac.
from ghc-mod.
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.
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.
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.
Do you mean that you have a cabal configuration file which contains
executable-profiling: True
?
from ghc-mod.
not anymore:)
from ghc-mod.
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)
- ghc-mod fails with "unknown command: needs-build-output"
- cabal install ghc-mod error HOT 6
- ghc802 branch has 21 failures on Windows HOT 3
- GHC 8.4.1 support HOT 10
- master branch has 21 test failures on Windows
- Type errors in GhcMod.Gap HOT 1
- ghc-mod takes a very long time checking a module with a module annotation HOT 2
- GHC panic when using QuasiQuotes HOT 3
- Dynamic linker not initialised HOT 2
- Failing to build ghc-mod with stack HOT 7
- The impossible happened HOT 1
- Not possible to install ghc-mod on Windows HOT 4
- I followed all the instructions mentioned in "Installing ghc-mod" with stack but it had some issues HOT 3
- Panic HOT 1
- Unable to build ghc-mod with the current/recent setup
- DeriveAnyClass language extension
- ghc-mod takes a very long time to check a module using template haskell in a project depending on haskell-src-exts HOT 1
- ghc-mod has parse error on `--*`
- impossible to install ghc-mod for ghc 8.6 HOT 2
- About error of stack install ghc-mod HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ghc-mod.