Skip to content
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

Zend\Code\Exception\RuntimeException No tokens were provided #1

Open
jtsternberg opened this issue Aug 3, 2015 · 1 comment
Open

Comments

@jtsternberg
Copy link

Tried using this library, but got this error each time.

$ php namespacer.phar map --mapfile map.php --source .
======================================================================
   The application has thrown an exception!
======================================================================
 Zend\Code\Exception\RuntimeException
 No tokens were provided
----------------------------------------------------------------------
phar:///Users/JT/Sites/dsgnwrks.pro/wp-content/mu-plugins/cmb2/namespacer.phar/vendor/zendframework/zend-code/Zend/Code/Scanner/TokenArrayScanner.php:2
#0 phar:///Users/JT/Sites/dsgnwrks.pro/wp-content/mu-plugins/cmb2/namespacer.phar/vendor/zendframework/zend-code/Zend/Code/Scanner/TokenArrayScanner.php(2): Zend\Code\Scanner\TokenArrayScanner->scan()
#1 phar:///Users/JT/Sites/dsgnwrks.pro/wp-content/mu-plugins/cmb2/namespacer.phar/src/Namespacer/Model/Mapper.php(2): Zend\Code\Scanner\TokenArrayScanner->getClassNames()
#2 phar:///Users/JT/Sites/dsgnwrks.pro/wp-content/mu-plugins/cmb2/namespacer.phar/src/Namespacer/Model/Mapper.php(2): Namespacer\Model\Mapper->getMapDataForFile('/Users/JT/Sites...')
#3 phar:///Users/JT/Sites/dsgnwrks.pro/wp-content/mu-plugins/cmb2/namespacer.phar/src/Namespacer/Controller/Controller.php(2): Namespacer\Model\Mapper->getMapDataForDirectory('.')
#4 phar:///Users/JT/Sites/dsgnwrks.pro/wp-content/mu-plugins/cmb2/namespacer.phar/vendor/zendframework/zend-mvc/Zend/Mvc/Controller/AbstractActionController.php(2): Namespacer\Controller\Controller->createMapAction()
#5 [internal function]: Zend\Mvc\Controller\AbstractActionController->onDispatch(Object(Zend\Mvc\MvcEvent))
#6 phar:///Users/JT/Sites/dsgnwrks.pro/wp-content/mu-plugins/cmb2/namespacer.phar/vendor/zendframework/zend-eventmanager/Zend/EventManager/EventManager.php(2): call_user_func(Array, Object(Zend\Mvc\MvcEvent))
#7 phar:///Users/JT/Sites/dsgnwrks.pro/wp-content/mu-plugins/cmb2/namespacer.phar/vendor/zendframework/zend-eventmanager/Zend/EventManager/EventManager.php(2): Zend\EventManager\EventManager->triggerListeners('dispatch', Object(Zend\Mvc\MvcEvent), Object(Closure))
#8 phar:///Users/JT/Sites/dsgnwrks.pro/wp-content/mu-plugins/cmb2/namespacer.phar/vendor/zendframework/zend-mvc/Zend/Mvc/Controller/AbstractController.php(2): Zend\EventManager\EventManager->trigger('dispatch', Object(Zend\Mvc\MvcEvent), Object(Closure))
#9 phar:///Users/JT/Sites/dsgnwrks.pro/wp-content/mu-plugins/cmb2/namespacer.phar/vendor/zendframework/zend-mvc/Zend/Mvc/DispatchListener.php(2): Zend\Mvc\Controller\AbstractController->dispatch(Object(Zend\Console\Request), Object(Zend\Console\Response))
#10 [internal function]: Zend\Mvc\DispatchListener->onDispatch(Object(Zend\Mvc\MvcEvent))
#11 phar:///Users/JT/Sites/dsgnwrks.pro/wp-content/mu-plugins/cmb2/namespacer.phar/vendor/zendframework/zend-eventmanager/Zend/EventManager/EventManager.php(2): call_user_func(Array, Object(Zend\Mvc\MvcEvent))
#12 phar:///Users/JT/Sites/dsgnwrks.pro/wp-content/mu-plugins/cmb2/namespacer.phar/vendor/zendframework/zend-eventmanager/Zend/EventManager/EventManager.php(2): Zend\EventManager\EventManager->triggerListeners('dispatch', Object(Zend\Mvc\MvcEvent), Object(Closure))
#13 phar:///Users/JT/Sites/dsgnwrks.pro/wp-content/mu-plugins/cmb2/namespacer.phar/vendor/zendframework/zend-mvc/Zend/Mvc/Application.php(2): Zend\EventManager\EventManager->trigger('dispatch', Object(Zend\Mvc\MvcEvent), Object(Closure))
#14 phar:///Users/JT/Sites/dsgnwrks.pro/wp-content/mu-plugins/cmb2/namespacer.phar/namespacer.php(2): Zend\Mvc\Application->run()
#15 /Users/JT/Sites/dsgnwrks.pro/wp-content/mu-plugins/cmb2/namespacer.phar(7): require('phar:///Users/J...')
#16 {main}
======================================================================
   Previous Exception(s):
======================================================================
@mbelatar
Copy link

mbelatar commented Jan 18, 2017

Hi,
Just delete all Empty Files.
Effacez les fichiers vides.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants