Skip to content

quarkus:update fails on Windows with quarkus-cli #43473

Closed

Description

Describe the bug

I'm using the Quarkus CLI 3.14.4 that I installed through Chocolatey with PowerShell on Windows 10.
When I try to update my project through quarkus:update, the generated openrewrite recipe contains a non-escaped path to the recipe itself here:

configFile = project.getRootProject().file("C:\Users\xxx\AppData\Local\Temp\quarkus-project-recipe-8715019618984806815.yaml")

It should be

configFile = project.getRootProject().file("C:\\Users\\xxxx\\AppData\\Local\\Temp\\quarkus-project-recipe-8715019618984806815.yaml")

With that change, the recipe works fine when I invoke the upgrade through gradle manually.

Moreover, instead of reporting the error, the upgrade itself is stuck and does nothing.

Expected behavior

The upgrade is cancelled on errors and paths should be generated correctly on Windows environments.

Actual behavior

Process is stuck and silent, upgrade fails.

How to Reproduce?

  • Windows 10 (11 perhaps also)
  • Chocolatey
  • PowerShell 7
  • quarkus-cli 3.14.4
  • An upgradable project

Output of uname -a or ver

Windows 10 22H2

Output of java -version

openjdk version "22.0.1" 2024-04-16

Quarkus version or git rev

3.14.4

Build tool (ie. output of mvnw --version or gradlew --version)

Gradle 8.8

Additional information

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    area/cliRelated to quarkus cli (not maven/gradle/etc.)env/windowsImpacts Windows machineskind/bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions