-
Bug
-
Resolution: Fixed
-
Critical
-
2.9.4, 3.0.2
-
MOODLE_29_STABLE, MOODLE_30_STABLE
-
MOODLE_29_STABLE, MOODLE_30_STABLE
-
wip-mdl-52721
-
Install Moodle on MS Windows.
Try to run php admin/tool/behat/cli/init.php in either a Windows cmd prompt window, or a Cygwin bash window.
Expected result: It works. (This was the case until recently, and still works in 2.9.x and 3.0.x.)
Acutal result:
C:\Users\tjh238\workspace\moodle_head> php admin/tool/behat/cli/init.php
|
You are already using composer version 03299ff075236be27be356498d6c64def973fe41.
|
Loading composer repositories with package information
|
Installing dependencies (including require-dev) from lock file
|
Nothing to install or update
|
Generating autoload files
|
Behat test environment already installed
|
Default exception handler: Exception - RecursiveDirectoryIterator::__construct([dirroot]\node_modules\grunt-contrib-uglify\node_modules\maxmin\node_modules\pretty-bytes\node_modules\meow\node_modules\read-pkg-up\node_modules\read-pkg\node_modules\load-json-file\node_modules\pinkie-promise\node_modules\pinkie,[dirroot]\node_modules\grunt-contrib-uglify\node_modules\maxmin\node_modules\pretty-bytes\node_modules\meow\node_modules\read-pkg-up\node_modules\read-pkg\node_modules\load-json-file\node_modules\pinkie-promise\node_modules\pinkie): The system cannot find the path specified. (code: 3) Debug:
|
Error code: generalexceptionmessage
|
* line 133 of \lib\testing\classes\tests_finder.php: UnexpectedValueException thrown
|
* line ? of unknownfile: call to RecursiveDirectoryIterator->__construct()
|
* line ? of unknownfile: call to RecursiveDirectoryIterator->getChildren()
|
* line 133 of \lib\testing\classes\tests_finder.php: call to FilterIterator->next()
|
* line 47 of \lib\testing\classes\tests_finder.php: call to tests_finder::get_all_directories_with_tests()
|
* line 72 of \lib\behat\classes\behat_config_manager.php: call to tests_finder::get_components_with_tests()
|
* line 214 of \lib\behat\classes\util.php: call to behat_config_manager::update_config_file()
|
* line 172 of \admin\tool\behat\cli\util_single_run.php: call to behat_util::start_test_mode()
|
|
!!! Exception - RecursiveDirectoryIterator::__construct([dirroot]\node_modules\grunt-contrib-uglify\node_modules\maxmin\node_modules\pretty-bytes\node_modules\meow\node_modules\read-pkg-up\node_modules\read-pkg\node_modules\load-json-file\node_modules\pinkie-promise\node_modules\pinkie,[dirroot]\node_modules\grunt-contrib-uglify\node_modules\maxmin\node_modules\pretty-bytes\node_modules\meow\node_modules\read-pkg-up\node_modules\read-pkg\node_modules\load-json-file\node_modules\pinkie-promise\node_modules\pinkie): The system cannot find the path specified. (code: 3) !!!
|
!!
|
Error code: generalexceptionmessage !!
|
!! Stack trace: * line 133 of \lib\testing\classes\tests_finder.php: UnexpectedValueException thrown
|
* line ? of unknownfile: call to RecursiveDirectoryIterator->__construct()
|
* line ? of unknownfile: call to RecursiveDirectoryIterator->getChildren()
|
* line 133 of \lib\testing\classes\tests_finder.php: call to FilterIterator->next()
|
* line 47 of \lib\testing\classes\tests_finder.php: call to tests_finder::get_all_directories_with_tests()
|
* line 72 of \lib\behat\classes\behat_config_manager.php: call to tests_finder::get_components_with_tests()
|
* line 214 of \lib\behat\classes\util.php: call to behat_config_manager::update_config_file()
|
* line 172 of \admin\tool\behat\cli\util_single_run.php: call to behat_util::start_test_mode()
|
!!
|
Error enabling site
|
|
C:\Users\tjh238\workspace\moodle_head> php admin/tool/behat/cli/init.php
|
You are already using composer version 03299ff075236be27be356498d6c64def973fe41.
|
Loading composer repositories with package information
|
Installing dependencies (including require-dev) from lock file
|
Nothing to install or update
|
Generating autoload files
|
Behat test environment already installed
|
|\\tests\\behat\\.*\.feature$|
|
Default exception handler: Exception - RecursiveDirectoryIterator::__construct([dirroot]\node_modules\grunt-contrib-uglify\node_modules\maxmin\node_modules\pretty-bytes\node_modules\meow\node_modules\read-pkg-up\node_modules\read-pkg\node_modules\load-json-file\node_modules\pinkie-promise\node_modules\pinkie,[dirroot]\node_modules\grunt-contrib-uglify\node_modules\maxmin\node_modules\pretty-bytes\node_modules\meow\node_modules\read-pkg-up\node_modules\read-pkg\node_modules\load-json-file\node_modules\pinkie-promise\node_modules\pinkie): The system cannot find the path specified. (code: 3) Debug:
|
Error code: generalexceptionmessage
|
* line 134 of \lib\testing\classes\tests_finder.php: UnexpectedValueException thrown
|
* line ? of unknownfile: call to RecursiveDirectoryIterator->__construct()
|
* line ? of unknownfile: call to RecursiveDirectoryIterator->getChildren()
|
* line 134 of \lib\testing\classes\tests_finder.php: call to FilterIterator->next()
|
* line 47 of \lib\testing\classes\tests_finder.php: call to tests_finder::get_all_directories_with_tests()
|
* line 72 of \lib\behat\classes\behat_config_manager.php: call to tests_finder::get_components_with_tests()
|
* line 214 of \lib\behat\classes\util.php: call to behat_config_manager::update_config_file()
|
* line 172 of \admin\tool\behat\cli\util_single_run.php: call to behat_util::start_test_mode()
|
|
!!! Exception - RecursiveDirectoryIterator::__construct([dirroot]\node_modules\grunt-contrib-uglify\node_modules\maxmin\node_modules\pretty-bytes\node_modules\meow\node_modules\read-pkg-up\node_modules\read-pkg\node_modules\load-json-file\node_modules\pinkie-promise\node_modules\pinkie,[dirroot]\node_modules\grunt-contrib-uglify\node_modules\maxmin\node_modules\pretty-bytes\node_modules\meow\node_modules\read-pkg-up\node_modules\read-pkg\node_modules\load-json-file\node_modules\pinkie-promise\node_modules\pinkie): The system cannot find the path specified. (code: 3) !!!
|
!!
|
Error code: generalexceptionmessage !!
|
!! Stack trace: * line 134 of \lib\testing\classes\tests_finder.php: UnexpectedValueException thrown
|
* line ? of unknownfile: call to RecursiveDirectoryIterator->__construct()
|
* line ? of unknownfile: call to RecursiveDirectoryIterator->getChildren()
|
* line 134 of \lib\testing\classes\tests_finder.php: call to FilterIterator->next()
|
* line 47 of \lib\testing\classes\tests_finder.php: call to tests_finder::get_all_directories_with_tests()
|
* line 72 of \lib\behat\classes\behat_config_manager.php: call to tests_finder::get_components_with_tests()
|
* line 214 of \lib\behat\classes\util.php: call to behat_config_manager::update_config_file()
|
* line 172 of \admin\tool\behat\cli\util_single_run.php: call to behat_util::start_test_mode()
|
!!
|
Error enabling site
|
The problem is the path
dir C:\Users\tjh238\workspace\moodle_head\node_modules\grunt-contrib-uglify\node_modules\maxmin\node_modules\pretty-bytes\node_modules\meow\node_modules\read-pkg-up\node_modules\read-pkg\node_modules\load-json-file\node_modules\pinkie-promise\node_modules\pinkie
That has 259 chars. If you strip off the \pinkie (252 chars), the command runs.
Strangely, it works in an msysgit command prompt.
- is a regression caused by
-
MDL-52250 Updating npm dependencies and move to shrinkwrap to finally actually fix versions
-
- Closed
-