org.eclipse.core.runtime.CoreException: Path must include project and resource name: /scripts

SpringSource Issue Tracker | Kris De Volder (c) | 6 years ago
  1. 0

    checkout Grails core project from git. Do not generate eclipse files using Gradle scripts. Using Gradle import wizard import everything. An error message about wrong path pops up. Entry in error log: {noformat} org.eclipse.core.runtime.CoreException: Path must include project and resource name: /scripts at com.springsource.sts.gradle.core.util.ExceptionUtil.coreException(ExceptionUtil.java:59) at com.springsource.sts.gradle.core.wizards.GradleImportOperation.importProject(GradleImportOperation.java:143) at com.springsource.sts.gradle.core.wizards.GradleImportOperation.perform(GradleImportOperation.java:91) at com.springsource.sts.gradle.ui.wizards.GradleImportWizard$1.doit(GradleImportWizard.java:57) at com.springsource.sts.gradle.core.util.GradleRunnable$1.run(GradleRunnable.java:42) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54) Caused by: java.lang.IllegalArgumentException: Path must include project and resource name: /scripts at org.eclipse.core.runtime.Assert.isLegal(Assert.java:63) at org.eclipse.core.internal.resources.Workspace.newResource(Workspace.java:1795) at org.eclipse.core.internal.resources.Container.getFolder(Container.java:221) at com.springsource.sts.gradle.core.GradleProject.newSourceEntry(GradleProject.java:253) at com.springsource.sts.gradle.core.GradleProject.setSourceFolders(GradleProject.java:171) at com.springsource.sts.gradle.core.GradleProject.refreshSourceFolders(GradleProject.java:145) at com.springsource.sts.gradle.core.GradleProject.convertToGradleProject(GradleProject.java:399) at com.springsource.sts.gradle.core.wizards.GradleImportOperation.importProject(GradleImportOperation.java:135) ... 4 more {noformat} This is cause by some invalid data returned by the Gradle tooling API. We should guard against illegal entries and ignore them. (Maybe with some error message, but continue to process after skipping the invalid entry.)

    SpringSource Issue Tracker | 6 years ago | Kris De Volder (c)
    org.eclipse.core.runtime.CoreException: Path must include project and resource name: /scripts
  2. 0

    checkout Grails core project from git. Do not generate eclipse files using Gradle scripts. Using Gradle import wizard import everything. An error message about wrong path pops up. Entry in error log: {noformat} org.eclipse.core.runtime.CoreException: Path must include project and resource name: /scripts at com.springsource.sts.gradle.core.util.ExceptionUtil.coreException(ExceptionUtil.java:59) at com.springsource.sts.gradle.core.wizards.GradleImportOperation.importProject(GradleImportOperation.java:143) at com.springsource.sts.gradle.core.wizards.GradleImportOperation.perform(GradleImportOperation.java:91) at com.springsource.sts.gradle.ui.wizards.GradleImportWizard$1.doit(GradleImportWizard.java:57) at com.springsource.sts.gradle.core.util.GradleRunnable$1.run(GradleRunnable.java:42) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54) Caused by: java.lang.IllegalArgumentException: Path must include project and resource name: /scripts at org.eclipse.core.runtime.Assert.isLegal(Assert.java:63) at org.eclipse.core.internal.resources.Workspace.newResource(Workspace.java:1795) at org.eclipse.core.internal.resources.Container.getFolder(Container.java:221) at com.springsource.sts.gradle.core.GradleProject.newSourceEntry(GradleProject.java:253) at com.springsource.sts.gradle.core.GradleProject.setSourceFolders(GradleProject.java:171) at com.springsource.sts.gradle.core.GradleProject.refreshSourceFolders(GradleProject.java:145) at com.springsource.sts.gradle.core.GradleProject.convertToGradleProject(GradleProject.java:399) at com.springsource.sts.gradle.core.wizards.GradleImportOperation.importProject(GradleImportOperation.java:135) ... 4 more {noformat} This is cause by some invalid data returned by the Gradle tooling API. We should guard against illegal entries and ignore them. (Maybe with some error message, but continue to process after skipping the invalid entry.)

    SpringSource Issue Tracker | 6 years ago | Kris De Volder (c)
    org.eclipse.core.runtime.CoreException: Path must include project and resource name: /scripts
  3. 0

    Maven - m2eclipse stellt keinen Maven Library Container zur Verf├╝gung

    java-forum.org | 1 year ago
    java.lang.IllegalArgumentException: Path must include project and resource name: /
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Model cannot be saved at AspectJ

    GitHub | 3 years ago | meinicke
    java.lang.IllegalArgumentException: Path must include project and resource name: /HelloWorld-AspectJ
  6. 0

    Java sources in project dir breaks the Ceylon builder

    GitHub | 3 years ago | sgalles
    java.lang.IllegalArgumentException: Path must include project and resource name: /bazproject

    6 unregistered visitors
    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.IllegalArgumentException

      Path must include project and resource name: /scripts

      at org.eclipse.core.runtime.Assert.isLegal()
    2. Eclipse Core
      Assert.isLegal
      1. org.eclipse.core.runtime.Assert.isLegal(Assert.java:63)
      1 frame
    3. Core Resource Management
      Container.getFolder
      1. org.eclipse.core.internal.resources.Workspace.newResource(Workspace.java:1795)
      2. org.eclipse.core.internal.resources.Container.getFolder(Container.java:221)
      2 frames
    4. com.springsource.sts
      GradleRunnable$1.run
      1. com.springsource.sts.gradle.core.GradleProject.newSourceEntry(GradleProject.java:253)
      2. com.springsource.sts.gradle.core.GradleProject.setSourceFolders(GradleProject.java:171)
      3. com.springsource.sts.gradle.core.GradleProject.refreshSourceFolders(GradleProject.java:145)
      4. com.springsource.sts.gradle.core.GradleProject.convertToGradleProject(GradleProject.java:399)
      5. com.springsource.sts.gradle.core.wizards.GradleImportOperation.importProject(GradleImportOperation.java:135)
      6. com.springsource.sts.gradle.core.wizards.GradleImportOperation.perform(GradleImportOperation.java:91)
      7. com.springsource.sts.gradle.ui.wizards.GradleImportWizard$1.doit(GradleImportWizard.java:57)
      8. com.springsource.sts.gradle.core.util.GradleRunnable$1.run(GradleRunnable.java:42)
      8 frames
    5. Eclipse Jobs
      Worker.run
      1. org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
      1 frame