Skip to content

tasks break when the folder has a space in it #1952

@joe-bro-1

Description

@joe-bro-1

Description

when using tasks in a folder with a space in it the task fails to move to the proper directory and breaks

To Reproduce

Create a folder with a name containing a space eg "new folder",

open the folder in CodeEdit,

create a task (this can be done either via workspace settings or making the config yourself).

for demo purposes we'll create a task that just runs pwd by going to File > Workspace Settings clicking Add Task give it a name eg pwd and in Task just put pwd.

now if you run the task it will fail with errors relating to issues running cd.

this seems to be relating to the directory not escaping " " and so cd see's the second part as another argument when trying to move to our working directory.

Expected Behavior

the task should escape " " and so properly move to our working directory

Version Information

CodeEdit: Version 0.3.3-alpha (44)
macOS: 15.1.1
Xcode: 16.0 (I used the latest downloadable build)

Additional Context

No response

Screenshots

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    🏁 Complete

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions