Skip to content

A quoted PATH entry on Windows makes every dependency install fail #73

Open

Description

@morisil

https://github.com/xemantic/xemantic-kotlin-script-python/blob/7e3f623/src/main/kotlin/PythonDependencies.kt#L289-L293

findOnPath builds Path(it, name) for every PATH entry; on Windows an entry may be quoted ("C:\Program Files\Tool"), which is legal there, and Path(...) then throws InvalidPathException (" is an illegal path character) — so every dependency install fails, with or without uv.

Found by reading the code during the review of the fix for #45, not reproduced (no Windows machine). Possible fix: strip surrounding quotes, and skip entries which are not valid paths.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions