Skip to content

ENOENT error when compiling from path containing a space #6

@iant-ee

Description

@iant-ee

We've got a C# project where the .less compilation isn't working for one of our developers (set as a build action on the .less file and working for other developers using the same project).

From what I can tell the problem is that his Windows username contains a space, so his checked out less file is at C:\Users\First Last\Documents\GitHub\Project\Project\Website\Content\less\project.less

The output he gets when building includes:
lessc: ENOENT, open 'C:\Users\First Last\Documents\GitHub\Project\Project\Website\Content\less\Last\Documents\GitHub\Project\Project\Website\Content\css\project.css.map'

My initial thought is that the "build from" parameter is not being quoted / escaped properly before being passed to the build script, but I'm not sure where that happens.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions