rikvdkleij / intellij-haskell

IntelliJ plugin for Haskell
https://rikvdkleij.github.io/intellij-haskell/
Apache License 2.0
1.32k stars 94 forks source link

Error reporter #351

Open ice1000 opened 5 years ago

ice1000 commented 5 years ago

When IDE throws an Exception, it has the ability to blame on a plugin. It also supports reporting the Exception with the stacktrace to somewhere when the Exception occurs.

Any interests in adding this feature (and the error will be reported to GitHub, with a format like ice1000/julia-intellij#270)? I know how to impl this, just asking a question here.

rikvdkleij commented 5 years ago

Cool! Very helpful.

ice1000 commented 5 years ago

:+1:

develop7 commented 5 years ago

OHMYGOD YES PLEASE

consider wrapping stacktrace to something like <details><summary>Something meaningful</summary>...stacktrace...</details> BTW. Works good for https://github.com/KronicDeth/intellij-elixir/issues/902

ice1000 commented 5 years ago

consider wrapping stacktrace to something like

Something meaningful...stacktrace...
BTW. Works good for KronicDeth/intellij-elixir#902

OHMYGOD THAT"S AWESOME

ice1000 commented 5 years ago

Oh my god I just realized I'll have to rewrite my old error reporter in Kotlin to Scala

ice1000 commented 5 years ago

Can I use Kotlin? It's too hard to deal with Java collections in Scala codes.

ice1000 commented 5 years ago

intellij-haskell.zip

rikvdkleij commented 5 years ago

Can I use Kotlin?

Well, I prefer Scala but I have no problem with Kotlin itself. I do not know how to integrate with sbt build and IntelliJ scala project.

It's too hard to deal with Java collections in Scala codes.

It's not difficult, you just have to import: import scala.collection.JavaConverters._

ice1000 commented 5 years ago

Well, I prefer Scala but I have no problem with Kotlin itself. I do not know how to integrate with sbt build and IntelliJ scala project.

No need to worry about this. IntelliJ will help with compiling Kotlin codes during packing the .zip.

rikvdkleij commented 5 years ago

And sbt compile/build?

rikvdkleij commented 5 years ago

I would appreciate if you try solution with: import scala.collection.JavaConverters._

Maybe it's already implemented in IntelliJ Scala plugin.

ice1000 commented 5 years ago

And sbt compile/build?

Not sure, have 0 knowledge about this

ice1000 commented 5 years ago

Yes, will try later. But you may try the .zip I've just uploaded, it's nice.

ice1000 commented 5 years ago

Did you try the language injection feature? It's great when you're working with regex or jsons

rikvdkleij commented 5 years ago

Did you try the language injection feature?

Not yet. I will try later.

ice1000 commented 5 years ago

Maybe it's already implemented in IntelliJ Scala plugin.

They use YouTrack, we use GitHub. It's different.