Bug 217335 - white space patch for launching the debugger when installed in a path with white space.
Summary: white space patch for launching the debugger when installed in a path with wh...
Status: RESOLVED FIXED
Alias: None
Product: DLTK
Classification: Technology
Component: JavaScript (show other bugs)
Version: 0.95   Edit
Hardware: PC Windows Vista
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: dltk.common-inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: contributed
Depends on:
Blocks:
 
Reported: 2008-01-31 15:54 EST by Johan Compagner CLA
Modified: 2010-06-11 07:06 EDT (History)
1 user (show)

See Also:


Attachments
white space patch (2.08 KB, patch)
2008-01-31 15:54 EST, Johan Compagner CLA
alex.panchenko: iplog+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Johan Compagner CLA 2008-01-31 15:54:09 EST
Created attachment 88459 [details]
white space patch

When launching a js file i get this error:

java.net.URISyntaxException: Illegal character in path at index 16: file:/C:/Pro
gram Files/Servoy/developer/plugins/org.eclipse.dltk.javascript.rhino.dbgp_1.0.0
/RhinoRunner.class
        at java.net.URI$Parser.fail(Unknown Source)
        at java.net.URI$Parser.checkChars(Unknown Source)
        at java.net.URI$Parser.parseHierarchical(Unknown Source)
        at java.net.URI$Parser.parse(Unknown Source)
        at java.net.URI.<init>(Unknown Source)
        at org.eclipse.dltk.javascript.internal.launching.JavaScriptInterpreterR
unner.getClassPath(JavaScriptInterpreterRunner.java:175)
        at org.eclipse.dltk.javascript.internal.launching.JavaScriptInterpreterR
unner.doRunImpl(JavaScriptInterpreterRunner.java:122)
        at org.eclipse.dltk.internal.launching.debug.JavaScriptAndJDTDebuggerRun
ner.run(JavaScriptAndJDTDebuggerRunner.java:32)
        at org.eclipse.dltk.internal.launching.DebugRunnerDelegate.run(DebugRunn
erDelegate.java:54)
        at org.eclipse.dltk.javascript.launching.JavaScriptLaunchConfigurationDe
legate.runRunner(JavaScriptLaunchConfigurationDelegate.java:25)
        at org.eclipse.dltk.launching.AbstractScriptLaunchConfigurationDelegate.
launch(AbstractScriptLaunchConfigurationDelegate.java:800)
        at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConf
iguration.java:766)
        at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConf
iguration.java:608)
        at org.eclipse.debug.internal.ui.DebugUIPlugin.buildAndLaunch(DebugUIPlu
gin.java:899)
        at org.eclipse.debug.internal.ui.DebugUIPlugin$7.run(DebugUIPlugin.java:
1102)
        at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)

this is because the url was created with a white space in the url and toURI can't handle that.
Comment 1 Andrei Sobolev CLA 2008-02-04 07:09:05 EST
Applied.
Comment 2 Andrey Platov CLA 2008-05-26 02:48:59 EDT
bulk change: fixed in 0.95