Uploaded image for project: 'PUBLIC - Liferay IDE'
  1. PUBLIC - Liferay IDE
  2. IDE-4574

create gradle component class error

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.6.0 M1
    • Fix Version/s: 3.6 M2
    • Component/s: Gradle, Modules
    • Labels:
      None

      Description

      step:
      1.create gradle mvc-portlet
      2.open component class wizard
      3.click finish button

      error log:
      null
      com.liferay.ide.project.core
      Error
      Tue Mar 26 15:24:33 CST 2019
      org.eclipse.core.runtime.CoreException: String index out of range: -2
      at com.liferay.ide.project.core.modules.templates.AbstractLiferayComponentTemplate.doExecute(AbstractLiferayComponentTemplate.java:176)
      at com.liferay.ide.project.core.modules.templates.AbstractLiferayComponentTemplate.doExecute(AbstractLiferayComponentTemplate.java:1)
      at com.liferay.ide.project.core.modules.NewLiferayComponentOpMethods.createNewComponent(NewLiferayComponentOpMethods.java:37)
      at com.liferay.ide.project.core.modules.NewLiferayComponentOpMethods.execute(NewLiferayComponentOpMethods.java:51)
      at com.liferay.ide.project.core.modules.NewLiferayComponentOp$Impl.execute(Unknown Source)
      at org.eclipse.sapphire.ui.forms.swt.SapphireWizard.performFinish(SapphireWizard.java:398)
      at org.eclipse.sapphire.ui.forms.swt.SapphireWizard$3.run(SapphireWizard.java:362)
      at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:119)
      Caused by: java.lang.StringIndexOutOfBoundsException: String index out of range: -2
      at java.lang.AbstractStringBuilder.insert(AbstractStringBuilder.java:1032)
      at java.lang.StringBuilder.insert(StringBuilder.java:291)
      at com.liferay.ide.gradle.core.parser.GradleDependencyUpdater._insertDependency(GradleDependencyUpdater.java:122)
      at com.liferay.ide.gradle.core.parser.GradleDependencyUpdater.insertDependency(GradleDependencyUpdater.java:87)
      at com.liferay.ide.gradle.core.GradleProjectBuilder.updateDependencies(GradleProjectBuilder.java:159)
      at com.liferay.ide.project.core.modules.templates.AbstractLiferayComponentTemplate.doMergeDependenciesOperation(AbstractLiferayComponentTemplate.java:308)
      at com.liferay.ide.project.core.modules.templates.AbstractLiferayComponentTemplate.doExecute(AbstractLiferayComponentTemplate.java:171)
      ... 7 more

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                29 weeks, 6 days ago

                Packages

                Version Package
                3.6 M2