idea-sbt-plugin beta version

121 views
Skip to first unread message

Jason Zaugg

unread,
Jul 18, 2012, 3:40:58 AM7/18/12
to simple-b...@googlegroups.com
idea-sbt-plugin [1] integrates the SBT console into IntelliJ IDEA, allowing you to interactively run commands, use SBT to compile your project before running/debugging, and hyperlink compiler error messages to the editor.

I'm preparing the next release with some features and bug fixes:

 - Support command history
 - Bundle SBT launcher
 - Allow selection of java.exe used to run SBT

For Idea 11: http://dl.dropbox.com/u/106552/idea-sbt-plugin-1.4.0-SNAPSHOT.zip

I'd appreciate any feedback [2] on regressions from early adopters before I publish it to the plugin repository this weekend.

-jason

ijuma

unread,
Jul 18, 2012, 12:20:12 PM7/18/12
to simple-b...@googlegroups.com
Hi Jason,

On Wednesday, 18 July 2012 08:40:58 UTC+1, Jason Zaugg wrote:
 - Support command history

Tested this on Idea 11 and it works great. Thanks!
 
I'd appreciate any feedback [2] on regressions from early adopters before I publish it to the plugin repository this weekend.

One issue I am seeing is choppy scrolling. Also, the UI looks a bit odd when triggered execution (i.e. '~') is used.

Best,
Ismael

Jason Zaugg

unread,
Jul 19, 2012, 1:32:01 AM7/19/12
to simple-b...@googlegroups.com
On Wednesday, July 18, 2012 5:51:31 PM UTC+2, Paolo Giarrusso wrote:
Hi, I like this plugin and I just installed this 1.4 beta. Having an history is cool, yet my gut feeling with the beta is horrible. The problem is with the usability of the prompt.
I apologize in advance for using strong words such as "horrible", but that reflects pretty well what it feels like. Please don't take it personal - consider that as a signal of how deeply hardwired is my expectation of how a prompt works.

How does this split-window-and-double-prompt thing work? My first gut feeling is that it's so unusable that I don't get it and I can't describe what's wrong. Some minutes of study reveal while usually the a prompt appears in a console **if and only if** that console "I'm waiting for a command", here the relation is violated in a number of ways. You use green and black for writing, and I guess that has some meaning, and maybe the system is perfectly usable when knowing that. But I have no clue what this use of color is about.

Part of the problem is already the prompt below, which _always_ displays a prompt and accepts commands. It should just show SBT's prompt _when_ it appears. Moreover, when one presses Enter there, a prompt _always_ appears immediately. While usually I can tell whether something is running by the presence or absence of a prompt, here I can't, and I have to resort to checking whether there's a completion message - which I'm not sure is guaranteed to be at the end. Years of using Unix/*x consoles for mant hours a day train this behavior away - you seldom get completion messages. Moreover, checking whether a prompt is there **always** works.
Finally, the only other signal (IDEA's count of background tasks) is too far away on the screen (in the middle) and unreliable (pressing Enter N times during compilation adds N tasks there).

Thanks for the feedback, you raise some good points. 

I'm using a new facility in IDEA 11 called a Language Console, in which text entry is done in a different editor panel from the history. This fixed the history problem; and wil enable me to add autocompletion. I haven't tweaked the UI much from the IntelliJ standard, other than to colorize the history and add hyperlinks.

I'll see if I can add a visual cue that the previous command is in progress.

-jason

Jason Zaugg

unread,
Jul 20, 2012, 5:25:20 AM7/20/12
to simple-b...@googlegroups.com
On Thursday, July 19, 2012 7:32:01 AM UTC+2, Jason Zaugg wrote:
Thanks for the feedback, you raise some good points. 

I'm using a new facility in IDEA 11 called a Language Console, in which text entry is done in a different editor panel from the history. This fixed the history problem; and wil enable me to add autocompletion. I haven't tweaked the UI much from the IntelliJ standard, other than to colorize the history and add hyperlinks.

I'll see if I can add a visual cue that the previous command is in progress.

I've just uploaded new versions of the plugin that improve the prompt UI: the '>' and the caret are hidden until the previous command completes.

The slight choppiness in the output is still there; there is a hard-coded 200ms delay in the IntelliJ widget I'm using, and I can't change that without duplicating reams of code. I have forced a flush of the output before the next prompt is shown, which might help perceived performance though.
-jason

ijuma

unread,
Jul 20, 2012, 6:10:27 AM7/20/12
to simple-b...@googlegroups.com
On Friday, 20 July 2012 10:25:20 UTC+1, Jason Zaugg wrote:
I've just uploaded new versions of the plugin that improve the prompt UI: the '>' and the caret are hidden until the previous command completes.

Thanks. I am getting the following and the StartSbtAction is no longer showing.

11:07:46 AM Throwable: icon path=/toolwindows/toolWindowRun.png class=class net.orfjackal.sbt.plugin.SbtConsole$StartSbtAction

The slight choppiness in the output is still there; there is a hard-coded 200ms delay in the IntelliJ widget I'm using, and I can't change that without duplicating reams of code.

Maybe time for a RFE?

Best,
Ismael

Jason Zaugg

unread,
Jul 20, 2012, 7:11:09 AM7/20/12
to simple-b...@googlegroups.com
On Friday, July 20, 2012 12:10:27 PM UTC+2, ijuma wrote:
On Friday, 20 July 2012 10:25:20 UTC+1, Jason Zaugg wrote:
I've just uploaded new versions of the plugin that improve the prompt UI: the '>' and the caret are hidden until the previous command completes.

Thanks. I am getting the following and the StartSbtAction is no longer showing.

11:07:46 AM Throwable: icon path=/toolwindows/toolWindowRun.png class=class net.orfjackal.sbt.plugin.SbtConsole$StartSbtAction

Oh sorry; cherry-picked to much to the Idea 11 branch. Please try again. 
 
The slight choppiness in the output is still there; there is a hard-coded 200ms delay in the IntelliJ widget I'm using, and I can't change that without duplicating reams of code.

Maybe time for a RFE?

 
-jason

Paolo Giarrusso

unread,
Jul 23, 2012, 7:13:20 AM7/23/12
to simple-b...@googlegroups.com
I'm now testing the new snapshot (just downloaded).
The prompt now is fine, thanks! I was not sure, but since input is still enabled, it's still possible to interrupt incrementally executed commands (i.e. '~something').
I'm also testing for another bug: in the previous snapshot, the history storage itself did not work (it stopped learning new commands at some point, as if unable to remove old commands when the history was full). Now it seems to work again, but let's see.
Cheers,
Paolo

ijuma

unread,
Sep 11, 2012, 7:07:07 PM9/11/12
to simple-b...@googlegroups.com
On Friday, 20 July 2012 10:25:20 UTC+1, Jason Zaugg wrote:
Is there a version that works with the latest EAP of Leda?

Best,
Ismael

Gerolf Seitz

unread,
Sep 12, 2012, 6:56:33 AM9/12/12
to simple-b...@googlegroups.com, ism...@juma.me.uk
This is a build containing the changes of  https://github.com/retronym/idea-sbt-plugin/pull/1


Regards,
  Gerolf

--
You received this message because you are subscribed to the Google Groups "simple-build-tool" group.
To view this discussion on the web visit https://groups.google.com/d/msg/simple-build-tool/-/BUFyg6SGzYEJ.

To post to this group, send email to simple-b...@googlegroups.com.
To unsubscribe from this group, send email to simple-build-t...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/simple-build-tool?hl=en.



--
Gerolf Seitz

twitter: @gersei

Reply all
Reply to author
Forward
0 new messages