Menu

#10 Path for project must have only one segment

open-fixed
None
5
2006-05-16
2006-03-20
Nidget
No

Having just migrated from Eclipse 3.0.1 to Eclipse
3.1.1 (Jydt 1.4.10), we have a problem when launching
a jython script: we get an error message in Eclipse,
without description. By looking into the logs of
Eclipse, we have found this:

java.lang.IllegalArgumentException: Path for project
must have only one segment.
at org.eclipse.core.internal.utils.Assert.isLegal
(Assert.java:60)
at
org.eclipse.core.internal.resources.WorkspaceRoot.getPr
oject(WorkspaceRoot.java:134)
at
net.redrobin.eclipse.jydt.launching.JythonClasspathProv
ider.defaultUserClassPath
(JythonClasspathProvider.java:56)
at
net.redrobin.eclipse.jydt.launching.JythonClasspathProv
ider.computeUnresolvedClasspath
(JythonClasspathProvider.java:103)
at
net.redrobin.eclipse.jydt.launching.JythonLaunchConfigu
rationDelegate.getClasspath
(JythonLaunchConfigurationDelegate.java:81)
at org.eclipse.jdt.launching.JavaLaunchDelegate.launch
(JavaLaunchDelegate.java:71)
at
net.redrobin.eclipse.jydt.launching.JythonLaunchConfigu
rationDelegate.launch
(JythonLaunchConfigurationDelegate.java:43)
at
org.eclipse.debug.internal.core.LaunchConfiguration.lau
nch(LaunchConfiguration.java:590)
at
org.eclipse.debug.internal.core.LaunchConfiguration.lau
nch(LaunchConfiguration.java:515)
at
org.eclipse.debug.internal.ui.DebugUIPlugin.buildAndLau
nch(DebugUIPlugin.java:733)
at org.eclipse.debug.internal.ui.DebugUIPlugin$6.run
(DebugUIPlugin.java:931)
at org.eclipse.core.internal.jobs.Worker.run
(Worker.java:76)

Discussion

  • Nobody/Anonymous

    Logged In: NO

    This is because the project is not set in the launch
    configuration. To work around this problem you can create a
    new launch configuration by right clicking the .py file you
    wish to run and selecting Run-As -> Jython.

    When the new launch configuration is created it will have
    the project information in it because it inherited it from
    the context of being created via the drop down menu.

    Creating a launch configuration from the "Run..." dialog
    does not work a project selction mechanism must be added to
    the launch configuration wizard similar to the textbox and
    browse button in the Java Application launch configuration
    wizard.

     
  • Nidget

    Nidget - 2006-04-06

    Logged In: YES
    user_id=362924

    Actually, the launch configurations were created, but with
    the previous version of the plugin that was installed in
    Eclipse 3.0.1
    I've deleted the launch configurations and recreated them.
    Now it works.

    Thanks for your help.

    Best Regards,
    Jean-Pol.

     
  • Red Robin

    Red Robin - 2006-05-16

    Logged In: YES
    user_id=1288732

    Set the resolution to "Fixed" because the problem disappeared.

    Put story 236 ("Add a project selection box to the "Jython
    Main" page of the launch configuration wizard.") to the
    story list to capture the suggestion of Nobody on 2006-04-06.

     
  • Red Robin

    Red Robin - 2006-05-16
    • assigned_to: nobody --> red-robin
    • status: open --> open-fixed
     
  • Red Robin

    Red Robin - 2006-05-16

    Logged In: YES
    user_id=1288732

    Set the resolution to "Fixed" because the problem disappeared.

    Put story 236 ("Add a project selection box to the "Jython
    Main" page of the launch configuration wizard.") to the
    story list to capture the suggestion of Nobody on 2006-04-06.

     

Log in to post a comment.