Skip to content
This repository has been archived by the owner on Apr 25, 2020. It is now read-only.

Truncated output in emacs #297

Closed
acowley opened this issue Jul 28, 2014 · 4 comments
Closed

Truncated output in emacs #297

acowley opened this issue Jul 28, 2014 · 4 comments

Comments

@acowley
Copy link
Contributor

acowley commented Jul 28, 2014

With GHC 7.8.3 and ghc-mod 4.1.5 from hackage and melpa-stable, I am getting truncated output in my GHC Info window in emacs. If I run ghc-modi manually, and check a file with a non-exhaustive pattern match, for example, I see the output I expect modulo formatting (and what I got in emacs with previous versions).

Warning: Pattern match(es) are non-exhaustiveIn an equation for ‘renameCommon’: Patterns not matched: _ (ConstDecl _ _ _) _ (MutDecl _ _ _) _ (ArrayDecl _ _ _) _ (MutAssign _ _)

In GHC Info, however, all I see is "Warning: Pattern match(es) are non-exhaustive".

@acowley
Copy link
Contributor Author

acowley commented Jul 28, 2014

I suspect it's a line break issue as I'm also having problems using M-t to insert type signatures. When I run that command expecting a longish type, I get a blank line inserted rather than a type signature.

@PierreR
Copy link
Contributor

PierreR commented Jul 30, 2014

I have the same problem (using the same settings for ghc and ghc-mod).
*GHC Info* only shows one line for me. I can see that all the info are received in *GHC Debug*.

For instance if *GHC Debug*displays:

info /home/vagrant/projects/haskell/7startups/Startups/Game.hs playerList
"playerList :: (GameStateOnly m) => m [PlayerId]"
"   -- Defined at /home/vagrant/projects/haskell/7startups/Startups/Game.hs:64:1"
OK

*GHC Info* only shows:

playerList :: (GameStateOnly m) => m [PlayerId]

@kazu-yamamoto
Copy link
Collaborator

#276 introduced this bug. 95c2b0c fixes this problem. I will release a new version soon.

@acowley
Copy link
Contributor Author

acowley commented Aug 2, 2014

4.1.6 solved the problem for me. Thank you; it wasn't fun losing ghc-mod for a while there! :)

@acowley acowley closed this as completed Aug 2, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants