Gert-dev / php-ide-serenata

Atom IDE package that integrates the Serenata server to provide PHP code assistance
https://serenata.gitlab.io/
Other
274 stars 19 forks source link

Serenata server crash #428

Closed y-morozov closed 6 years ago

y-morozov commented 6 years ago

Serenata crashed with a message:

You've likely hit a bug. Feel free to report it on the bug tracker. If you do, please include the information printed below.

The server will attempt to restart itself.

→ Message 1
Call to undefined method PhpParser\Node\Stmt\Interface_::isAnonymous()

→ Location 1
/Users/user/Library/Preferences/php-ide-serenata/core/4.0.1/src/Analysis/Visiting/OutlineFetchingVisitor.php:565

→ Backtrace 1
#0 /Users/user/Library/Preferences/php-ide-serenata/core/4.0.1/src/Analysis/Visiting/OutlineFetchingVisitor.php(412): Serenata\Analysis\Visiting\OutlineFetchingVisitor->getCurrentStructureFqcn()
#1 /Users/user/Library/Preferences/php-ide-serenata/core/4.0.1/src/Analysis/Visiting/OutlineFetchingVisitor.php(82): Serenata\Analysis\Visiting\OutlineFetchingVisitor->parseClassConstantNode(Object(PhpParser\Node\Stmt\ClassConst))
#2 /Users/user/Library/Preferences/php-ide-serenata/core/4.0.1/vendor/nikic/php-parser/lib/PhpParser/NodeTraverser.php(181): Serenata\Analysis\Visiting\OutlineFetchingVisitor->enterNode(Object(PhpParser\Node\Stmt\ClassConst))
#3 /Users/user/Library/Preferences/php-ide-serenata/core/4.0.1/vendor/nikic/php-parser/lib/PhpParser/NodeTraverser.php(108): PhpParser\NodeTraverser->traverseArray(Array)
#4 /Users/user/Library/Preferences/php-ide-serenata/core/4.0.1/vendor/nikic/php-parser/lib/PhpParser/NodeTraverser.php(200): PhpParser\NodeTraverser->traverseNode(Object(PhpParser\Node\Stmt\Interface_))
#5 /Users/user/Library/Preferences/php-ide-serenata/core/4.0.1/vendor/nikic/php-parser/lib/PhpParser/NodeTraverser.php(108): PhpParser\NodeTraverser->traverseArray(Array)
#6 /Users/user/Library/Preferences/php-ide-serenata/core/4.0.1/vendor/nikic/php-parser/lib/PhpParser/NodeTraverser.php(200): PhpParser\NodeTraverser->traverseNode(Object(PhpParser\Node\Stmt\Namespace_))
#7 /Users/user/Library/Preferences/php-ide-serenata/core/4.0.1/vendor/nikic/php-parser/lib/PhpParser/NodeTraverser.php(85): PhpParser\NodeTraverser->traverseArray(Array)
#8 /Users/user/Library/Preferences/php-ide-serenata/core/4.0.1/src/Linting/Linter.php(139): PhpParser\NodeTraverser->traverse(Array)
#9 /Users/user/Library/Preferences/php-ide-serenata/core/4.0.1/src/UserInterface/Command/LintCommand.php(107): Serenata\Linting\Linter->lint(Object(Serenata\Indexing\Structures\File), '<?php\ndeclare(s...', Object(Serenata\Linting\LintingSettings))
#10 /Users/user/Library/Preferences/php-ide-serenata/core/4.0.1/src/UserInterface/Command/LintCommand.php(90): Serenata\UserInterface\Command\LintCommand->lint('/Users/user/web...', '<?php\ndeclare(s...', Object(Serenata\Linting\LintingSettings))
#11 /Users/user/Library/Preferences/php-ide-serenata/core/4.0.1/src/Sockets/JsonRpcQueueItemProcessor.php(100): Serenata\UserInterface\Command\LintCommand->execute(Object(Serenata\Sockets\JsonRpcQueueItem))
#12 /Users/user/Library/Preferences/php-ide-serenata/core/4.0.1/src/Sockets/JsonRpcQueueItemProcessor.php(49): Serenata\Sockets\JsonRpcQueueItemProcessor->handle(Object(Serenata\Sockets\JsonRpcQueueItem))
#13 /Users/user/Library/Preferences/php-ide-serenata/core/4.0.1/src/UserInterface/JsonRpcApplication.php(130): Serenata\Sockets\JsonRpcQueueItemProcessor->process(Object(Serenata\Sockets\JsonRpcQueueItem))
#14 /Users/user/Library/Preferences/php-ide-serenata/core/4.0.1/src/UserInterface/JsonRpcApplication.php(105): Serenata\UserInterface\JsonRpcApplication->processNextQueueItem()
#15 [internal function]: Serenata\UserInterface\JsonRpcApplication->Serenata\UserInterface\{closure}(Object(React\EventLoop\Timer\Timer))
#16 /Users/user/Library/Preferences/php-ide-serenata/core/4.0.1/vendor/react/event-loop/src/Timer/Timers.php(89): call_user_func(Object(Closure), Object(React\EventLoop\Timer\Timer))
#17 /Users/user/Library/Preferences/php-ide-serenata/core/4.0.1/vendor/react/event-loop/src/StreamSelectLoop.php(177): React\EventLoop\Timer\Timers->tick()
#18 /Users/user/Library/Preferences/php-ide-serenata/core/4.0.1/src/UserInterface/JsonRpcApplication.php(70): React\EventLoop\StreamSelectLoop->run()
#19 /Users/user/Library/Preferences/php-ide-serenata/core/4.0.1/src/Main.php(16): Serenata\UserInterface\JsonRpcApplication->run()
#20 {main}
Gert-dev commented 6 years ago

Hi.

Thanks for taking the time to report an issue. However, this is not a bug in this package, but in the Serenata server. Could you report it there instead? Thanks.