[Bug] .Name returns empty for composer.json in project segment #7198
Unanswered
moisesrm206
asked this question in
Troubleshoot
Replies: 1 comment
-
|
@moisesrm206 works like a charm like this: {
"type": "project",
"style": "powerline",
"powerline_symbol": "\ue0b4",
"foreground": "#171323",
"background": "#3ded95",
"options": {
"php_files": [
"*.php",
"composer.json"
]
},
"template": " \uf1b3 {{ .Name }} "
} |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Code of Conduct
What happened?
Using a customized Oh My Posh theme with the project segment, I'm unable to access composer.json properties like .Name, .Type, .Version, etc. in a Laravel project.
The project segment detects the Laravel project (shows the module), but cannot read properties from composer.json. Properties like .Name, .Type, .Version return empty. Only .Folder works correctly.
Expected behavior:
Should display project name from composer.json (e.g., "laravel/booksandreads")
What I've tried:
Theme
This is the customized theme:
aliens-custom.omp.json
And here is the default "composer.json" file from the project
composer.json
What OS are you seeing the problem on?
Windows
Which shell are you using?
powershell
Log output
Beta Was this translation helpful? Give feedback.
All reactions