-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Quote Ruby script path to handle folders containing spaces
- Loading branch information
Showing
1 changed file
with
3 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
/******************************************************************************* | ||
* Copyright (c) 2019 Red Hat Inc. and others. | ||
* Copyright (c) 2019-2024 Red Hat Inc. and others. | ||
* | ||
* This program and the accompanying materials are made available under the | ||
* terms of the Eclipse Public License v. 2.0 which is available at | ||
|
@@ -11,6 +11,7 @@ | |
* Alexander Kurtakov (Red Hat Inc.) - Initial implementation | ||
* Pierre-Yves B. ([email protected]) - Various improvements | ||
* Pierre-Yves B. ([email protected]) - Debugger support | ||
* Pierre-Yves B. ([email protected]) - Quote script path | ||
*******************************************************************************/ | ||
package io.github.pyvesb.eclipse_solargraph.launch.run; | ||
|
||
|
@@ -35,7 +36,7 @@ public void launch(ILaunchConfiguration configuration, String mode, ILaunch laun | |
// a config attribute reader threw exception & was logged | ||
return; | ||
} | ||
String command = "ruby " + script + " " + arguments; | ||
String command = "ruby \"" + script + "\" " + arguments; | ||
LaunchHelper.createJob(launch, command, workingDirectory).schedule(); | ||
} | ||
|
||
|