simoebenhida / laravel-intellisense

Laravel VScode extension
https://marketplace.visualstudio.com/items?itemName=mohamedbenhida.laravel-intellisense
MIT License
163 stars 5 forks source link

Error in Lumen #38

Open gpibarra opened 3 years ago

gpibarra commented 3 years ago
local.ERROR: Symfony\Component\ErrorHandler\Error\FatalError: Uncaught Error: Call to undefined function app_path() in Command line code:1
Stack trace:
#0 {main}
  thrown in Command line code:1
Stack trace:
#0 \\vendor\laravel\lumen-framework\src\Concerns\RegistersExceptionHandlers.php(80): Symfony\Component\ErrorHandler\Error\FatalError->__construct(''Uncaught Error...', '0', '['type' => 1, '...', '0', '???', '???')
#1 \\vendor\laravel\lumen-framework\src\Concerns\RegistersExceptionHandlers.php(67): Laravel\Lumen\Application->fatalErrorFromPhpError('['type' => 1, '...', '0')
#2 \\vendor\laravel\lumen-framework\src\Concerns\RegistersExceptionHandlers.php(55): Laravel\Lumen\Application->handleShutdown()
#3 \\vendor\laravel\lumen-framework\src\Concerns\RegistersExceptionHandlers.php(0): Laravel\Lumen\Application->Laravel\Lumen\Concerns\{closure:\\vendor\laravel\lumen-framework\src\Concerns\RegistersExceptionHandlers.php:54-56}()
#4 {main} {"exception":"[object] (Symfony\\Component\\ErrorHandler\\Error\\FatalError(code: 0): Uncaught Error: Call to undefined function app_path() in Command line code:1
Stack trace:
#0 {main}
  thrown at Command line code:1)
[stacktrace]
#0 \\vendor\\laravel\\lumen-framework\\src\\Concerns\\RegistersExceptionHandlers.php(80): Symfony\\Component\\ErrorHandler\\Error\\FatalError->__construct(''Uncaught Error...', '0', '['type' => 1, '...', '0', '???', '???')
#1 \\vendor\\laravel\\lumen-framework\\src\\Concerns\\RegistersExceptionHandlers.php(67): Laravel\\Lumen\\Application->fatalErrorFromPhpError('['type' => 1, '...', '0')
#2 \\vendor\\laravel\\lumen-framework\\src\\Concerns\\RegistersExceptionHandlers.php(55): Laravel\\Lumen\\Application->handleShutdown()
#3 \\vendor\\laravel\\lumen-framework\\src\\Concerns\\RegistersExceptionHandlers.php(0): Laravel\\Lumen\\Application->Laravel\\Lumen\\Concerns\\{closure:\\\\vendor\\laravel\\lumen-framework\\src\\Concerns\\RegistersExceptionHandlers.php:54-56}()
#4 {main}
"} 
simoebenhida commented 3 years ago

Thanks for reporting the issue! Will give it a try on Lumen!