JetBrains / sbt-idea-plugin

Develop IntelliJ plugins with Scala and SBT
Apache License 2.0
97 stars 28 forks source link

NumberFormatException in updateIntellij #37

Closed exoego closed 4 years ago

exoego commented 4 years ago

How to reproduce

sbt raises NumberForatException on startup after successfull intellijExternalPlugins installation.

$> sbt
(For the first time, IdeaIC and plugin are successfully downloaded)
(Then shutdown sbt and rerun)
$> sbt
[info] Loading settings for project sbt-idea-plugin-issue-build from plugins.sbt ...
[info] Loading project definition from /home/vagrant/IdeaProjects/sbt-idea-plugin-issue/project
[info] Loading settings for project myAwesomePlugin from build.sbt ...
[info] Set current project to my-awesome-plugin (in build file:/home/vagrant/IdeaProjects/sbt-idea-plugin-issue/)
[error] java.lang.NumberFormatException: For input string: "*"
[error]         at java.base/java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)

Configuration

project/build.properties

sbt.version=1.3.2

project/plugins.sbt

addSbtPlugin("org.jetbrains" % "sbt-idea-plugin" % "3.3.0")

build.sbt

intellijPluginName in ThisBuild := "my-awesome-plugin"
intellijBuild in ThisBuild := "192.6817.14"
intellijDownloadSources in ThisBuild := true
intellijInternalPlugins += "java"
intellijExternalPlugins += "PsiViewer".toPlugin

lazy val myAwesomePlugin = (project in file("."))
  .enablePlugins(SbtIdeaPlugin)
  .settings(
    name := "my-awesome-plugin",
    version := "0.1.0",
    scalaVersion := "2.13.1"
  )