luyadev / luya

LUYA is a scalable web framework and content management system with the goal to please developers, clients and users alike.
https://luya.io
MIT License
812 stars 207 forks source link

Theme create command not working #2010

Closed JohnnyMcWeed closed 4 years ago

JohnnyMcWeed commented 4 years ago

What steps will reproduce the problem?

Run vendor\bin\luya theme/create on Windows

What is the expected result?

Theme creation should work.

What do you get instead?

Exception 'yii\base\InvalidArgumentException' with message 'Invalid path alias: @app\themes\thetheme'

nadar commented 4 years ago

Does the exception appear after pressing submit or did you enter informations?

JohnnyMcWeed commented 4 years ago

The problem is the DIRECTORY_SEPARATOR which takes \ on windows. This is not working with the alias.