quotes around paths
This commit is contained in:
parent
17a7374251
commit
19db6b37e7
4 changed files with 14 additions and 16 deletions
4
extension/package-lock.json
generated
4
extension/package-lock.json
generated
|
|
@ -1,12 +1,12 @@
|
|||
{
|
||||
"name": "continue",
|
||||
"version": "0.0.70",
|
||||
"version": "0.0.71",
|
||||
"lockfileVersion": 2,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "continue",
|
||||
"version": "0.0.70",
|
||||
"version": "0.0.71",
|
||||
"license": "Apache-2.0",
|
||||
"dependencies": {
|
||||
"@electron/rebuild": "^3.2.10",
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@
|
|||
"displayName": "Continue",
|
||||
"pricing": "Free",
|
||||
"description": "Accelerating software development with language models",
|
||||
"version": "0.0.70",
|
||||
"version": "0.0.71",
|
||||
"publisher": "Continue",
|
||||
"engines": {
|
||||
"vscode": "^1.74.0"
|
||||
|
|
|
|||
|
|
@ -108,17 +108,15 @@ async function setupPythonEnv() {
|
|||
console.log("Setting up python env for Continue extension...");
|
||||
|
||||
const [pythonCmd, pipCmd] = await getPythonPipCommands();
|
||||
const [activateCmd, pipUpgradeCmd, touchCmd] = getActivateUpgradeTouchCommands(
|
||||
pythonCmd,
|
||||
pipCmd
|
||||
);
|
||||
const [activateCmd, pipUpgradeCmd, touchCmd] =
|
||||
getActivateUpgradeTouchCommands(pythonCmd, pipCmd);
|
||||
|
||||
if (checkEnvExists()) {
|
||||
console.log("Python env already exists, skipping...");
|
||||
} else {
|
||||
// Assemble the command to create the env
|
||||
const createEnvCommand = [
|
||||
`cd ${path.join(getExtensionUri().fsPath, "scripts")}`,
|
||||
`cd "${path.join(getExtensionUri().fsPath, "scripts")}"`,
|
||||
`${pythonCmd} -m venv env`,
|
||||
].join("; ");
|
||||
|
||||
|
|
@ -132,11 +130,11 @@ async function setupPythonEnv() {
|
|||
break;
|
||||
} else {
|
||||
// Remove the env and try again
|
||||
const removeCommand = `rm -rf ${path.join(
|
||||
const removeCommand = `rm -rf "${path.join(
|
||||
getExtensionUri().fsPath,
|
||||
"scripts",
|
||||
"env"
|
||||
)}`;
|
||||
)}"`;
|
||||
await runCommand(removeCommand);
|
||||
}
|
||||
}
|
||||
|
|
@ -151,7 +149,7 @@ async function setupPythonEnv() {
|
|||
console.log("Python requirements already installed, skipping...");
|
||||
} else {
|
||||
const installRequirementsCommand = [
|
||||
`cd ${path.join(getExtensionUri().fsPath, "scripts")}`,
|
||||
`cd "${path.join(getExtensionUri().fsPath, "scripts")}"`,
|
||||
activateCmd,
|
||||
pipUpgradeCmd,
|
||||
`${pipCmd} install -r requirements.txt`,
|
||||
|
|
@ -229,10 +227,10 @@ export async function startContinuePythonServer() {
|
|||
pythonCmd = "python";
|
||||
}
|
||||
|
||||
let command = `cd ${path.join(
|
||||
let command = `cd "${path.join(
|
||||
getExtensionUri().fsPath,
|
||||
"scripts"
|
||||
)} && ${activateCmd} && cd .. && ${pythonCmd} -m scripts.run_continue_server`;
|
||||
)}" && ${activateCmd} && cd .. && ${pythonCmd} -m scripts.run_continue_server`;
|
||||
|
||||
return await retryThenFail(async () => {
|
||||
console.log("Starting Continue python server...");
|
||||
|
|
|
|||
|
|
@ -329,9 +329,9 @@ class IdeProtocolClient {
|
|||
if (vscode.window.terminals.length) {
|
||||
vscode.window.terminals[0].sendText(command);
|
||||
} else {
|
||||
const terminal = vscode.window.createTerminal();
|
||||
terminal.show();
|
||||
terminal.sendText(command);
|
||||
const terminal = vscode.window.createTerminal();
|
||||
terminal.show();
|
||||
terminal.sendText(command);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue