Ask Your Question
2

Display of error messages in Atom

asked 2016-06-16 07:52:28 -0500

blaerg gravatar image

updated 2016-12-16 02:40:43 -0500

lennart gravatar image

I think Kindohm was working on making this easier to look at, is there something which can be implemented to eliminate the block of repeated messages into a succinct single message?

edit retag flag offensive close merge delete

Comments

Do you mean condensing down the long Haskell type error messages that begin with something like `Couldn't match type...`?

bgold gravatar imagebgold ( 2016-06-16 21:05:58 -0500 )edit

It presents everything as a block of the repeated message: Prelude Sound.Tidal.Context If there is an error, however, the message is lost in this glut of messages sometimes and it's difficult to pinpoint what needs fixing.

blaerg gravatar imageblaerg ( 2016-06-17 09:56:36 -0500 )edit

2 answers

Sort by ยป oldest newest most voted
1

answered 2016-06-17 12:13:55 -0500

bgold gravatar image

OK, it turns out this is the "continuation" prompt in GHCi. So a temporary fix that will work right now is to issue this command from your tidal session:

:set prompt2 ""

To avoid having to do this every time, this can be added to the end of BootTidal.hs, which you can get to from viewing the package settings in Atom and clicking on "view source". But I think the tidalcycles Atom package should probably just include this automatically - I'll look into that.

edit flag offensive delete link more

Comments

Aha, this doesn't work for me though, this setting works in ghc 7.8.1 and newer, I seem to still be on 7.6.3. Worth an upgrade though I think!

yaxu gravatar imageyaxu ( 2016-06-19 17:58:17 -0500 )edit
1

answered 2016-06-19 22:06:43 -0500

kindohm gravatar image

updated 2016-06-19 22:30:13 -0500

Since the question asks for what could be implemented, I'd propose changing the error output to a standard Atom text buffer on a horizontal or vertical split. This would accomplish a few things:

  1. Error panel would be re-sizable
  2. Error text would be selectable for copy/paste
  3. Error text size could be made smaller or larger
edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2016-06-16 07:52:28 -0500

Seen: 6,373 times

Last updated: Jun 19 '16