-
-
Notifications
You must be signed in to change notification settings - Fork 16
Description
There appears to be a second, related issue on Windows when launching the configuration wizard directly via the command-line flag, rather than letting pvetui create the default config first.
When running pvetui 1.0.15 on Windows with the --config-wizard flag, the interactive configuration wizard allows all fields to be filled out but fails when saving. The tool creates the pvetui configuration directory, but no configuration file is written.
Steps to reproduce
-
Install
pvetui1.0.15 on Windows using Scoop. -
Open PowerShell and run:
pvetui --config-wizard
-
Fill in the configuration form, including valid authentication details (password or token).
-
Select Save.
-
Observe the error dialog:
Failed to save config: open: The system cannot find the file specified.
Expected behavior
The configuration wizard should create a new configuration file and save the provided settings successfully.
Actual behavior
- The
pvetuiconfiguration directory is created. - No configuration file is written.
- The save operation fails with the error above.
Environment
- OS: Windows 11
- Installation method: Scoop
- Version: pvetui 1.0.15
Additional notes (hypothesis)
My guess is that, in this code path, the wizard attempts to open an existing config file for writing rather than creating a new one if it does not already exist. This would explain why the directory is created but the save fails when no config file is present.
Happy to test a fix or provide additional debugging output if needed.