yii2-webpack icon indicating copy to clipboard operation
yii2-webpack copied to clipboard

Fixed "insert path" required a "filepath" and not a "path" & fixed *NIX path stuff.

Open linslin opened this issue 8 years ago • 1 comments

  • Fixed: Entering a "path" in "Relative path to composer.json ?" input question resulted in a PHP-Error.
PHP Warning 'yii\base\ErrorException' with message 'file_get_contents(./composer.json): failed to open stream: No such file or directory'

in C:\development\webroot\relaunch2017-web\app\vendor\sweelix\yii2-webpack\src\commands\WebpackController.php:297

Stack trace:
#0 C:\development\webroot\relaunch2017-web\app\vendor\sweelix\yii2-webpack\src\commands\WebpackController.php(75): sweelix\webpack\commands\WebpackController->generatePackageJson()
#1 C:\development\webroot\relaunch2017-web\app\vendor\yiisoft\yii2\base\InlineAction.php(57): sweelix\webpack\commands\WebpackController->actionInit()
#2 C:\development\webroot\relaunch2017-web\app\vendor\yiisoft\yii2\base\InlineAction.php(57): ::call_user_func_array:{C:\development\webroot\relaunch2017-web\app\vendor\yiisoft\yii2\base\InlineAction.php:57}()
#3 C:\development\webroot\relaunch2017-web\app\vendor\yiisoft\yii2\base\Controller.php(156): yii\base\InlineAction->runWithParams()
#4 C:\development\webroot\relaunch2017-web\app\vendor\yiisoft\yii2\console\Controller.php(128): yii\base\Controller->runAction()
#5 C:\development\webroot\relaunch2017-web\app\vendor\yiisoft\yii2\base\Module.php(523): yii\console\Controller->runAction()
#6 C:\development\webroot\relaunch2017-web\app\vendor\yiisoft\yii2\console\Application.php(180): yii\base\Module->runAction()
#7 C:\development\webroot\relaunch2017-web\app\vendor\yiisoft\yii2\console\Application.php(147): yii\console\Application->runAction()
#8 C:\development\webroot\relaunch2017-web\app\vendor\yiisoft\yii2\base\Application.php(380): yii\console\Application->handleRequest()
#9 C:\development\webroot\relaunch2017-web\app\yii(20): yii\base\Application->run()
#10 {main}
  • Fixed: *NIX path stuff for Windows enviromnent.

linslin avatar Oct 05 '17 08:10 linslin

Hi @pgaultier,

I've got a couple of little problems to make this nice approach running in my application. I want to talk to you about this little things. The main problem is, that your focused Yii2 application structure is something random and not based on the Yii2 application structure: https://github.com/yiisoft/yii2-app-basic & https://github.com/yiisoft/yii2-app-advanced. Please get in touch with me: [email protected]

Thanks

linslin avatar Oct 05 '17 08:10 linslin