diff options
-rw-r--r-- | doc/intellij.md | 25 | ||||
-rw-r--r-- | tools/gui/src/Main.scala | 4 |
2 files changed, 14 insertions, 15 deletions
diff --git a/doc/intellij.md b/doc/intellij.md index adefa37..d5b607d 100644 --- a/doc/intellij.md +++ b/doc/intellij.md @@ -1,22 +1,18 @@ # CBT Intellij scala-plugin (fork of orginal scala-plugin) -Link: [scala-plugin.zip](https://www.dropbox.com/s/508v9ypypvrpni9/scala-plugin.zip?dl=0) (sha1: `a330220b831bedea8863b30ba15c7d8cdedfa740`) +Link: [scala-plugin.zip](https://goo.gl/9vqurz) (sha1: `dedb029d3c4b378f85cf62a10da6425cbd1f102b`) ### Features: * Creating CBT-based projects -* Importing existing cbt-based projects -* Editting CBT source code (will be a little better when #536 will be accepted) - - **Cache directory should be added to Excluded in root module setting** -* Running cbt-tasks (You better do sibale IDEA default build task) ![cbt-task](https://user-images.githubusercontent.com/16403337/27309036-75740d5c-555a-11e7-9c9a-60e756d5e0ca.png) -* Running and debugging CBT-based projects +* Importing existing CBT-based projects +* Editting CBT source code +* Running and debugging arbitrary build task * Navigating through libraries sources - ### Requirements: * Latest version of CBT from github * CBT executable available within comandline -* Intellij IDEA 2017.2 Community Public Preview (not sure about working on other versions) +* Intellij IDEA 2017.2 In order to install you need to remove existing intellij-scala plugin and then choose `Install plugin from disk` and point out to the downloaded zip @@ -29,16 +25,17 @@ To refresh o project you need to enable a `CBT tool panel`: just press `ctrl-shi When done a tool panel will aperas at the right side: ![image](https://user-images.githubusercontent.com/16403337/27643788-b4d8998c-5c2a-11e7-929e-4e80724d4b6d.png) #### Creating extra modules -For now IDEA assumes that all modules which you use are in dependencies(may be transitive) of a root module +IDEA assumes that all modules which you use are in dependencies (may be transitive) of a root module If you want to work on some module which is not you can right-click on the directory in the project tree view and then choose `Consider as CBT module` (directory should contains `build` directory with a correct build file) -#### Correct build files -For now plugin assumes that if you import some project(or may be just refresh it) all build files do not contain errors. Otherwise it would not just be imported/refreshed - ------ The source code is here: [source](https://github.com/darthorimar/intellij-scala) -This a fork of a *JetBrains* [scala-pugin](https://github.com/jetbrains/intellij-scala) +This a fork of a *JetBrains* [intellij-scala](https://github.com/jetbrains/intellij-scala) and soon should be merged into it + +Releated PR in IDEA Scala Plugin [here](https://github.com/JetBrains/intellij-scala/pull/383) + +**Use and leave feedback** :metal: diff --git a/tools/gui/src/Main.scala b/tools/gui/src/Main.scala index 8dd2c3e..3b4bd90 100644 --- a/tools/gui/src/Main.scala +++ b/tools/gui/src/Main.scala @@ -88,7 +88,9 @@ object Main { } } server.start() - java.awt.Desktop.getDesktop.browse(new java.net.URI(s"http://localhost:$uiPort/")) + if(!java.awt.GraphicsEnvironment.isHeadless()) { + java.awt.Desktop.getDesktop.browse(new java.net.URI(s"http://localhost:$uiPort/")) + } println("Press Enter to stop UI server.") while (Source.stdin.getLines().next().nonEmpty) {} |