Skip to content
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 crash on path #768

Closed
tonybaloney opened this issue Jun 1, 2021 · 2 comments · Fixed by #770
Closed

Export-PoshTheme crash on path #768

tonybaloney opened this issue Jun 1, 2021 · 2 comments · Fixed by #770

Comments

@tonybaloney
Copy link
Contributor

The example in the documentation to export a theme to configure it isn't working:

> Export-PoshTheme -FilePath ~/.mytheme.omp.json -Format json
Cannot find an overload for "GetFullPath" and the argument count: "2".
At line:156 char:9
+         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [], MethodException
    + FullyQualifiedErrorId : MethodCountCouldNotFindBest

This is the latest version of oh-my-posh, I just ran the update before this command.

@lnu
Copy link
Contributor

lnu commented Jun 1, 2021

The issue is with powershell <=5.1. A change has been done to fix a bug(#748) with relative path, but it works well in powershell core and not in powershell. We'll have to find another way round.
In the meantime: if you don't specify a FilePath the theme is copied to the clipboard.

Copy link

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.
If you have found a problem that seems similar, please open a discussion first, complete the body with all the details necessary to reproduce, and mention this issue as reference.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 15, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants