Recent XDG_CONFIG_HOME refactor seems to cause an issue for fresh installs
joshgentry opened this issue · comments
I haven't had an opportunity to dig deeply, so I'm only seeing what is the most likely culprit, but the recent commit lukesampson/pshazz@9bda1e3 may have adjusted setting up a fresh install in a way that fails to create the config file if it does not exist (as the path does not exist).
This is the error I'm seeing:
Set-Content : Could not find a part of the path 'C:\Users\user\.config\pshazz\config.json'.
At C:\Users\user\scoop\apps\pshazz\current\lib\config.ps1:24 char:27
+ ConvertTo-Json $cfg | Set-Content $configFile -Encoding ASCII
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (C:\Users\user\.config\pshazz\config.json:String) [Set-Content], DirectoryNotFoundException
+ FullyQualifiedErrorId : GetContentWriterDirectoryNotFoundError,Microsoft.PowerShell.Commands.SetContentCommand
This error occurs immediately after:
scoop install --arch 64bit concfg
scoop install pshazz
concfg import gruvbox-dark-medium
pshazz use lambda
Note that running pshazz init
does not correct the issue.
Hello joshgentry, thanks for reporting the issue. The issue confirmed, but it's related to pshazz, could you reopen it in pshazz's issue tracker? Will fix it soon.
@h404bi ah you're right, my bad. Moved to lukesampson/pshazz#91.