New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Export-PoshTheme disregards the -FilePath parameter #748
Comments
If you don't set the FilePath, the text is copied to the clipboard. |
@lnu this is going to be a fix like mapping |
I did this:
after the
Final code:
It seems ok |
@lnu won't that fail when you add a full path? |
Yep, we should add a check to see if the path is full with ‘IsPathRooted’(for example). Or use |
@lnu I guess we can consider this closed now, right? |
For me yes, can you validate @skycommand ? |
@lnu and @JanDeDobbeleer I am afraid I can say with certainty that the bug persists. On my virtual machine, |
@skycommand "you took the pain"? Really? That's how we're addressing people who took up the task the same day waiting on your feedback to see if it was also resolved on your end? I'll check later today, in the meanwhile, work on your attitude and gratitude. |
@JanDeDobbeleer It's an expression. "Took the pain" means "carried out a certain task". No actual pain is involved. Sorry, that's how English works. |
Yes, There is a bug for powershell core reported about this(I found it on macos this morning). The fix is to pass $pwd as second parameter to GetFullPath. |
Oh, yeah. PowerShell's run space cannot alter the PowerShell host process's current directory. There is a reason for that: In run space, the current directory is a PSDrive not an actual file system volume. Consider this: Set-Location HKLM:\Software
$PWD.ProviderPath These paths are not even on the file system. |
This issue has been automatically locked since there has not been any recent activity (i.e. last half year) after it was closed. It helps our maintainers focus on the active issues. |
Prerequisites
CONTRIBUTING
guideDescription
The
Export-PoshTheme
seems to have trouble understanding the relative path in the-FilePath
parameter. Instead of resolving the relative path according to the current folder, it resolves the path according to the desktop!Environment
Powerline
,Paradox
andSlimfat
, but the problem is theme-independentSteps to Reproduce
pwsh.exe -noprofile
Expected behavior:
slim.json
must appear inD:\Projects\AdminScripts
Actual behavior:
slim.json
appears in~
or (in one occasion)~\Desktop
(Use a utility like Everything to locate it in real-time)The text was updated successfully, but these errors were encountered: