-
Notifications
You must be signed in to change notification settings - Fork 2
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
Can't import themes from composer package #8
Comments
I've tried on linux system it works. So probably something related to the windows\Xampp platform. |
@boehsermoe @lbucche maybe something with DIRECTORY_SEPERATOR |
So the theme folder is not even recognized? So it might me a problem here https://github.com/luyadev/luya-module-cms/blob/master/src/admin/importers/ThemeImporter.php - as there something known regarding windows @boehsermoe ? |
@lbucche please try it again with v1.7.1 fix (https://github.com/luyadev/luya/releases/tag/1.7.1) |
@boehsermoe i think this (https://github.com/luyadev/luya/pull/2058/files) will not fix the problem. this just fixes the problem when you use the theme create command on a windows computer i would say. |
No with v.1.7.1 fix I get this. luya theme/create Enter the name (lower case) of the theme you like to generate: mytheme in C:\MyGitProject\testthemes\vendor\yiisoft\yii2\BaseYii.php:154 Stack trace: |
Reverting to previous version the "luya theme/create" command works again as normal, and I managed to create a theme in app contest as usual. string(48) "vendor\luyadev/luya-themes\themes\escapeVelocity" So there's a simple slash/backslash problem. protected function getThemeDefinitions()
Hope this helps. |
Thank you @lbucche. Yes that was my guess as well as the importer handles the paths wrong. |
@boehsermoe should we move that problem into the LUYA core issue tracker? |
What steps will reproduce the problem?
composer create-project luyadev/luya-kickstarter:^1.0
changed the composer.json to get new releases and added package with themes in this way:
[...]
"require": {
"luyadev/luya-core": "^1.0",
"luyadev/luya-module-admin": "^3.0",
"luyadev/luya-module-cms": "^3.0",
"luyadev/luya-bootstrap3": "^1.0",
"luyadev/luya-generic": "^1.0",
"luyadev/luya-themes": "*@dev"
},
composer update
luya migrate
luya import
LUYA import command (based on LUYA 1.7.0)
luya\cms\admin\importers\ThemeImporter:
╔═════╤════════════════════════════════════════╗
║ Key │ Value ║
╟─────┼────────────────────────────────────────╢
║ 0 │ Theme importer finished with 0 themes. ║
╚═════╧════════════════════════════════════════╝
What is the expected result?
new themes added to cms and listed in admin
What do you get instead? (A Screenshot can help us a lot!)
No new themes added
If you manually create a new theme in the app contest it works perfectly (luya theme/create)
If you create a new composer package/module-theme, you add it in the config file, and then you create the theme using the wizard, it creates correctly the new theme in package folder, but when you import theme, it isn't present.
So it seems the the ThemeImporter can't find themes that are in "external" packages.
Any idea?
LUYA Check ouput (run this script and post the result: luyacheck.php)
Additional infos
The text was updated successfully, but these errors were encountered: