Open HawkiesZA opened 1 year ago
I wanted to try phpactor with the VSCode extension and I'm getting the exact same error.
Running :
VS Code does this in some cases, where it sends a decimal instead of int in some messages.
Can you enable message tracing and show me a few messages before the exception. To enable it, set phpactor.trace.server
setting to verbose
.
Hm. When I look at it again, this should already have been fixed in vscode. @Gog0 can you paste the exception if it goes over Diagnostic.php
...
@zobo thanks for your quick answer. I thought it was all broken but apparently it doesn't crash on every files, I was unlucky with the first file I opened with the extension installed.
I set to verbose and here is the (long) output I get when I open the problematic file (I removed the code from the whole class that was printed in the output as it's a customer project) :
I can't say it helps me understand the problem, but I'll investigate a bit more to try to figure out what's happening.
[Trace - 20:56:13] Sending request 'initialize - (0)'.
Params: {
"processId": 404816,
"clientInfo": {
"name": "vscode",
"version": "1.86.2"
},
"rootPath": "/home/azerty/project",
"rootUri": "file:///home/azerty/project",
"capabilities": {
"workspace": {
"applyEdit": true,
"workspaceEdit": {
"documentChanges": true,
"resourceOperations": [
"create",
"rename",
"delete"
],
"failureHandling": "textOnlyTransactional"
},
"didChangeConfiguration": {
"dynamicRegistration": true
},
"didChangeWatchedFiles": {
"dynamicRegistration": true
},
"symbol": {
"dynamicRegistration": true,
"symbolKind": {
"valueSet": [
1,
2,
3,
4,
5,
6,
7,
8,
9,
10,
11,
12,
13,
14,
15,
16,
17,
18,
19,
20,
21,
22,
23,
24,
25,
26
]
}
},
"executeCommand": {
"dynamicRegistration": true
},
"configuration": true,
"workspaceFolders": true
},
"textDocument": {
"publishDiagnostics": {
"relatedInformation": true,
"versionSupport": false,
"tagSupport": {
"valueSet": [
1,
2
]
}
},
"synchronization": {
"dynamicRegistration": true,
"willSave": true,
"willSaveWaitUntil": true,
"didSave": true
},
"completion": {
"dynamicRegistration": true,
"contextSupport": true,
"completionItem": {
"snippetSupport": true,
"commitCharactersSupport": true,
"documentationFormat": [
"markdown",
"plaintext"
],
"deprecatedSupport": true,
"preselectSupport": true,
"tagSupport": {
"valueSet": [
1
]
}
},
"completionItemKind": {
"valueSet": [
1,
2,
3,
4,
5,
6,
7,
8,
9,
10,
11,
12,
13,
14,
15,
16,
17,
18,
19,
20,
21,
22,
23,
24,
25
]
}
},
"hover": {
"dynamicRegistration": true,
"contentFormat": [
"markdown",
"plaintext"
]
},
"signatureHelp": {
"dynamicRegistration": true,
"signatureInformation": {
"documentationFormat": [
"markdown",
"plaintext"
],
"parameterInformation": {
"labelOffsetSupport": true
}
},
"contextSupport": true
},
"definition": {
"dynamicRegistration": true,
"linkSupport": true
},
"references": {
"dynamicRegistration": true
},
"documentHighlight": {
"dynamicRegistration": true
},
"documentSymbol": {
"dynamicRegistration": true,
"symbolKind": {
"valueSet": [
1,
2,
3,
4,
5,
6,
7,
8,
9,
10,
11,
12,
13,
14,
15,
16,
17,
18,
19,
20,
21,
22,
23,
24,
25,
26
]
},
"hierarchicalDocumentSymbolSupport": true
},
"codeAction": {
"dynamicRegistration": true,
"isPreferredSupport": true,
"codeActionLiteralSupport": {
"codeActionKind": {
"valueSet": [
"",
"quickfix",
"refactor",
"refactor.extract",
"refactor.inline",
"refactor.rewrite",
"source",
"source.organizeImports"
]
}
}
},
"codeLens": {
"dynamicRegistration": true
},
"formatting": {
"dynamicRegistration": true
},
"rangeFormatting": {
"dynamicRegistration": true
},
"onTypeFormatting": {
"dynamicRegistration": true
},
"rename": {
"dynamicRegistration": true,
"prepareSupport": true
},
"documentLink": {
"dynamicRegistration": true,
"tooltipSupport": true
},
"typeDefinition": {
"dynamicRegistration": true,
"linkSupport": true
},
"implementation": {
"dynamicRegistration": true,
"linkSupport": true
},
"colorProvider": {
"dynamicRegistration": true
},
"foldingRange": {
"dynamicRegistration": true,
"rangeLimit": 5000,
"lineFoldingOnly": true
},
"declaration": {
"dynamicRegistration": true,
"linkSupport": true
},
"selectionRange": {
"dynamicRegistration": true
}
},
"window": {
"workDoneProgress": true
}
},
"initializationOptions": {},
"trace": "verbose",
"workspaceFolders": [
{
"uri": "file:///home/azerty/project",
"name": "project"
}
]
}
Starting language server, use -vvv for verbose output
[Trace - 20:56:13] Received response 'initialize - (0)' in 209ms.
Result: {
"capabilities": {
"textDocumentSync": 1,
"completionProvider": {
"triggerCharacters": [
":",
">",
"$",
"[",
"@",
"(",
"'",
"\"",
"\\"
],
"resolveProvider": true
},
"hoverProvider": true,
"signatureHelpProvider": {
"triggerCharacters": [
"(",
",",
"@"
]
},
"definitionProvider": true,
"typeDefinitionProvider": true,
"implementationProvider": true,
"referencesProvider": true,
"documentHighlightProvider": true,
"documentSymbolProvider": true,
"codeActionProvider": {
"codeActionKinds": [
"refactor.class.simplify",
"quickfix.import_class",
"quickfix.promote_constructor",
"quickfix.promote_constructor_public",
"quickfix.complete_constructor",
"quickfix.complete_constructor_public",
"quickfix.add_missing_class_generic",
"quickfix.create_class",
"quickfix.create_unresolable_class",
"quickfix.correct_variable_name",
"quickfix.add_missing_properties",
"quickfix.implement_contracts",
"quickfix.fix_namespace_class_name",
"quickfix.add_missing_docblocks_return",
"quickfix.add_missing_params",
"quickfix.add_missing_return_types",
"quickfix.remove_unused_imports",
"quickfix.generate_member",
"refactor.extract.method",
"refactor.extract.constant",
"quickfix.generate_accessors",
"quickfix.generate_mutators",
"refactor.extract.expression",
"quickfix.fill.object",
"quickfix.fill.matchArms",
"refactor",
"quickfix.generate_decorator"
]
},
"workspaceSymbolProvider": true,
"renameProvider": {
"prepareProvider": true
},
"selectionRangeProvider": true,
"executeCommandProvider": {
"commands": [
"name_import",
"transform",
"create_class",
"generate_member",
"extract_method",
"replace_qualifier_with_import",
"extract_constant",
"generate_accessors",
"generate_mutators",
"import_all_unresolved_names",
"extract_expression",
"generate_decorator"
]
},
"workspace": {
"fileOperations": {
"willRename": {
"filters": [
{
"pattern": {
"glob": "**/*.php"
}
}
]
}
}
}
},
"serverInfo": {
"name": "phpactor/phpactor",
"version": "dev-master"
}
}
[Trace - 20:56:13] Sending notification 'initialized'.
Params: {}
[Trace - 20:56:13] Sending notification 'textDocument/didOpen'.
Params: {
"textDocument": {
"uri": "file:///home/azerty/project/src/Manager/MarketPlace/MarketPlaceManager.php",
"languageId": "php",
"version": 1,
"text": "MY CODE"
}
}
[Trace - 20:56:13] Received request 'client/registerCapability - (aedafab9-1479-4a01-9105-96b43fdd7623)'.
Params: {
"registrations": [
{
"id": "e59c4069-0aad-4060-906d-b84bb7d7ec58",
"method": "workspace/didChangeWatchedFiles",
"registerOptions": {
"watchers": [
{
"globPattern": "**/*.php"
}
]
}
}
]
}
[Trace - 20:56:13] Sending response 'client/registerCapability - (aedafab9-1479-4a01-9105-96b43fdd7623)'. Processing request took 0ms
No result returned.
[Trace - 20:56:13] Sending request 'textDocument/documentSymbol - (1)'.
Params: {
"textDocument": {
"uri": "file:///home/azerty/project/src/Manager/MarketPlace/MarketPlaceManager.php"
}
}
[Trace - 20:56:13] Sending request 'textDocument/codeAction - (2)'.
Params: {
"textDocument": {
"uri": "file:///home/azerty/project/src/Manager/MarketPlace/MarketPlaceManager.php"
},
"range": {
"start": {
"line": 414,
"character": 75
},
"end": {
"line": 451,
"character": 74
}
},
"context": {
"diagnostics": [
{
"range": {
"start": {
"line": 431,
"character": 57
},
"end": {
"line": 431,
"character": 57
}
},
"message": "Line exceeds 120 characters; contains 122 characters",
"severity": 2,
"source": "phpcs"
}
]
}
}
[Trace - 20:56:14] Sending request 'textDocument/codeAction - (3)'.
Params: {
"textDocument": {
"uri": "file:///home/azerty/project/src/Manager/MarketPlace/MarketPlaceManager.php"
},
"range": {
"start": {
"line": 414,
"character": 75
},
"end": {
"line": 451,
"character": 74
}
},
"context": {
"diagnostics": [
{
"range": {
"start": {
"line": 431,
"character": 57
},
"end": {
"line": 431,
"character": 57
}
},
"message": "Line exceeds 120 characters; contains 122 characters",
"severity": 2,
"source": "phpcs"
}
]
}
}
[Trace - 20:56:14] Sending notification '$/cancelRequest'.
Params: {
"id": 2
}
[Trace - 20:56:14] Sending request 'textDocument/codeAction - (4)'.
Params: {
"textDocument": {
"uri": "file:///home/azerty/project/src/Manager/MarketPlace/MarketPlaceManager.php"
},
"range": {
"start": {
"line": 414,
"character": 75
},
"end": {
"line": 451,
"character": 74
}
},
"context": {
"diagnostics": [
{
"range": {
"start": {
"line": 451,
"character": 0
},
"end": {
"line": 451,
"character": 1.7976931348623157e+308
}
},
"message": "Avoid excessively long variable names like $marketPlaceContractPayment. Keep variable name length under 20.",
"severity": 3,
"source": "PHP Mess Detector"
},
{
"range": {
"start": {
"line": 431,
"character": 57
},
"end": {
"line": 431,
"character": 57
}
},
"message": "Line exceeds 120 characters; contains 122 characters",
"severity": 2,
"source": "phpcs"
}
]
}
}
[Trace - 20:56:14] Sending notification '$/cancelRequest'.
Params: {
"id": 3
}
[Trace - 20:56:14] Received request 'window/workDoneProgress/create - (8922cfc7-fc01-4b4c-971a-b980f0537ba9)'.
Params: {
"token": "43470f4e-4b81-4eed-95ac-29e1c3ff246a"
}
[Trace - 20:56:14] Sending response 'window/workDoneProgress/create - (8922cfc7-fc01-4b4c-971a-b980f0537ba9)'. Processing request took 0ms
No result returned.
[Trace - 20:56:14] Received response 'textDocument/documentSymbol - (1)' in 952ms.
Result: [
{
"name": "MarketPlaceManager",
"kind": 5,
"range": {
"start": {
"line": 38,
"character": 0
},
"end": {
"line": 483,
"character": 1
}
},
"selectionRange": {
"start": {
"line": 38,
"character": 6
},
"end": {
"line": 38,
"character": 24
}
},
"children": [
{
"name": "entityManager",
"kind": 7,
"range": {
"start": {
"line": 45,
"character": 35
},
"end": {
"line": 45,
"character": 49
}
},
"selectionRange": {
"start": {
"line": 45,
"character": 35
},
"end": {
"line": 45,
"character": 49
}
},
"children": []
},
{
"name": "carrierManager",
"kind": 7,
"range": {
"start": {
"line": 47,
"character": 27
},
"end": {
"line": 47,
"character": 42
}
},
"selectionRange": {
"start": {
"line": 47,
"character": 27
},
"end": {
"line": 47,
"character": 42
}
},
"children": []
},
{
"name": "documentCalculator",
"kind": 7,
"range": {
"start": {
"line": 49,
"character": 31
},
"end": {
"line": 49,
"character": 50
}
},
"selectionRange": {
"start": {
"line": 49,
"character": 31
},
"end": {
"line": 49,
"character": 50
}
},
"children": []
},
{
"name": "documentManager",
"kind": 7,
"range": {
"start": {
"line": 51,
"character": 28
},
"end": {
"line": 51,
"character": 44
}
},
"selectionRange": {
"start": {
"line": 51,
"character": 28
},
"end": {
"line": 51,
"character": 44
}
},
"children": []
},
{
"name": "documentRegistry",
"kind": 7,
"range": {
"start": {
"line": 53,
"character": 29
},
"end": {
"line": 53,
"character": 46
}
},
"selectionRange": {
"start": {
"line": 53,
"character": 29
},
"end": {
"line": 53,
"character": 46
}
},
"children": []
},
{
"name": "productManager",
"kind": 7,
"range": {
"start": {
"line": 55,
"character": 27
},
"end": {
"line": 55,
"character": 42
}
},
"selectionRange": {
"start": {
"line": 55,
"character": 27
},
"end": {
"line": 55,
"character": 42
}
},
"children": []
},
{
"name": "shippingCostManager",
"kind": 7,
"range": {
"start": {
"line": 57,
"character": 32
},
"end": {
"line": 57,
"character": 52
}
},
"selectionRange": {
"start": {
"line": 57,
"character": 32
},
"end": {
"line": 57,
"character": 52
}
},
"children": []
},
{
"name": "__construct",
"kind": 9,
"range": {
"start": {
"line": 59,
"character": 4
},
"end": {
"line": 77,
"character": 5
}
},
"selectionRange": {
"start": {
"line": 59,
"character": 20
},
"end": {
"line": 59,
"character": 31
}
},
"children": []
},
{
"name": "getMarketPlaceHandler",
"kind": 6,
"range": {
"start": {
"line": 79,
"character": 4
},
"end": {
"line": 86,
"character": 5
}
},
"selectionRange": {
"start": {
"line": 79,
"character": 20
},
"end": {
"line": 79,
"character": 41
}
},
"children": []
},
{
"name": "importOrders",
"kind": 6,
"range": {
"start": {
"line": 88,
"character": 4
},
"end": {
"line": 482,
"character": 5
}
},
"selectionRange": {
"start": {
"line": 88,
"character": 20
},
"end": {
"line": 88,
"character": 32
}
},
"children": []
}
]
}
]
[Trace - 20:56:14] Received request 'window/workDoneProgress/create - (03f9e17e-f8bb-43eb-bf4e-956f523ef13e)'.
Params: {
"token": "4a64eecc-143d-4efc-a1e7-d3f3be5ada0c"
}
[Trace - 20:56:14] Sending response 'window/workDoneProgress/create - (03f9e17e-f8bb-43eb-bf4e-956f523ef13e)'. Processing request took 0ms
No result returned.
[Trace - 20:56:14] Received request 'window/workDoneProgress/create - (14bc86d7-c227-4fd6-9d3a-77c9e5f22fde)'.
Params: {
"token": "fc3e8a2f-bafb-4c63-8ec1-63adc93205b4"
}
[Trace - 20:56:14] Sending response 'window/workDoneProgress/create - (14bc86d7-c227-4fd6-9d3a-77c9e5f22fde)'. Processing request took 0ms
No result returned.
[Trace - 20:56:14] Received response 'textDocument/codeAction - (4)' in 372ms. Request failed: Exception [DTL\Invoke\Exception\InvalidParameterType] Argument "character" has type "int" but was passed "double" for "Phpactor\LanguageServerProtocol\Position#__construct" at /home/azerty/.config/Code/User/globalStorage/dantleech.vscode-phpactor/phpactor/vendor/dantleech/invoke/src/Internal/ArgumentAssert.php#52 (-32603).
Error data: "#0 /home/azerty/.config/Code/User/globalStorage/dantleech.vscode-phpactor/phpactor/vendor/dantleech/invoke/src/Invoke.php(120): DTL\\Invoke\\Internal\\ArgumentAssert::types()\n#1 /home/azerty/.config/Code/User/globalStorage/dantleech.vscode-phpactor/phpactor/vendor/dantleech/invoke/src/Invoke.php(77): DTL\\Invoke\\Invoke->instantiate()\n#2 /home/azerty/.config/Code/User/globalStorage/dantleech.vscode-phpactor/phpactor/vendor/dantleech/invoke/src/Invoke.php(43): DTL\\Invoke\\Invoke->doInstantiate()\n#3 /home/azerty/.config/Code/User/globalStorage/dantleech.vscode-phpactor/phpactor/vendor/phpactor/language-server-protocol/src/Position.php(122): DTL\\Invoke\\Invoke::new()\n#4 [internal function]: Phpactor\\LanguageServerProtocol\\Position::fromArray()\n#5 /home/azerty/.config/Code/User/globalStorage/dantleech.vscode-phpactor/phpactor/vendor/phpactor/language-server-protocol/src/Range.php(112): call_user_func_array()\n#6 /home/azerty/.config/Code/User/globalStorage/dantleech.vscode-phpactor/phpactor/vendor/phpactor/language-server-protocol/src/Range.php(96): Phpactor\\LanguageServerProtocol\\Range::invokeFromNames()\n#7 [internal function]: Phpactor\\LanguageServerProtocol\\Range::fromArray()\n#8 /home/azerty/.config/Code/User/globalStorage/dantleech.vscode-phpactor/phpactor/vendor/phpactor/language-server-protocol/src/Diagnostic.php(179): call_user_func_array()\n#9 /home/azerty/.config/Code/User/globalStorage/dantleech.vscode-phpactor/phpactor/vendor/phpactor/language-server-protocol/src/Diagnostic.php(163): Phpactor\\LanguageServerProtocol\\Diagnostic::invokeFromNames()\n#10 [internal function]: Phpactor\\LanguageServerProtocol\\Diagnostic::fromArray()\n#11 /home/azerty/.config/Code/User/globalStorage/dantleech.vscode-phpactor/phpactor/vendor/phpactor/language-server-protocol/src/CodeActionContext.php(120): call_user_func_array()\n#12 /home/azerty/.config/Code/User/globalStorage/dantleech.vscode-phpactor/phpactor/vendor/phpactor/language-server-protocol/src/CodeActionContext.php(98): Phpactor\\LanguageServerProtocol\\CodeActionContext::invokeFromNames()\n#13 [internal function]: Phpactor\\LanguageServerProtocol\\CodeActionContext::Phpactor\\LanguageServerProtocol\\{closure}()\n#14 /home/azerty/.config/Code/User/globalStorage/dantleech.vscode-phpactor/phpactor/vendor/phpactor/language-server-protocol/src/CodeActionContext.php(93): array_map()\n#15 [internal function]: Phpactor\\LanguageServerProtocol\\CodeActionContext::fromArray()\n#16 /home/azerty/.config/Code/User/globalStorage/dantleech.vscode-phpactor/phpactor/vendor/phpactor/language-server-protocol/src/CodeActionParams.php(135): call_user_func_array()\n#17 /home/azerty/.config/Code/User/globalStorage/dantleech.vscode-phpactor/phpactor/vendor/phpactor/language-server-protocol/src/CodeActionParams.php(119): Phpactor\\LanguageServerProtocol\\CodeActionParams::invokeFromNames()\n#18 [internal function]: Phpactor\\LanguageServerProtocol\\CodeActionParams::fromArray()\n#19 /home/azerty/.config/Code/User/globalStorage/dantleech.vscode-phpactor/phpactor/vendor/phpactor/language-server/lib/Core/Dispatcher/ArgumentResolver/LanguageSeverProtocolParamsResolver.php(84): ReflectionMethod->invoke()\n#20 /home/azerty/.config/Code/User/globalStorage/dantleech.vscode-phpactor/phpactor/vendor/phpactor/language-server/lib/Core/Dispatcher/ArgumentResolver/LanguageSeverProtocolParamsResolver.php(58): Phpactor\\LanguageServer\\Core\\Dispatcher\\ArgumentResolver\\LanguageSeverProtocolParamsResolver->doResolveArguments()\n#21 /home/azerty/.config/Code/User/globalStorage/dantleech.vscode-phpactor/phpactor/vendor/phpactor/language-server/lib/Core/Dispatcher/ArgumentResolver/ChainArgumentResolver.php(29): Phpactor\\LanguageServer\\Core\\Dispatcher\\ArgumentResolver\\LanguageSeverProtocolParamsResolver->resolveArguments()\n#22 /home/azerty/.config/Code/User/globalStorage/dantleech.vscode-phpactor/phpactor/vendor/phpactor/language-server/lib/Core/Handler/HandlerMethodRunner.php(83): Phpactor\\LanguageServer\\Core\\Dispatcher\\ArgumentResolver\\ChainArgumentResolver->resolveArguments()\n#23 [internal function]: Phpactor\\LanguageServer\\Core\\Handler\\HandlerMethodRunner->Phpactor\\LanguageServer\\Core\\Handler\\{closure}()\n#24 /home/azerty/.config/Code/User/globalStorage/dantleech.vscode-phpactor/phpactor/vendor/amphp/amp/lib/Coroutine.php(67): Generator->current()\n#25 /home/azerty/.config/Code/User/globalStorage/dantleech.vscode-phpactor/phpactor/vendor/amphp/amp/lib/functions.php(96): Amp\\Coroutine->__construct()\n#26 /home/azerty/.config/Code/User/globalStorage/dantleech.vscode-phpactor/phpactor/vendor/phpactor/language-server/lib/Core/Handler/HandlerMethodRunner.php(72): Amp\\call()\n#27 /home/azerty/.config/Code/User/globalStorage/dantleech.vscode-phpactor/phpactor/vendor/phpactor/language-server/lib/Middleware/HandlerMiddleware.php(38): Phpactor\\LanguageServer\\Core\\Handler\\HandlerMethodRunner->dispatch()\n#28 /home/azerty/.config/Code/User/globalStorage/dantleech.vscode-phpactor/phpactor/vendor/phpactor/language-server/lib/Core/Middleware/RequestHandler.php(37): Phpactor\\LanguageServer\\Middleware\\HandlerMiddleware->process()\n#29 /home/azerty/.config/Code/User/globalStorage/dantleech.vscode-phpactor/phpactor/vendor/phpactor/language-server/lib/Middleware/ResponseHandlingMiddleware.php(35): Phpactor\\LanguageServer\\Core\\Middleware\\RequestHandler->handle()\n#30 /home/azerty/.config/Code/User/globalStorage/dantleech.vscode-phpactor/phpactor/vendor/phpactor/language-server/lib/Core/Middleware/RequestHandler.php(37): Phpactor\\LanguageServer\\Middleware\\ResponseHandlingMiddleware->process()\n#31 /home/azerty/.config/Code/User/globalStorage/dantleech.vscode-phpactor/phpactor/vendor/phpactor/language-server/lib/Middleware/MethodAliasMiddleware.php(37): Phpactor\\LanguageServer\\Core\\Middleware\\RequestHandler->handle()\n#32 /home/azerty/.config/Code/User/globalStorage/dantleech.vscode-phpactor/phpactor/vendor/phpactor/language-server/lib/Core/Middleware/RequestHandler.php(37): Phpactor\\LanguageServer\\Middleware\\MethodAliasMiddleware->process()\n#33 /home/azerty/.config/Code/User/globalStorage/dantleech.vscode-phpactor/phpactor/vendor/phpactor/language-server/lib/Middleware/CancellationMiddleware.php(49): Phpactor\\LanguageServer\\Core\\Middleware\\RequestHandler->handle()\n#34 /home/azerty/.config/Code/User/globalStorage/dantleech.vscode-phpactor/phpactor/vendor/phpactor/language-server/lib/Core/Middleware/RequestHandler.php(37): Phpactor\\LanguageServer\\Middleware\\CancellationMiddleware->process()\n#35 /home/azerty/.config/Code/User/globalStorage/dantleech.vscode-phpactor/phpactor/vendor/phpactor/language-server/lib/Middleware/ShutdownMiddleware.php(68): Phpactor\\LanguageServer\\Core\\Middleware\\RequestHandler->handle()\n#36 /home/azerty/.config/Code/User/globalStorage/dantleech.vscode-phpactor/phpactor/vendor/phpactor/language-server/lib/Core/Middleware/RequestHandler.php(37): Phpactor\\LanguageServer\\Middleware\\ShutdownMiddleware->process()\n#37 /home/azerty/.config/Code/User/globalStorage/dantleech.vscode-phpactor/phpactor/vendor/phpactor/language-server/lib/Middleware/InitializeMiddleware.php(56): Phpactor\\LanguageServer\\Core\\Middleware\\RequestHandler->handle()\n#38 /home/azerty/.config/Code/User/globalStorage/dantleech.vscode-phpactor/phpactor/vendor/phpactor/language-server/lib/Core/Middleware/RequestHandler.php(37): Phpactor\\LanguageServer\\Middleware\\InitializeMiddleware->process()\n#39 /home/azerty/.config/Code/User/globalStorage/dantleech.vscode-phpactor/phpactor/vendor/phpactor/language-server/lib/Middleware/ErrorHandlingMiddleware.php(34): Phpactor\\LanguageServer\\Core\\Middleware\\RequestHandler->handle()\n#40 [internal function]: Phpactor\\LanguageServer\\Middleware\\ErrorHandlingMiddleware->Phpactor\\LanguageServer\\Middleware\\{closure}()\n#41 /home/azerty/.config/Code/User/globalStorage/dantleech.vscode-phpactor/phpactor/vendor/amphp/amp/lib/Coroutine.php(67): Generator->current()\n#42 /home/azerty/.config/Code/User/globalStorage/dantleech.vscode-phpactor/phpactor/vendor/amphp/amp/lib/functions.php(96): Amp\\Coroutine->__construct()\n#43 /home/azerty/.config/Code/User/globalStorage/dantleech.vscode-phpactor/phpactor/vendor/phpactor/language-server/lib/Middleware/ErrorHandlingMiddleware.php(32): Amp\\call()\n#44 /home/azerty/.config/Code/User/globalStorage/dantleech.vscode-phpactor/phpactor/vendor/phpactor/language-server/lib/Core/Middleware/RequestHandler.php(37): Phpactor\\LanguageServer\\Middleware\\ErrorHandlingMiddleware->process()\n#45 /home/azerty/.config/Code/User/globalStorage/dantleech.vscode-phpactor/phpactor/vendor/phpactor/language-server/lib/Core/Dispatcher/Dispatcher/MiddlewareDispatcher.php(29): Phpactor\\LanguageServer\\Core\\Middleware\\RequestHandler->handle()\n#46 /home/azerty/.config/Code/User/globalStorage/dantleech.vscode-phpactor/phpactor/vendor/phpactor/language-server/lib/Core/Server/LanguageServer.php(223): Phpactor\\LanguageServer\\Core\\Dispatcher\\Dispatcher\\MiddlewareDispatcher->dispatch()\n#47 [internal function]: Phpactor\\LanguageServer\\Core\\Server\\LanguageServer->Phpactor\\LanguageServer\\Core\\Server\\{closure}()\n#48 /home/azerty/.config/Code/User/globalStorage/dantleech.vscode-phpactor/phpactor/vendor/amphp/amp/lib/Coroutine.php(67): Generator->current()\n#49 /home/azerty/.config/Code/User/globalStorage/dantleech.vscode-phpactor/phpactor/vendor/amphp/amp/lib/functions.php(96): Amp\\Coroutine->__construct()\n#50 /home/azerty/.config/Code/User/globalStorage/dantleech.vscode-phpactor/phpactor/vendor/amphp/amp/lib/functions.php(121): Amp\\call()\n#51 /home/azerty/.config/Code/User/globalStorage/dantleech.vscode-phpactor/phpactor/vendor/phpactor/language-server/lib/Core/Server/LanguageServer.php(221): Amp\\asyncCall()\n#52 /home/azerty/.config/Code/User/globalStorage/dantleech.vscode-phpactor/phpactor/vendor/phpactor/language-server/lib/Core/Server/LanguageServer.php(214): Phpactor\\LanguageServer\\Core\\Server\\LanguageServer->dispatchRequest()\n#53 [internal function]: Phpactor\\LanguageServer\\Core\\Server\\LanguageServer->Phpactor\\LanguageServer\\Core\\Server\\{closure}()\n#54 /home/azerty/.config/Code/User/globalStorage/dantleech.vscode-phpactor/phpactor/vendor/amphp/amp/lib/Coroutine.php(118): Generator->send()\n#55 /home/azerty/.config/Code/User/globalStorage/dantleech.vscode-phpactor/phpactor/vendor/amphp/amp/lib/Internal/Placeholder.php(149): Amp\\Coroutine->Amp\\{closure}()\n#56 /home/azerty/.config/Code/User/globalStorage/dantleech.vscode-phpactor/phpactor/vendor/amphp/amp/lib/Coroutine.php(123): Amp\\Coroutine->resolve()\n#57 /home/azerty/.config/Code/User/globalStorage/dantleech.vscode-phpactor/phpactor/vendor/amphp/amp/lib/Internal/Placeholder.php(149): Amp\\Coroutine->Amp\\{closure}()\n#58 /home/azerty/.config/Code/User/globalStorage/dantleech.vscode-phpactor/phpactor/vendor/amphp/amp/lib/Deferred.php(53): Amp\\Promise@anonymous->resolve()\n#59 /home/azerty/.config/Code/User/globalStorage/dantleech.vscode-phpactor/phpactor/vendor/amphp/byte-stream/lib/ResourceInputStream.php(109): Amp\\Deferred->resolve()\n#60 /home/azerty/.config/Code/User/globalStorage/dantleech.vscode-phpactor/phpactor/vendor/amphp/amp/lib/Loop/Driver.php(119): Amp\\ByteStream\\ResourceInputStream::Amp\\ByteStream\\{closure}()\n#61 /home/azerty/.config/Code/User/globalStorage/dantleech.vscode-phpactor/phpactor/vendor/amphp/amp/lib/Loop/Driver.php(72): Amp\\Loop\\Driver->tick()\n#62 /home/azerty/.config/Code/User/globalStorage/dantleech.vscode-phpactor/phpactor/vendor/amphp/amp/lib/Loop.php(95): Amp\\Loop\\Driver->run()\n#63 /home/azerty/.config/Code/User/globalStorage/dantleech.vscode-phpactor/phpactor/vendor/phpactor/language-server/lib/Core/Server/LanguageServer.php(111): Amp\\Loop::run()\n#64 /home/azerty/.config/Code/User/globalStorage/dantleech.vscode-phpactor/phpactor/lib/Extension/LanguageServer/Command/StartCommand.php(50): Phpactor\\LanguageServer\\Core\\Server\\LanguageServer->run()\n#65 /home/azerty/.config/Code/User/globalStorage/dantleech.vscode-phpactor/phpactor/vendor/symfony/console/Command/Command.php(298): Phpactor\\Extension\\LanguageServer\\Command\\StartCommand->execute()\n#66 /home/azerty/.config/Code/User/globalStorage/dantleech.vscode-phpactor/phpactor/vendor/symfony/console/Application.php(1040): Symfony\\Component\\Console\\Command\\Command->run()\n#67 /home/azerty/.config/Code/User/globalStorage/dantleech.vscode-phpactor/phpactor/vendor/symfony/console/Application.php(301): Symfony\\Component\\Console\\Application->doRunCommand()\n#68 /home/azerty/.config/Code/User/globalStorage/dantleech.vscode-phpactor/phpactor/lib/Application.php(48): Symfony\\Component\\Console\\Application->doRun()\n#69 /home/azerty/.config/Code/User/globalStorage/dantleech.vscode-phpactor/phpactor/vendor/symfony/console/Application.php(171): Phpactor\\Application->doRun()\n#70 /home/azerty/.config/Code/User/globalStorage/dantleech.vscode-phpactor/phpactor/bin/phpactor(46): Symfony\\Component\\Console\\Application->run()\n#71 {main}"
[Error - 20:56:14] Request textDocument/codeAction failed.
Message: Exception [DTL\Invoke\Exception\InvalidParameterType] Argument "character" has type "int" but was passed "double" for "Phpactor\LanguageServerProtocol\Position#__construct" at /home/azerty/.config/Code/User/globalStorage/dantleech.vscode-phpactor/phpactor/vendor/dantleech/invoke/src/Internal/ArgumentAssert.php#52
Code: -32603
#0 /home/azerty/.config/Code/User/globalStorage/dantleech.vscode-phpactor/phpactor/vendor/dantleech/invoke/src/Invoke.php(120): DTL\Invoke\Internal\ArgumentAssert::types()
#1 /home/azerty/.config/Code/User/globalStorage/dantleech.vscode-phpactor/phpactor/vendor/dantleech/invoke/src/Invoke.php(77): DTL\Invoke\Invoke->instantiate()
#2 /home/azerty/.config/Code/User/globalStorage/dantleech.vscode-phpactor/phpactor/vendor/dantleech/invoke/src/Invoke.php(43): DTL\Invoke\Invoke->doInstantiate()
#3 /home/azerty/.config/Code/User/globalStorage/dantleech.vscode-phpactor/phpactor/vendor/phpactor/language-server-protocol/src/Position.php(122): DTL\Invoke\Invoke::new()
#4 [internal function]: Phpactor\LanguageServerProtocol\Position::fromArray()
#5 /home/azerty/.config/Code/User/globalStorage/dantleech.vscode-phpactor/phpactor/vendor/phpactor/language-server-protocol/src/Range.php(112): call_user_func_array()
#6 /home/azerty/.config/Code/User/globalStorage/dantleech.vscode-phpactor/phpactor/vendor/phpactor/language-server-protocol/src/Range.php(96): Phpactor\LanguageServerProtocol\Range::invokeFromNames()
#7 [internal function]: Phpactor\LanguageServerProtocol\Range::fromArray()
#8 /home/azerty/.config/Code/User/globalStorage/dantleech.vscode-phpactor/phpactor/vendor/phpactor/language-server-protocol/src/Diagnostic.php(179): call_user_func_array()
#9 /home/azerty/.config/Code/User/globalStorage/dantleech.vscode-phpactor/phpactor/vendor/phpactor/language-server-protocol/src/Diagnostic.php(163): Phpactor\LanguageServerProtocol\Diagnostic::invokeFromNames()
#10 [internal function]: Phpactor\LanguageServerProtocol\Diagnostic::fromArray()
#11 /home/azerty/.config/Code/User/globalStorage/dantleech.vscode-phpactor/phpactor/vendor/phpactor/language-server-protocol/src/CodeActionContext.php(120): call_user_func_array()
#12 /home/azerty/.config/Code/User/globalStorage/dantleech.vscode-phpactor/phpactor/vendor/phpactor/language-server-protocol/src/CodeActionContext.php(98): Phpactor\LanguageServerProtocol\CodeActionContext::invokeFromNames()
#13 [internal function]: Phpactor\LanguageServerProtocol\CodeActionContext::Phpactor\LanguageServerProtocol\{closure}()
#14 /home/azerty/.config/Code/User/globalStorage/dantleech.vscode-phpactor/phpactor/vendor/phpactor/language-server-protocol/src/CodeActionContext.php(93): array_map()
#15 [internal function]: Phpactor\LanguageServerProtocol\CodeActionContext::fromArray()
#16 /home/azerty/.config/Code/User/globalStorage/dantleech.vscode-phpactor/phpactor/vendor/phpactor/language-server-protocol/src/CodeActionParams.php(135): call_user_func_array()
#17 /home/azerty/.config/Code/User/globalStorage/dantleech.vscode-phpactor/phpactor/vendor/phpactor/language-server-protocol/src/CodeActionParams.php(119): Phpactor\LanguageServerProtocol\CodeActionParams::invokeFromNames()
#18 [internal function]: Phpactor\LanguageServerProtocol\CodeActionParams::fromArray()
#19 /home/azerty/.config/Code/User/globalStorage/dantleech.vscode-phpactor/phpactor/vendor/phpactor/language-server/lib/Core/Dispatcher/ArgumentResolver/LanguageSeverProtocolParamsResolver.php(84): ReflectionMethod->invoke()
#20 /home/azerty/.config/Code/User/globalStorage/dantleech.vscode-phpactor/phpactor/vendor/phpactor/language-server/lib/Core/Dispatcher/ArgumentResolver/LanguageSeverProtocolParamsResolver.php(58): Phpactor\LanguageServer\Core\Dispatcher\ArgumentResolver\LanguageSeverProtocolParamsResolver->doResolveArguments()
#21 /home/azerty/.config/Code/User/globalStorage/dantleech.vscode-phpactor/phpactor/vendor/phpactor/language-server/lib/Core/Dispatcher/ArgumentResolver/ChainArgumentResolver.php(29): Phpactor\LanguageServer\Core\Dispatcher\ArgumentResolver\LanguageSeverProtocolParamsResolver->resolveArguments()
#22 /home/azerty/.config/Code/User/globalStorage/dantleech.vscode-phpactor/phpactor/vendor/phpactor/language-server/lib/Core/Handler/HandlerMethodRunner.php(83): Phpactor\LanguageServer\Core\Dispatcher\ArgumentResolver\ChainArgumentResolver->resolveArguments()
#23 [internal function]: Phpactor\LanguageServer\Core\Handler\HandlerMethodRunner->Phpactor\LanguageServer\Core\Handler\{closure}()
#24 /home/azerty/.config/Code/User/globalStorage/dantleech.vscode-phpactor/phpactor/vendor/amphp/amp/lib/Coroutine.php(67): Generator->current()
#25 /home/azerty/.config/Code/User/globalStorage/dantleech.vscode-phpactor/phpactor/vendor/amphp/amp/lib/functions.php(96): Amp\Coroutine->__construct()
#26 /home/azerty/.config/Code/User/globalStorage/dantleech.vscode-phpactor/phpactor/vendor/phpactor/language-server/lib/Core/Handler/HandlerMethodRunner.php(72): Amp\call()
#27 /home/azerty/.config/Code/User/globalStorage/dantleech.vscode-phpactor/phpactor/vendor/phpactor/language-server/lib/Middleware/HandlerMiddleware.php(38): Phpactor\LanguageServer\Core\Handler\HandlerMethodRunner->dispatch()
#28 /home/azerty/.config/Code/User/globalStorage/dantleech.vscode-phpactor/phpactor/vendor/phpactor/language-server/lib/Core/Middleware/RequestHandler.php(37): Phpactor\LanguageServer\Middleware\HandlerMiddleware->process()
#29 /home/azerty/.config/Code/User/globalStorage/dantleech.vscode-phpactor/phpactor/vendor/phpactor/language-server/lib/Middleware/ResponseHandlingMiddleware.php(35): Phpactor\LanguageServer\Core\Middleware\RequestHandler->handle()
#30 /home/azerty/.config/Code/User/globalStorage/dantleech.vscode-phpactor/phpactor/vendor/phpactor/language-server/lib/Core/Middleware/RequestHandler.php(37): Phpactor\LanguageServer\Middleware\ResponseHandlingMiddleware->process()
#31 /home/azerty/.config/Code/User/globalStorage/dantleech.vscode-phpactor/phpactor/vendor/phpactor/language-server/lib/Middleware/MethodAliasMiddleware.php(37): Phpactor\LanguageServer\Core\Middleware\RequestHandler->handle()
#32 /home/azerty/.config/Code/User/globalStorage/dantleech.vscode-phpactor/phpactor/vendor/phpactor/language-server/lib/Core/Middleware/RequestHandler.php(37): Phpactor\LanguageServer\Middleware\MethodAliasMiddleware->process()
#33 /home/azerty/.config/Code/User/globalStorage/dantleech.vscode-phpactor/phpactor/vendor/phpactor/language-server/lib/Middleware/CancellationMiddleware.php(49): Phpactor\LanguageServer\Core\Middleware\RequestHandler->handle()
#34 /home/azerty/.config/Code/User/globalStorage/dantleech.vscode-phpactor/phpactor/vendor/phpactor/language-server/lib/Core/Middleware/RequestHandler.php(37): Phpactor\LanguageServer\Middleware\CancellationMiddleware->process()
#35 /home/azerty/.config/Code/User/globalStorage/dantleech.vscode-phpactor/phpactor/vendor/phpactor/language-server/lib/Middleware/ShutdownMiddleware.php(68): Phpactor\LanguageServer\Core\Middleware\RequestHandler->handle()
#36 /home/azerty/.config/Code/User/globalStorage/dantleech.vscode-phpactor/phpactor/vendor/phpactor/language-server/lib/Core/Middleware/RequestHandler.php(37): Phpactor\LanguageServer\Middleware\ShutdownMiddleware->process()
#37 /home/azerty/.config/Code/User/globalStorage/dantleech.vscode-phpactor/phpactor/vendor/phpactor/language-server/lib/Middleware/InitializeMiddleware.php(56): Phpactor\LanguageServer\Core\Middleware\RequestHandler->handle()
#38 /home/azerty/.config/Code/User/globalStorage/dantleech.vscode-phpactor/phpactor/vendor/phpactor/language-server/lib/Core/Middleware/RequestHandler.php(37): Phpactor\LanguageServer\Middleware\InitializeMiddleware->process()
#39 /home/azerty/.config/Code/User/globalStorage/dantleech.vscode-phpactor/phpactor/vendor/phpactor/language-server/lib/Middleware/ErrorHandlingMiddleware.php(34): Phpactor\LanguageServer\Core\Middleware\RequestHandler->handle()
#40 [internal function]: Phpactor\LanguageServer\Middleware\ErrorHandlingMiddleware->Phpactor\LanguageServer\Middleware\{closure}()
#41 /home/azerty/.config/Code/User/globalStorage/dantleech.vscode-phpactor/phpactor/vendor/amphp/amp/lib/Coroutine.php(67): Generator->current()
#42 /home/azerty/.config/Code/User/globalStorage/dantleech.vscode-phpactor/phpactor/vendor/amphp/amp/lib/functions.php(96): Amp\Coroutine->__construct()
#43 /home/azerty/.config/Code/User/globalStorage/dantleech.vscode-phpactor/phpactor/vendor/phpactor/language-server/lib/Middleware/ErrorHandlingMiddleware.php(32): Amp\call()
#44 /home/azerty/.config/Code/User/globalStorage/dantleech.vscode-phpactor/phpactor/vendor/phpactor/language-server/lib/Core/Middleware/RequestHandler.php(37): Phpactor\LanguageServer\Middleware\ErrorHandlingMiddleware->process()
#45 /home/azerty/.config/Code/User/globalStorage/dantleech.vscode-phpactor/phpactor/vendor/phpactor/language-server/lib/Core/Dispatcher/Dispatcher/MiddlewareDispatcher.php(29): Phpactor\LanguageServer\Core\Middleware\RequestHandler->handle()
#46 /home/azerty/.config/Code/User/globalStorage/dantleech.vscode-phpactor/phpactor/vendor/phpactor/language-server/lib/Core/Server/LanguageServer.php(223): Phpactor\LanguageServer\Core\Dispatcher\Dispatcher\MiddlewareDispatcher->dispatch()
#47 [internal function]: Phpactor\LanguageServer\Core\Server\LanguageServer->Phpactor\LanguageServer\Core\Server\{closure}()
#48 /home/azerty/.config/Code/User/globalStorage/dantleech.vscode-phpactor/phpactor/vendor/amphp/amp/lib/Coroutine.php(67): Generator->current()
#49 /home/azerty/.config/Code/User/globalStorage/dantleech.vscode-phpactor/phpactor/vendor/amphp/amp/lib/functions.php(96): Amp\Coroutine->__construct()
#50 /home/azerty/.config/Code/User/globalStorage/dantleech.vscode-phpactor/phpactor/vendor/amphp/amp/lib/functions.php(121): Amp\call()
#51 /home/azerty/.config/Code/User/globalStorage/dantleech.vscode-phpactor/phpactor/vendor/phpactor/language-server/lib/Core/Server/LanguageServer.php(221): Amp\asyncCall()
#52 /home/azerty/.config/Code/User/globalStorage/dantleech.vscode-phpactor/phpactor/vendor/phpactor/language-server/lib/Core/Server/LanguageServer.php(214): Phpactor\LanguageServer\Core\Server\LanguageServer->dispatchRequest()
#53 [internal function]: Phpactor\LanguageServer\Core\Server\LanguageServer->Phpactor\LanguageServer\Core\Server\{closure}()
#54 /home/azerty/.config/Code/User/globalStorage/dantleech.vscode-phpactor/phpactor/vendor/amphp/amp/lib/Coroutine.php(118): Generator->send()
#55 /home/azerty/.config/Code/User/globalStorage/dantleech.vscode-phpactor/phpactor/vendor/amphp/amp/lib/Internal/Placeholder.php(149): Amp\Coroutine->Amp\{closure}()
#56 /home/azerty/.config/Code/User/globalStorage/dantleech.vscode-phpactor/phpactor/vendor/amphp/amp/lib/Coroutine.php(123): Amp\Coroutine->resolve()
#57 /home/azerty/.config/Code/User/globalStorage/dantleech.vscode-phpactor/phpactor/vendor/amphp/amp/lib/Internal/Placeholder.php(149): Amp\Coroutine->Amp\{closure}()
#58 /home/azerty/.config/Code/User/globalStorage/dantleech.vscode-phpactor/phpactor/vendor/amphp/amp/lib/Deferred.php(53): Amp\Promise@anonymous->resolve()
#59 /home/azerty/.config/Code/User/globalStorage/dantleech.vscode-phpactor/phpactor/vendor/amphp/byte-stream/lib/ResourceInputStream.php(109): Amp\Deferred->resolve()
#60 /home/azerty/.config/Code/User/globalStorage/dantleech.vscode-phpactor/phpactor/vendor/amphp/amp/lib/Loop/Driver.php(119): Amp\ByteStream\ResourceInputStream::Amp\ByteStream\{closure}()
#61 /home/azerty/.config/Code/User/globalStorage/dantleech.vscode-phpactor/phpactor/vendor/amphp/amp/lib/Loop/Driver.php(72): Amp\Loop\Driver->tick()
#62 /home/azerty/.config/Code/User/globalStorage/dantleech.vscode-phpactor/phpactor/vendor/amphp/amp/lib/Loop.php(95): Amp\Loop\Driver->run()
#63 /home/azerty/.config/Code/User/globalStorage/dantleech.vscode-phpactor/phpactor/vendor/phpactor/language-server/lib/Core/Server/LanguageServer.php(111): Amp\Loop::run()
#64 /home/azerty/.config/Code/User/globalStorage/dantleech.vscode-phpactor/phpactor/lib/Extension/LanguageServer/Command/StartCommand.php(50): Phpactor\LanguageServer\Core\Server\LanguageServer->run()
#65 /home/azerty/.config/Code/User/globalStorage/dantleech.vscode-phpactor/phpactor/vendor/symfony/console/Command/Command.php(298): Phpactor\Extension\LanguageServer\Command\StartCommand->execute()
#66 /home/azerty/.config/Code/User/globalStorage/dantleech.vscode-phpactor/phpactor/vendor/symfony/console/Application.php(1040): Symfony\Component\Console\Command\Command->run()
#67 /home/azerty/.config/Code/User/globalStorage/dantleech.vscode-phpactor/phpactor/vendor/symfony/console/Application.php(301): Symfony\Component\Console\Application->doRunCommand()
#68 /home/azerty/.config/Code/User/globalStorage/dantleech.vscode-phpactor/phpactor/lib/Application.php(48): Symfony\Component\Console\Application->doRun()
#69 /home/azerty/.config/Code/User/globalStorage/dantleech.vscode-phpactor/phpactor/vendor/symfony/console/Application.php(171): Phpactor\Application->doRun()
#70 /home/azerty/.config/Code/User/globalStorage/dantleech.vscode-phpactor/phpactor/bin/phpactor(46): Symfony\Component\Console\Application->run()
#71 {main}
[Trace - 20:56:14] Received notification '$/progress'.
Params: {
"token": "43470f4e-4b81-4eed-95ac-29e1c3ff246a",
"value": {
"kind": "begin",
"title": "Indexing workspace",
"message": "0 PHP files",
"percentage": 0
}
}
[Trace - 20:56:14] Received notification '$/progress'.
Params: {
"token": "43470f4e-4b81-4eed-95ac-29e1c3ff246a",
"value": {
"kind": "end",
"message": "Done indexing (0.00s, 27/∞ mb), watching with pattern matching LSP file events"
}
}
[Trace - 20:56:14] Received notification '$/progress'.
Params: {
"token": "4a64eecc-143d-4efc-a1e7-d3f3be5ada0c",
"value": {
"kind": "begin",
"title": "Resolving code actions"
}
}
[Trace - 20:56:14] Received notification '$/progress'.
Params: {
"token": "fc3e8a2f-bafb-4c63-8ec1-63adc93205b4",
"value": {
"kind": "begin",
"title": "Resolving code actions"
}
}
[Trace - 20:56:14] Received notification '$/progress'.
Params: {
"token": "4a64eecc-143d-4efc-a1e7-d3f3be5ada0c",
"value": {
"kind": "end"
}
}
[Trace - 20:56:14] Received response 'textDocument/codeAction - (2)' in 963ms. Request failed: Request 2 (textDocument/codeAction) cancelled (-32800).
[Trace - 20:56:14] Received notification '$/progress'.
Params: {
"token": "fc3e8a2f-bafb-4c63-8ec1-63adc93205b4",
"value": {
"kind": "end"
}
}
[Trace - 20:56:14] Received response 'textDocument/codeAction - (3)' in 690ms. Request failed: Request 3 (textDocument/codeAction) cancelled (-32800).
[Trace - 20:56:16] Received notification 'textDocument/publishDiagnostics'.
Params: {
"uri": "file:///home/azerty/project/src/Manager/MarketPlace/MarketPlaceManager.php",
"version": 1,
"diagnostics": [
{
"range": {
"start": {
"line": 91,
"character": 88
},
"end": {
"line": 91,
"character": 102
}
},
"severity": 1,
"source": "phpactor",
"message": "Method \"getByCodeAlpha\" does not exist on class \"Doctrine\\ORM\\EntityRepository<object>\""
},
{
"range": {
"start": {
"line": 92,
"character": 72
},
"end": {
"line": 92,
"character": 85
}
},
"severity": 1,
"source": "phpactor",
"message": "Method \"getUserSystem\" does not exist on class \"Doctrine\\ORM\\EntityRepository<object>\""
},
{
"range": {
"start": {
"line": 100,
"character": 76
},
"end": {
"line": 100,
"character": 90
}
},
"severity": 1,
"source": "phpactor",
"message": "Method \"findOneByEmail\" does not exist on class \"Doctrine\\ORM\\EntityRepository<object>\""
},
{
"range": {
"start": {
"line": 167,
"character": 88
},
"end": {
"line": 167,
"character": 107
}
},
"severity": 1,
"source": "phpactor",
"message": "Method \"findIsDefaultByType\" does not exist on class \"Doctrine\\ORM\\EntityRepository<object>\""
},
{
"range": {
"start": {
"line": 171,
"character": 87
},
"end": {
"line": 171,
"character": 106
}
},
"severity": 1,
"source": "phpactor",
"message": "Method \"findIsDefaultByType\" does not exist on class \"Doctrine\\ORM\\EntityRepository<object>\""
},
{
"range": {
"start": {
"line": 178,
"character": 85
},
"end": {
"line": 178,
"character": 101
}
},
"severity": 1,
"source": "phpactor",
"message": "Method \"findExistAddress\" does not exist on class \"Doctrine\\ORM\\EntityRepository<object>\""
},
{
"range": {
"start": {
"line": 199,
"character": 89
},
"end": {
"line": 199,
"character": 105
}
},
"severity": 1,
"source": "phpactor",
"message": "Method \"findExistAddress\" does not exist on class \"Doctrine\\ORM\\EntityRepository<object>\""
},
{
"range": {
"start": {
"line": 208,
"character": 109
},
"end": {
"line": 208,
"character": 122
}
},
"severity": 1,
"source": "phpactor",
"message": "Method \"findByAddress\" does not exist on class \"Doctrine\\ORM\\EntityRepository<object>\""
},
{
"range": {
"start": {
"line": 253,
"character": 80
},
"end": {
"line": 253,
"character": 108
}
},
"severity": 1,
"source": "phpactor",
"message": "Method \"findByMarketPlaceProductCode\" does not exist on class \"Doctrine\\ORM\\EntityRepository<object>\""
},
{
"range": {
"start": {
"line": 259,
"character": 96
},
"end": {
"line": 259,
"character": 119
}
},
"severity": 1,
"source": "phpactor",
"message": "Method \"findByExternalReference\" does not exist on class \"Doctrine\\ORM\\EntityRepository<object>\""
},
{
"range": {
"start": {
"line": 308,
"character": 90
},
"end": {
"line": 308,
"character": 108
}
},
"severity": 1,
"source": "phpactor",
"message": "Method \"findDefaultOrFirst\" does not exist on class \"Doctrine\\ORM\\EntityRepository<object>\""
}
]
}
[Trace - 20:56:16] Sending request 'textDocument/codeAction - (5)'.
Params: {
"textDocument": {
"uri": "file:///home/azerty/project/src/Manager/MarketPlace/MarketPlaceManager.php"
},
"range": {
"start": {
"line": 414,
"character": 75
},
"end": {
"line": 451,
"character": 74
}
},
"context": {
"diagnostics": [
{
"range": {
"start": {
"line": 451,
"character": 0
},
"end": {
"line": 451,
"character": 1.7976931348623157e+308
}
},
"message": "Avoid excessively long variable names like $marketPlaceContractPayment. Keep variable name length under 20.",
"severity": 3,
"source": "PHP Mess Detector"
},
{
"range": {
"start": {
"line": 431,
"character": 57
},
"end": {
"line": 431,
"character": 57
}
},
"message": "Line exceeds 120 characters; contains 122 characters",
"severity": 2,
"source": "phpcs"
}
]
}
}
[Trace - 20:56:16] Received response 'textDocument/codeAction - (5)' in 3ms. Request failed: Exception [DTL\Invoke\Exception\InvalidParameterType] Argument "character" has type "int" but was passed "double" for "Phpactor\LanguageServerProtocol\Position#__construct" at /home/azerty/.config/Code/User/globalStorage/dantleech.vscode-phpactor/phpactor/vendor/dantleech/invoke/src/Internal/ArgumentAssert.php#52 (-32603).
Error data: "#0 /home/azerty/.config/Code/User/globalStorage/dantleech.vscode-phpactor/phpactor/vendor/dantleech/invoke/src/Invoke.php(120): DTL\\Invoke\\Internal\\ArgumentAssert::types()\n#1 /home/azerty/.config/Code/User/globalStorage/dantleech.vscode-phpactor/phpactor/vendor/dantleech/invoke/src/Invoke.php(77): DTL\\Invoke\\Invoke->instantiate()\n#2 /home/azerty/.config/Code/User/globalStorage/dantleech.vscode-phpactor/phpactor/vendor/dantleech/invoke/src/Invoke.php(43): DTL\\Invoke\\Invoke->doInstantiate()\n#3 /home/azerty/.config/Code/User/globalStorage/dantleech.vscode-phpactor/phpactor/vendor/phpactor/language-server-protocol/src/Position.php(122): DTL\\Invoke\\Invoke::new()\n#4 [internal function]: Phpactor\\LanguageServerProtocol\\Position::fromArray()\n#5 /home/azerty/.config/Code/User/globalStorage/dantleech.vscode-phpactor/phpactor/vendor/phpactor/language-server-protocol/src/Range.php(112): call_user_func_array()\n#6 /home/azerty/.config/Code/User/globalStorage/dantleech.vscode-phpactor/phpactor/vendor/phpactor/language-server-protocol/src/Range.php(96): Phpactor\\LanguageServerProtocol\\Range::invokeFromNames()\n#7 [internal function]: Phpactor\\LanguageServerProtocol\\Range::fromArray()\n#8 /home/azerty/.config/Code/User/globalStorage/dantleech.vscode-phpactor/phpactor/vendor/phpactor/language-server-protocol/src/Diagnostic.php(179): call_user_func_array()\n#9 /home/azerty/.config/Code/User/globalStorage/dantleech.vscode-phpactor/phpactor/vendor/phpactor/language-server-protocol/src/Diagnostic.php(163): Phpactor\\LanguageServerProtocol\\Diagnostic::invokeFromNames()\n#10 [internal function]: Phpactor\\LanguageServerProtocol\\Diagnostic::fromArray()\n#11 /home/azerty/.config/Code/User/globalStorage/dantleech.vscode-phpactor/phpactor/vendor/phpactor/language-server-protocol/src/CodeActionContext.php(120): call_user_func_array()\n#12 /home/azerty/.config/Code/User/globalStorage/dantleech.vscode-phpactor/phpactor/vendor/phpactor/language-server-protocol/src/CodeActionContext.php(98): Phpactor\\LanguageServerProtocol\\CodeActionContext::invokeFromNames()\n#13 [internal function]: Phpactor\\LanguageServerProtocol\\CodeActionContext::Phpactor\\LanguageServerProtocol\\{closure}()\n#14 /home/azerty/.config/Code/User/globalStorage/dantleech.vscode-phpactor/phpactor/vendor/phpactor/language-server-protocol/src/CodeActionContext.php(93): array_map()\n#15 [internal function]: Phpactor\\LanguageServerProtocol\\CodeActionContext::fromArray()\n#16 /home/azerty/.config/Code/User/globalStorage/dantleech.vscode-phpactor/phpactor/vendor/phpactor/language-server-protocol/src/CodeActionParams.php(135): call_user_func_array()\n#17 /home/azerty/.config/Code/User/globalStorage/dantleech.vscode-phpactor/phpactor/vendor/phpactor/language-server-protocol/src/CodeActionParams.php(119): Phpactor\\LanguageServerProtocol\\CodeActionParams::invokeFromNames()\n#18 [internal function]: Phpactor\\LanguageServerProtocol\\CodeActionParams::fromArray()\n#19 /home/azerty/.config/Code/User/globalStorage/dantleech.vscode-phpactor/phpactor/vendor/phpactor/language-server/lib/Core/Dispatcher/ArgumentResolver/LanguageSeverProtocolParamsResolver.php(84): ReflectionMethod->invoke()\n#20 /home/azerty/.config/Code/User/globalStorage/dantleech.vscode-phpactor/phpactor/vendor/phpactor/language-server/lib/Core/Dispatcher/ArgumentResolver/LanguageSeverProtocolParamsResolver.php(58): Phpactor\\LanguageServer\\Core\\Dispatcher\\ArgumentResolver\\LanguageSeverProtocolParamsResolver->doResolveArguments()\n#21 /home/azerty/.config/Code/User/globalStorage/dantleech.vscode-phpactor/phpactor/vendor/phpactor/language-server/lib/Core/Dispatcher/ArgumentResolver/ChainArgumentResolver.php(29): Phpactor\\LanguageServer\\Core\\Dispatcher\\ArgumentResolver\\LanguageSeverProtocolParamsResolver->resolveArguments()\n#22 /home/azerty/.config/Code/User/globalStorage/dantleech.vscode-phpactor/phpactor/vendor/phpactor/language-server/lib/Core/Handler/HandlerMethodRunner.php(83): Phpactor\\LanguageServer\\Core\\Dispatcher\\ArgumentResolver\\ChainArgumentResolver->resolveArguments()\n#23 [internal function]: Phpactor\\LanguageServer\\Core\\Handler\\HandlerMethodRunner->Phpactor\\LanguageServer\\Core\\Handler\\{closure}()\n#24 /home/azerty/.config/Code/User/globalStorage/dantleech.vscode-phpactor/phpactor/vendor/amphp/amp/lib/Coroutine.php(67): Generator->current()\n#25 /home/azerty/.config/Code/User/globalStorage/dantleech.vscode-phpactor/phpactor/vendor/amphp/amp/lib/functions.php(96): Amp\\Coroutine->__construct()\n#26 /home/azerty/.config/Code/User/globalStorage/dantleech.vscode-phpactor/phpactor/vendor/phpactor/language-server/lib/Core/Handler/HandlerMethodRunner.php(72): Amp\\call()\n#27 /home/azerty/.config/Code/User/globalStorage/dantleech.vscode-phpactor/phpactor/vendor/phpactor/language-server/lib/Middleware/HandlerMiddleware.php(38): Phpactor\\LanguageServer\\Core\\Handler\\HandlerMethodRunner->dispatch()\n#28 /home/azerty/.config/Code/User/globalStorage/dantleech.vscode-phpactor/phpactor/vendor/phpactor/language-server/lib/Core/Middleware/RequestHandler.php(37): Phpactor\\LanguageServer\\Middleware\\HandlerMiddleware->process()\n#29 /home/azerty/.config/Code/User/globalStorage/dantleech.vscode-phpactor/phpactor/vendor/phpactor/language-server/lib/Middleware/ResponseHandlingMiddleware.php(35): Phpactor\\LanguageServer\\Core\\Middleware\\RequestHandler->handle()\n#30 /home/azerty/.config/Code/User/globalStorage/dantleech.vscode-phpactor/phpactor/vendor/phpactor/language-server/lib/Core/Middleware/RequestHandler.php(37): Phpactor\\LanguageServer\\Middleware\\ResponseHandlingMiddleware->process()\n#31 /home/azerty/.config/Code/User/globalStorage/dantleech.vscode-phpactor/phpactor/vendor/phpactor/language-server/lib/Middleware/MethodAliasMiddleware.php(37): Phpactor\\LanguageServer\\Core\\Middleware\\RequestHandler->handle()\n#32 /home/azerty/.config/Code/User/globalStorage/dantleech.vscode-phpactor/phpactor/vendor/phpactor/language-server/lib/Core/Middleware/RequestHandler.php(37): Phpactor\\LanguageServer\\Middleware\\MethodAliasMiddleware->process()\n#33 /home/azerty/.config/Code/User/globalStorage/dantleech.vscode-phpactor/phpactor/vendor/phpactor/language-server/lib/Middleware/CancellationMiddleware.php(49): Phpactor\\LanguageServer\\Core\\Middleware\\RequestHandler->handle()\n#34 /home/azerty/.config/Code/User/globalStorage/dantleech.vscode-phpactor/phpactor/vendor/phpactor/language-server/lib/Core/Middleware/RequestHandler.php(37): Phpactor\\LanguageServer\\Middleware\\CancellationMiddleware->process()\n#35 /home/azerty/.config/Code/User/globalStorage/dantleech.vscode-phpactor/phpactor/vendor/phpactor/language-server/lib/Middleware/ShutdownMiddleware.php(68): Phpactor\\LanguageServer\\Core\\Middleware\\RequestHandler->handle()\n#36 /home/azerty/.config/Code/User/globalStorage/dantleech.vscode-phpactor/phpactor/vendor/phpactor/language-server/lib/Core/Middleware/RequestHandler.php(37): Phpactor\\LanguageServer\\Middleware\\ShutdownMiddleware->process()\n#37 /home/azerty/.config/Code/User/globalStorage/dantleech.vscode-phpactor/phpactor/vendor/phpactor/language-server/lib/Middleware/InitializeMiddleware.php(56): Phpactor\\LanguageServer\\Core\\Middleware\\RequestHandler->handle()\n#38 /home/azerty/.config/Code/User/globalStorage/dantleech.vscode-phpactor/phpactor/vendor/phpactor/language-server/lib/Core/Middleware/RequestHandler.php(37): Phpactor\\LanguageServer\\Middleware\\InitializeMiddleware->process()\n#39 /home/azerty/.config/Code/User/globalStorage/dantleech.vscode-phpactor/phpactor/vendor/phpactor/language-server/lib/Middleware/ErrorHandlingMiddleware.php(34): Phpactor\\LanguageServer\\Core\\Middleware\\RequestHandler->handle()\n#40 [internal function]: Phpactor\\LanguageServer\\Middleware\\ErrorHandlingMiddleware->Phpactor\\LanguageServer\\Middleware\\{closure}()\n#41 /home/azerty/.config/Code/User/globalStorage/dantleech.vscode-phpactor/phpactor/vendor/amphp/amp/lib/Coroutine.php(67): Generator->current()\n#42 /home/azerty/.config/Code/User/globalStorage/dantleech.vscode-phpactor/phpactor/vendor/amphp/amp/lib/functions.php(96): Amp\\Coroutine->__construct()\n#43 /home/azerty/.config/Code/User/globalStorage/dantleech.vscode-phpactor/phpactor/vendor/phpactor/language-server/lib/Middleware/ErrorHandlingMiddleware.php(32): Amp\\call()\n#44 /home/azerty/.config/Code/User/globalStorage/dantleech.vscode-phpactor/phpactor/vendor/phpactor/language-server/lib/Core/Middleware/RequestHandler.php(37): Phpactor\\LanguageServer\\Middleware\\ErrorHandlingMiddleware->process()\n#45 /home/azerty/.config/Code/User/globalStorage/dantleech.vscode-phpactor/phpactor/vendor/phpactor/language-server/lib/Core/Dispatcher/Dispatcher/MiddlewareDispatcher.php(29): Phpactor\\LanguageServer\\Core\\Middleware\\RequestHandler->handle()\n#46 /home/azerty/.config/Code/User/globalStorage/dantleech.vscode-phpactor/phpactor/vendor/phpactor/language-server/lib/Core/Server/LanguageServer.php(223): Phpactor\\LanguageServer\\Core\\Dispatcher\\Dispatcher\\MiddlewareDispatcher->dispatch()\n#47 [internal function]: Phpactor\\LanguageServer\\Core\\Server\\LanguageServer->Phpactor\\LanguageServer\\Core\\Server\\{closure}()\n#48 /home/azerty/.config/Code/User/globalStorage/dantleech.vscode-phpactor/phpactor/vendor/amphp/amp/lib/Coroutine.php(67): Generator->current()\n#49 /home/azerty/.config/Code/User/globalStorage/dantleech.vscode-phpactor/phpactor/vendor/amphp/amp/lib/functions.php(96): Amp\\Coroutine->__construct()\n#50 /home/azerty/.config/Code/User/globalStorage/dantleech.vscode-phpactor/phpactor/vendor/amphp/amp/lib/functions.php(121): Amp\\call()\n#51 /home/azerty/.config/Code/User/globalStorage/dantleech.vscode-phpactor/phpactor/vendor/phpactor/language-server/lib/Core/Server/LanguageServer.php(221): Amp\\asyncCall()\n#52 /home/azerty/.config/Code/User/globalStorage/dantleech.vscode-phpactor/phpactor/vendor/phpactor/language-server/lib/Core/Server/LanguageServer.php(214): Phpactor\\LanguageServer\\Core\\Server\\LanguageServer->dispatchRequest()\n#53 [internal function]: Phpactor\\LanguageServer\\Core\\Server\\LanguageServer->Phpactor\\LanguageServer\\Core\\Server\\{closure}()\n#54 /home/azerty/.config/Code/User/globalStorage/dantleech.vscode-phpactor/phpactor/vendor/amphp/amp/lib/Coroutine.php(118): Generator->send()\n#55 /home/azerty/.config/Code/User/globalStorage/dantleech.vscode-phpactor/phpactor/vendor/amphp/amp/lib/Internal/Placeholder.php(149): Amp\\Coroutine->Amp\\{closure}()\n#56 /home/azerty/.config/Code/User/globalStorage/dantleech.vscode-phpactor/phpactor/vendor/amphp/amp/lib/Coroutine.php(123): Amp\\Coroutine->resolve()\n#57 /home/azerty/.config/Code/User/globalStorage/dantleech.vscode-phpactor/phpactor/vendor/amphp/amp/lib/Internal/Placeholder.php(149): Amp\\Coroutine->Amp\\{closure}()\n#58 /home/azerty/.config/Code/User/globalStorage/dantleech.vscode-phpactor/phpactor/vendor/amphp/amp/lib/Deferred.php(53): Amp\\Promise@anonymous->resolve()\n#59 /home/azerty/.config/Code/User/globalStorage/dantleech.vscode-phpactor/phpactor/vendor/amphp/byte-stream/lib/ResourceInputStream.php(101): Amp\\Deferred->resolve()\n#60 /home/azerty/.config/Code/User/globalStorage/dantleech.vscode-phpactor/phpactor/vendor/amphp/amp/lib/Loop/NativeDriver.php(327): Amp\\ByteStream\\ResourceInputStream::Amp\\ByteStream\\{closure}()\n#61 /home/azerty/.config/Code/User/globalStorage/dantleech.vscode-phpactor/phpactor/vendor/amphp/amp/lib/Loop/NativeDriver.php(124): Amp\\Loop\\NativeDriver->selectStreams()\n#62 /home/azerty/.config/Code/User/globalStorage/dantleech.vscode-phpactor/phpactor/vendor/amphp/amp/lib/Loop/Driver.php(138): Amp\\Loop\\NativeDriver->dispatch()\n#63 /home/azerty/.config/Code/User/globalStorage/dantleech.vscode-phpactor/phpactor/vendor/amphp/amp/lib/Loop/Driver.php(72): Amp\\Loop\\Driver->tick()\n#64 /home/azerty/.config/Code/User/globalStorage/dantleech.vscode-phpactor/phpactor/vendor/amphp/amp/lib/Loop.php(95): Amp\\Loop\\Driver->run()\n#65 /home/azerty/.config/Code/User/globalStorage/dantleech.vscode-phpactor/phpactor/vendor/phpactor/language-server/lib/Core/Server/LanguageServer.php(111): Amp\\Loop::run()\n#66 /home/azerty/.config/Code/User/globalStorage/dantleech.vscode-phpactor/phpactor/lib/Extension/LanguageServer/Command/StartCommand.php(50): Phpactor\\LanguageServer\\Core\\Server\\LanguageServer->run()\n#67 /home/azerty/.config/Code/User/globalStorage/dantleech.vscode-phpactor/phpactor/vendor/symfony/console/Command/Command.php(298): Phpactor\\Extension\\LanguageServer\\Command\\StartCommand->execute()\n#68 /home/azerty/.config/Code/User/globalStorage/dantleech.vscode-phpactor/phpactor/vendor/symfony/console/Application.php(1040): Symfony\\Component\\Console\\Command\\Command->run()\n#69 /home/azerty/.config/Code/User/globalStorage/dantleech.vscode-phpactor/phpactor/vendor/symfony/console/Application.php(301): Symfony\\Component\\Console\\Application->doRunCommand()\n#70 /home/azerty/.config/Code/User/globalStorage/dantleech.vscode-phpactor/phpactor/lib/Application.php(48): Symfony\\Component\\Console\\Application->doRun()\n#71 /home/azerty/.config/Code/User/globalStorage/dantleech.vscode-phpactor/phpactor/vendor/symfony/console/Application.php(171): Phpactor\\Application->doRun()\n#72 /home/azerty/.config/Code/User/globalStorage/dantleech.vscode-phpactor/phpactor/bin/phpactor(46): Symfony\\Component\\Console\\Application->run()\n#73 {main}"
[Error - 20:56:16] Request textDocument/codeAction failed.
Message: Exception [DTL\Invoke\Exception\InvalidParameterType] Argument "character" has type "int" but was passed "double" for "Phpactor\LanguageServerProtocol\Position#__construct" at /home/azerty/.config/Code/User/globalStorage/dantleech.vscode-phpactor/phpactor/vendor/dantleech/invoke/src/Internal/ArgumentAssert.php#52
Code: -32603
#0 /home/azerty/.config/Code/User/globalStorage/dantleech.vscode-phpactor/phpactor/vendor/dantleech/invoke/src/Invoke.php(120): DTL\Invoke\Internal\ArgumentAssert::types()
#1 /home/azerty/.config/Code/User/globalStorage/dantleech.vscode-phpactor/phpactor/vendor/dantleech/invoke/src/Invoke.php(77): DTL\Invoke\Invoke->instantiate()
#2 /home/azerty/.config/Code/User/globalStorage/dantleech.vscode-phpactor/phpactor/vendor/dantleech/invoke/src/Invoke.php(43): DTL\Invoke\Invoke->doInstantiate()
#3 /home/azerty/.config/Code/User/globalStorage/dantleech.vscode-phpactor/phpactor/vendor/phpactor/language-server-protocol/src/Position.php(122): DTL\Invoke\Invoke::new()
#4 [internal function]: Phpactor\LanguageServerProtocol\Position::fromArray()
#5 /home/azerty/.config/Code/User/globalStorage/dantleech.vscode-phpactor/phpactor/vendor/phpactor/language-server-protocol/src/Range.php(112): call_user_func_array()
#6 /home/azerty/.config/Code/User/globalStorage/dantleech.vscode-phpactor/phpactor/vendor/phpactor/language-server-protocol/src/Range.php(96): Phpactor\LanguageServerProtocol\Range::invokeFromNames()
#7 [internal function]: Phpactor\LanguageServerProtocol\Range::fromArray()
#8 /home/azerty/.config/Code/User/globalStorage/dantleech.vscode-phpactor/phpactor/vendor/phpactor/language-server-protocol/src/Diagnostic.php(179): call_user_func_array()
#9 /home/azerty/.config/Code/User/globalStorage/dantleech.vscode-phpactor/phpactor/vendor/phpactor/language-server-protocol/src/Diagnostic.php(163): Phpactor\LanguageServerProtocol\Diagnostic::invokeFromNames()
#10 [internal function]: Phpactor\LanguageServerProtocol\Diagnostic::fromArray()
#11 /home/azerty/.config/Code/User/globalStorage/dantleech.vscode-phpactor/phpactor/vendor/phpactor/language-server-protocol/src/CodeActionContext.php(120): call_user_func_array()
#12 /home/azerty/.config/Code/User/globalStorage/dantleech.vscode-phpactor/phpactor/vendor/phpactor/language-server-protocol/src/CodeActionContext.php(98): Phpactor\LanguageServerProtocol\CodeActionContext::invokeFromNames()
#13 [internal function]: Phpactor\LanguageServerProtocol\CodeActionContext::Phpactor\LanguageServerProtocol\{closure}()
#14 /home/azerty/.config/Code/User/globalStorage/dantleech.vscode-phpactor/phpactor/vendor/phpactor/language-server-protocol/src/CodeActionContext.php(93): array_map()
#15 [internal function]: Phpactor\LanguageServerProtocol\CodeActionContext::fromArray()
#16 /home/azerty/.config/Code/User/globalStorage/dantleech.vscode-phpactor/phpactor/vendor/phpactor/language-server-protocol/src/CodeActionParams.php(135): call_user_func_array()
#17 /home/azerty/.config/Code/User/globalStorage/dantleech.vscode-phpactor/phpactor/vendor/phpactor/language-server-protocol/src/CodeActionParams.php(119): Phpactor\LanguageServerProtocol\CodeActionParams::invokeFromNames()
#18 [internal function]: Phpactor\LanguageServerProtocol\CodeActionParams::fromArray()
#19 /home/azerty/.config/Code/User/globalStorage/dantleech.vscode-phpactor/phpactor/vendor/phpactor/language-server/lib/Core/Dispatcher/ArgumentResolver/LanguageSeverProtocolParamsResolver.php(84): ReflectionMethod->invoke()
#20 /home/azerty/.config/Code/User/globalStorage/dantleech.vscode-phpactor/phpactor/vendor/phpactor/language-server/lib/Core/Dispatcher/ArgumentResolver/LanguageSeverProtocolParamsResolver.php(58): Phpactor\LanguageServer\Core\Dispatcher\ArgumentResolver\LanguageSeverProtocolParamsResolver->doResolveArguments()
#21 /home/azerty/.config/Code/User/globalStorage/dantleech.vscode-phpactor/phpactor/vendor/phpactor/language-server/lib/Core/Dispatcher/ArgumentResolver/ChainArgumentResolver.php(29): Phpactor\LanguageServer\Core\Dispatcher\ArgumentResolver\LanguageSeverProtocolParamsResolver->resolveArguments()
#22 /home/azerty/.config/Code/User/globalStorage/dantleech.vscode-phpactor/phpactor/vendor/phpactor/language-server/lib/Core/Handler/HandlerMethodRunner.php(83): Phpactor\LanguageServer\Core\Dispatcher\ArgumentResolver\ChainArgumentResolver->resolveArguments()
#23 [internal function]: Phpactor\LanguageServer\Core\Handler\HandlerMethodRunner->Phpactor\LanguageServer\Core\Handler\{closure}()
#24 /home/azerty/.config/Code/User/globalStorage/dantleech.vscode-phpactor/phpactor/vendor/amphp/amp/lib/Coroutine.php(67): Generator->current()
#25 /home/azerty/.config/Code/User/globalStorage/dantleech.vscode-phpactor/phpactor/vendor/amphp/amp/lib/functions.php(96): Amp\Coroutine->__construct()
#26 /home/azerty/.config/Code/User/globalStorage/dantleech.vscode-phpactor/phpactor/vendor/phpactor/language-server/lib/Core/Handler/HandlerMethodRunner.php(72): Amp\call()
#27 /home/azerty/.config/Code/User/globalStorage/dantleech.vscode-phpactor/phpactor/vendor/phpactor/language-server/lib/Middleware/HandlerMiddleware.php(38): Phpactor\LanguageServer\Core\Handler\HandlerMethodRunner->dispatch()
#28 /home/azerty/.config/Code/User/globalStorage/dantleech.vscode-phpactor/phpactor/vendor/phpactor/language-server/lib/Core/Middleware/RequestHandler.php(37): Phpactor\LanguageServer\Middleware\HandlerMiddleware->process()
#29 /home/azerty/.config/Code/User/globalStorage/dantleech.vscode-phpactor/phpactor/vendor/phpactor/language-server/lib/Middleware/ResponseHandlingMiddleware.php(35): Phpactor\LanguageServer\Core\Middleware\RequestHandler->handle()
#30 /home/azerty/.config/Code/User/globalStorage/dantleech.vscode-phpactor/phpactor/vendor/phpactor/language-server/lib/Core/Middleware/RequestHandler.php(37): Phpactor\LanguageServer\Middleware\ResponseHandlingMiddleware->process()
#31 /home/azerty/.config/Code/User/globalStorage/dantleech.vscode-phpactor/phpactor/vendor/phpactor/language-server/lib/Middleware/MethodAliasMiddleware.php(37): Phpactor\LanguageServer\Core\Middleware\RequestHandler->handle()
#32 /home/azerty/.config/Code/User/globalStorage/dantleech.vscode-phpactor/phpactor/vendor/phpactor/language-server/lib/Core/Middleware/RequestHandler.php(37): Phpactor\LanguageServer\Middleware\MethodAliasMiddleware->process()
#33 /home/azerty/.config/Code/User/globalStorage/dantleech.vscode-phpactor/phpactor/vendor/phpactor/language-server/lib/Middleware/CancellationMiddleware.php(49): Phpactor\LanguageServer\Core\Middleware\RequestHandler->handle()
#34 /home/azerty/.config/Code/User/globalStorage/dantleech.vscode-phpactor/phpactor/vendor/phpactor/language-server/lib/Core/Middleware/RequestHandler.php(37): Phpactor\LanguageServer\Middleware\CancellationMiddleware->process()
#35 /home/azerty/.config/Code/User/globalStorage/dantleech.vscode-phpactor/phpactor/vendor/phpactor/language-server/lib/Middleware/ShutdownMiddleware.php(68): Phpactor\LanguageServer\Core\Middleware\RequestHandler->handle()
#36 /home/azerty/.config/Code/User/globalStorage/dantleech.vscode-phpactor/phpactor/vendor/phpactor/language-server/lib/Core/Middleware/RequestHandler.php(37): Phpactor\LanguageServer\Middleware\ShutdownMiddleware->process()
#37 /home/azerty/.config/Code/User/globalStorage/dantleech.vscode-phpactor/phpactor/vendor/phpactor/language-server/lib/Middleware/InitializeMiddleware.php(56): Phpactor\LanguageServer\Core\Middleware\RequestHandler->handle()
#38 /home/azerty/.config/Code/User/globalStorage/dantleech.vscode-phpactor/phpactor/vendor/phpactor/language-server/lib/Core/Middleware/RequestHandler.php(37): Phpactor\LanguageServer\Middleware\InitializeMiddleware->process()
#39 /home/azerty/.config/Code/User/globalStorage/dantleech.vscode-phpactor/phpactor/vendor/phpactor/language-server/lib/Middleware/ErrorHandlingMiddleware.php(34): Phpactor\LanguageServer\Core\Middleware\RequestHandler->handle()
#40 [internal function]: Phpactor\LanguageServer\Middleware\ErrorHandlingMiddleware->Phpactor\LanguageServer\Middleware\{closure}()
#41 /home/azerty/.config/Code/User/globalStorage/dantleech.vscode-phpactor/phpactor/vendor/amphp/amp/lib/Coroutine.php(67): Generator->current()
#42 /home/azerty/.config/Code/User/globalStorage/dantleech.vscode-phpactor/phpactor/vendor/amphp/amp/lib/functions.php(96): Amp\Coroutine->__construct()
#43 /home/azerty/.config/Code/User/globalStorage/dantleech.vscode-phpactor/phpactor/vendor/phpactor/language-server/lib/Middleware/ErrorHandlingMiddleware.php(32): Amp\call()
#44 /home/azerty/.config/Code/User/globalStorage/dantleech.vscode-phpactor/phpactor/vendor/phpactor/language-server/lib/Core/Middleware/RequestHandler.php(37): Phpactor\LanguageServer\Middleware\ErrorHandlingMiddleware->process()
#45 /home/azerty/.config/Code/User/globalStorage/dantleech.vscode-phpactor/phpactor/vendor/phpactor/language-server/lib/Core/Dispatcher/Dispatcher/MiddlewareDispatcher.php(29): Phpactor\LanguageServer\Core\Middleware\RequestHandler->handle()
#46 /home/azerty/.config/Code/User/globalStorage/dantleech.vscode-phpactor/phpactor/vendor/phpactor/language-server/lib/Core/Server/LanguageServer.php(223): Phpactor\LanguageServer\Core\Dispatcher\Dispatcher\MiddlewareDispatcher->dispatch()
#47 [internal function]: Phpactor\LanguageServer\Core\Server\LanguageServer->Phpactor\LanguageServer\Core\Server\{closure}()
#48 /home/azerty/.config/Code/User/globalStorage/dantleech.vscode-phpactor/phpactor/vendor/amphp/amp/lib/Coroutine.php(67): Generator->current()
#49 /home/azerty/.config/Code/User/globalStorage/dantleech.vscode-phpactor/phpactor/vendor/amphp/amp/lib/functions.php(96): Amp\Coroutine->__construct()
#50 /home/azerty/.config/Code/User/globalStorage/dantleech.vscode-phpactor/phpactor/vendor/amphp/amp/lib/functions.php(121): Amp\call()
#51 /home/azerty/.config/Code/User/globalStorage/dantleech.vscode-phpactor/phpactor/vendor/phpactor/language-server/lib/Core/Server/LanguageServer.php(221): Amp\asyncCall()
#52 /home/azerty/.config/Code/User/globalStorage/dantleech.vscode-phpactor/phpactor/vendor/phpactor/language-server/lib/Core/Server/LanguageServer.php(214): Phpactor\LanguageServer\Core\Server\LanguageServer->dispatchRequest()
#53 [internal function]: Phpactor\LanguageServer\Core\Server\LanguageServer->Phpactor\LanguageServer\Core\Server\{closure}()
#54 /home/azerty/.config/Code/User/globalStorage/dantleech.vscode-phpactor/phpactor/vendor/amphp/amp/lib/Coroutine.php(118): Generator->send()
#55 /home/azerty/.config/Code/User/globalStorage/dantleech.vscode-phpactor/phpactor/vendor/amphp/amp/lib/Internal/Placeholder.php(149): Amp\Coroutine->Amp\{closure}()
#56 /home/azerty/.config/Code/User/globalStorage/dantleech.vscode-phpactor/phpactor/vendor/amphp/amp/lib/Coroutine.php(123): Amp\Coroutine->resolve()
#57 /home/azerty/.config/Code/User/globalStorage/dantleech.vscode-phpactor/phpactor/vendor/amphp/amp/lib/Internal/Placeholder.php(149): Amp\Coroutine->Amp\{closure}()
#58 /home/azerty/.config/Code/User/globalStorage/dantleech.vscode-phpactor/phpactor/vendor/amphp/amp/lib/Deferred.php(53): Amp\Promise@anonymous->resolve()
#59 /home/azerty/.config/Code/User/globalStorage/dantleech.vscode-phpactor/phpactor/vendor/amphp/byte-stream/lib/ResourceInputStream.php(101): Amp\Deferred->resolve()
#60 /home/azerty/.config/Code/User/globalStorage/dantleech.vscode-phpactor/phpactor/vendor/amphp/amp/lib/Loop/NativeDriver.php(327): Amp\ByteStream\ResourceInputStream::Amp\ByteStream\{closure}()
#61 /home/azerty/.config/Code/User/globalStorage/dantleech.vscode-phpactor/phpactor/vendor/amphp/amp/lib/Loop/NativeDriver.php(124): Amp\Loop\NativeDriver->selectStreams()
#62 /home/azerty/.config/Code/User/globalStorage/dantleech.vscode-phpactor/phpactor/vendor/amphp/amp/lib/Loop/Driver.php(138): Amp\Loop\NativeDriver->dispatch()
#63 /home/azerty/.config/Code/User/globalStorage/dantleech.vscode-phpactor/phpactor/vendor/amphp/amp/lib/Loop/Driver.php(72): Amp\Loop\Driver->tick()
#64 /home/azerty/.config/Code/User/globalStorage/dantleech.vscode-phpactor/phpactor/vendor/amphp/amp/lib/Loop.php(95): Amp\Loop\Driver->run()
#65 /home/azerty/.config/Code/User/globalStorage/dantleech.vscode-phpactor/phpactor/vendor/phpactor/language-server/lib/Core/Server/LanguageServer.php(111): Amp\Loop::run()
#66 /home/azerty/.config/Code/User/globalStorage/dantleech.vscode-phpactor/phpactor/lib/Extension/LanguageServer/Command/StartCommand.php(50): Phpactor\LanguageServer\Core\Server\LanguageServer->run()
#67 /home/azerty/.config/Code/User/globalStorage/dantleech.vscode-phpactor/phpactor/vendor/symfony/console/Command/Command.php(298): Phpactor\Extension\LanguageServer\Command\StartCommand->execute()
#68 /home/azerty/.config/Code/User/globalStorage/dantleech.vscode-phpactor/phpactor/vendor/symfony/console/Application.php(1040): Symfony\Component\Console\Command\Command->run()
#69 /home/azerty/.config/Code/User/globalStorage/dantleech.vscode-phpactor/phpactor/vendor/symfony/console/Application.php(301): Symfony\Component\Console\Application->doRunCommand()
#70 /home/azerty/.config/Code/User/globalStorage/dantleech.vscode-phpactor/phpactor/lib/Application.php(48): Symfony\Component\Console\Application->doRun()
#71 /home/azerty/.config/Code/User/globalStorage/dantleech.vscode-phpactor/phpactor/vendor/symfony/console/Application.php(171): Phpactor\Application->doRun()
#72 /home/azerty/.config/Code/User/globalStorage/dantleech.vscode-phpactor/phpactor/bin/phpactor(46): Symfony\Component\Console\Application->run()
#73 {main}
From what I understand, it looks like I get double values for "character" number when I have PHP Mess Detector errors. I disabled the PHPMD extension I use (https://github.com/sandhje/vscode-phpmd) and it seems that phpactor stopped crashing. Not sure why one extension has an effect on this one.
Ah yes, the "diagnostics" data gets passed from different extension and sources back to phpactor and other extensions. So the problem is actually in phpmd.
There are two things we could do: have phpactor protocol code handle int and decimal - altho this is a protocol violation - or submit a ticket to vscode so that that is filtered in the core...
I'll try to find a task I already opened in vscode.
I'm getting the below exception on a new install of phpactor and vscode-phpactor when I type a single char.
MacOS: 13.6 VSCode: 1.83