1

正如我所见,在 intellij 14 中没有升级特定插件的选项。GWT 插件可能是为 GWT 2.6 分发的,因为在 GWT 2.7 中,我们有新的超级开发模式参数,例如 -launcherDir,它不在当前的 Intellij (v14) 和收到“未知参数:-launcherDir”错误。

所以我需要等待下一个 Intellij IDEA 版本更新,或者我只能升级 GWT 插件以完全支持 GWT2.7?

实际上问题是这可能是单独升级 intellij 插件还是将它们更新为 IDE 更新?

谢谢

这是错误日志:

Unknown argument: -LauncherDir
Google Web Toolkit 2.7.0
DevMode [-[no]startServer] [-port port-number | "auto"] [-whitelist whitelist-string] [-blacklist blacklist-string] [-logdir directory] [-logLevel level] [-gen dir] [-bindAddress host-name-or-address] [-codeServerPort port-number | "auto"] [-[no]superDevMode] [-server servletContainerLauncher[:args]] [-startupUrl url] [-war dir] [-deploy dir] [-extra dir] [-modulePathPrefix ] [-workDir dir] [-XmethodNameDisplayMode NONE | ONLY_METHOD_NAME | ABBREVIATED | FULL] [-sourceLevel [auto, 1.6, 1.7]] [-XjsInteropMode [NONE, JS, CLOSURE]] [-[no]incremental] module[s] 

where 
  -[no]startServer         Starts a servlet container serving the directory specified by the -war flag. (defaults to ON)
  -port                    Specifies the TCP port for the embedded web server (defaults to 8888)
  -whitelist               Allows the user to browse URLs that match the specified regexes (comma or space separated)
  -blacklist               Prevents the user browsing URLs that match the specified regexes (comma or space separated)
  -logdir                  Logs to a file in the given directory, as well as graphically
  -logLevel                The level of logging detail: ERROR, WARN, INFO, TRACE, DEBUG, SPAM, or ALL
  -gen                     Debugging: causes normally-transient generated types to be saved in the specified directory
  -bindAddress             Specifies the bind address for the code server and web server (defaults to 127.0.0.1)
  -codeServerPort          Specifies the TCP port for the code server (defaults to 9997 for classic Dev Mode or 9876 for Super Dev Mode)
  -[no]superDevMode        Runs Super Dev Mode instead of classic Development Mode. (defaults to ON)
  -server                  Specify a different embedded web server to run (must implement ServletContainerLauncher)
  -startupUrl              Automatically launches the specified URL
  -war                     The directory into which deployable output files will be written (defaults to 'war')
  -deploy                  The directory into which deployable but not servable output files will be written (defaults to 'WEB-INF/deploy' under the -war directory/jar, and may be the same as the -extra directory/jar)
  -extra                   The directory into which extra files, not intended for deployment, will be written
  -modulePathPrefix        The subdirectory inside the war dir where DevMode will create module directories. (defaults empty for top level)
  -workDir                 The compiler's working directory for internal use (must be writeable; defaults to a system temp dir)
  -XmethodNameDisplayMode  Emit extra information allow chrome dev tools to display Java identifiers in many places instead of JavaScript functions.
  -sourceLevel             Specifies Java source level (defaults to auto:1.7)
  -XjsInteropMode          Specifies JsInterop mode, either NONE, JS, or CLOSURE (defaults to NONE)
  -[no]incremental         Compiles faster by reusing data from the previous compile. (defaults to ON)
and 
  module[s]                Specifies the name(s) of the module(s) to host
4

2 回答 2

3

IntelliJ IDEA 捆绑插件仅与产品一起分发,不单独更新。

实际上 IntelliJ IDEA 14 中的 GWT 插件已经完全更新为支持 GWT 2.7。当您收到有关 launcherDir 的此错误时,您到底在做什么?

于 2014-12-19T17:56:06.580 回答
1

实际上问题是这可能是单独升级 intellij 插件还是将它们更新为 IDE 更新?

它因人而异。大多数捆绑插件仅在完整 IDE 本身更新时才会更新。其他 JetBrains 创建的插件单独更新。通常在启动时,会出现一个“插件准备更新”警告框,列出所有可用更新的插件。您还可以进入设置的插件部分,查看是否有任何插件有可用更新。任何有可用更新的插件都会有一个图标来表示。

您正在运行哪个版本的 IDEA 14?问题IDEA-132009 GWT 2.7.0-beta1 superDevMode 无法编译已在 12 月 8 日发布的版本 14.0.2 中得到修复。此外,在 IDEA 中使用 GWT 2.7.0和IDEA-133247 GWT 超级开发模式时,问题IDEA-133522 GWT 编译失败忽略继承的公用文件夹已在 v14.0.3 EAP(早期访问程序)版本 139.791 中修复。您可以下载EAP版本或等待v14.0.3正式发布。作为说明,我一直运行 EAP 版本。它们通常非常稳定。这些修复可能会解决您的问题。

于 2014-12-19T18:07:12.640 回答