[Craft] [Bug 450129] New: Path Reasonably Cannot Be Set within craftsettings.ini
Richard Garber
bugzilla_noreply at kde.org
Sun Feb 13 07:35:47 GMT 2022
https://bugs.kde.org/show_bug.cgi?id=450129
Bug ID: 450129
Summary: Path Reasonably Cannot Be Set within craftsettings.ini
Product: Craft
Version: master
Platform: Other
OS: Microsoft Windows
Status: REPORTED
Severity: normal
Priority: NOR
Component: Core
Assignee: vonreth at kde.org
Reporter: richardgarber03 at gmail.com
CC: kde-windows at kde.org
Target Milestone: ---
SUMMARY
***
NOTE: If you are reporting a crash, please try to attach a backtrace with debug
symbols.
See
https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
***
STEPS TO REPRODUCE
1. Add 'Path = ' to craftsettings.ini. If any elements of the path have spaces
in them (eg. a path to something in C:\Program Files...) then the path will
fail to load.
2. Attempt to start Craft (execute craftenv.ps1)
OBSERVED RESULT
Craft fails to load Path, or fails to load in general.
EXPECTED RESULT
$Env:Path is changed
SOFTWARE/OS VERSIONS
Craft: master (ABI windows-msvc2019_64-cl)
Windows: 22000.526
ADDITIONAL INFORMATION
This error occurs because the ReadINI function uses trim, which breaks on
whitespace. This can be fixed by changing the environment within the powershell
script, or by calling the original script from a different one, but these
workarounds are clunkier than the intended configuration.
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the Kde-windows
mailing list