arthwang / vsc-prolog

A VS Code extension that provides language support for prolog
MIT License
97 stars 22 forks source link

TypeError: Cannot read properties of null (reading 'toString') #61

Open damianoazzolini opened 2 years ago

damianoazzolini commented 2 years ago

Hi, I've noticed that in the output tab of Log (remote Extension Host) I keep getting the following error.

[2022-04-28 10:00:37.295] [exthost] [error] [arthurwang.vsc-prolog] provider FAILED
[2022-04-28 10:00:37.296] [exthost] [error] TypeError: Cannot read properties of null (reading 'toString')
    at Function.execPrologSync (/home/damiano/.vscode-server/extensions/arthurwang.vsc-prolog-0.8.23/out/src/utils/utils.js:283:71)
    at Function.getPredicateUnderCursor (/home/damiano/.vscode-server/extensions/arthurwang.vsc-prolog-0.8.23/out/src/utils/utils.js:166:37)
    at PrologHoverProvider.provideHover (/home/damiano/.vscode-server/extensions/arthurwang.vsc-prolog-0.8.23/out/src/features/hoverProvider.js:16:34)
    at c.provideHover (/home/damiano/.vscode-server/bin/dfd34e8260c270da74b5c2d86d61aee4b6d56977/out/vs/workbench/api/node/extensionHostProcess.js:85:98679)
    at /home/damiano/.vscode-server/bin/dfd34e8260c270da74b5c2d86d61aee4b6d56977/out/vs/workbench/api/node/extensionHostProcess.js:85:126291
    at Q._withAdapter (/home/damiano/.vscode-server/bin/dfd34e8260c270da74b5c2d86d61aee4b6d56977/out/vs/workbench/api/node/extensionHostProcess.js:85:123102)
    at Q.$provideHover (/home/damiano/.vscode-server/bin/dfd34e8260c270da74b5c2d86d61aee4b6d56977/out/vs/workbench/api/node/extensionHostProcess.js:85:126267)
    at i._doInvokeHandler (/home/damiano/.vscode-server/bin/dfd34e8260c270da74b5c2d86d61aee4b6d56977/out/vs/workbench/api/node/extensionHostProcess.js:89:13826)
    at i._invokeHandler (/home/damiano/.vscode-server/bin/dfd34e8260c270da74b5c2d86d61aee4b6d56977/out/vs/workbench/api/node/extensionHostProcess.js:89:13510)
    at i._receiveRequest (/home/damiano/.vscode-server/bin/dfd34e8260c270da74b5c2d86d61aee4b6d56977/out/vs/workbench/api/node/extensionHostProcess.js:89:12119)
    at i._receiveOneMessage (/home/damiano/.vscode-server/bin/dfd34e8260c270da74b5c2d86d61aee4b6d56977/out/vs/workbench/api/node/extensionHostProcess.js:89:10841)
    at /home/damiano/.vscode-server/bin/dfd34e8260c270da74b5c2d86d61aee4b6d56977/out/vs/workbench/api/node/extensionHostProcess.js:89:8947
    at u.invoke (/home/damiano/.vscode-server/bin/dfd34e8260c270da74b5c2d86d61aee4b6d56977/out/vs/workbench/api/node/extensionHostProcess.js:58:145)
    at v.fire (/home/damiano/.vscode-server/bin/dfd34e8260c270da74b5c2d86d61aee4b6d56977/out/vs/workbench/api/node/extensionHostProcess.js:58:1856)
    at d.fire (/home/damiano/.vscode-server/bin/dfd34e8260c270da74b5c2d86d61aee4b6d56977/out/vs/workbench/api/node/extensionHostProcess.js:66:19034)
    at /home/damiano/.vscode-server/bin/dfd34e8260c270da74b5c2d86d61aee4b6d56977/out/vs/workbench/api/node/extensionHostProcess.js:104:34275
    at u.invoke (/home/damiano/.vscode-server/bin/dfd34e8260c270da74b5c2d86d61aee4b6d56977/out/vs/workbench/api/node/extensionHostProcess.js:58:145)
    at v.fire (/home/damiano/.vscode-server/bin/dfd34e8260c270da74b5c2d86d61aee4b6d56977/out/vs/workbench/api/node/extensionHostProcess.js:58:1856)
    at d.fire (/home/damiano/.vscode-server/bin/dfd34e8260c270da74b5c2d86d61aee4b6d56977/out/vs/workbench/api/node/extensionHostProcess.js:66:19034)
    at o._receiveMessage (/home/damiano/.vscode-server/bin/dfd34e8260c270da74b5c2d86d61aee4b6d56977/out/vs/workbench/api/node/extensionHostProcess.js:66:23615)
    at /home/damiano/.vscode-server/bin/dfd34e8260c270da74b5c2d86d61aee4b6d56977/out/vs/workbench/api/node/extensionHostProcess.js:66:21149
    at u.invoke (/home/damiano/.vscode-server/bin/dfd34e8260c270da74b5c2d86d61aee4b6d56977/out/vs/workbench/api/node/extensionHostProcess.js:58:145)
    at v.fire (/home/damiano/.vscode-server/bin/dfd34e8260c270da74b5c2d86d61aee4b6d56977/out/vs/workbench/api/node/extensionHostProcess.js:58:1856)
    at v.acceptChunk (/home/damiano/.vscode-server/bin/dfd34e8260c270da74b5c2d86d61aee4b6d56977/out/vs/workbench/api/node/extensionHostProcess.js:66:15865)
    at /home/damiano/.vscode-server/bin/dfd34e8260c270da74b5c2d86d61aee4b6d56977/out/vs/workbench/api/node/extensionHostProcess.js:66:14995
    at u.invoke (/home/damiano/.vscode-server/bin/dfd34e8260c270da74b5c2d86d61aee4b6d56977/out/vs/workbench/api/node/extensionHostProcess.js:58:145)
    at v.fire (/home/damiano/.vscode-server/bin/dfd34e8260c270da74b5c2d86d61aee4b6d56977/out/vs/workbench/api/node/extensionHostProcess.js:58:1856)
    at l._processReadQueue (/home/damiano/.vscode-server/bin/dfd34e8260c270da74b5c2d86d61aee4b6d56977/out/vs/workbench/api/node/extensionHostProcess.js:104:21305)
    at l.acceptFrame (/home/damiano/.vscode-server/bin/dfd34e8260c270da74b5c2d86d61aee4b6d56977/out/vs/workbench/api/node/extensionHostProcess.js:104:20961)
    at E._acceptChunk (/home/damiano/.vscode-server/bin/dfd34e8260c270da74b5c2d86d61aee4b6d56977/out/vs/workbench/api/node/extensionHostProcess.js:104:18925)
    at /home/damiano/.vscode-server/bin/dfd34e8260c270da74b5c2d86d61aee4b6d56977/out/vs/workbench/api/node/extensionHostProcess.js:104:15914
    at Socket.T (/home/damiano/.vscode-server/bin/dfd34e8260c270da74b5c2d86d61aee4b6d56977/out/vs/workbench/api/node/extensionHostProcess.js:104:13797)
    at Socket.emit (node:events:390:28)
    at addChunk (node:internal/streams/readable:315:12)
    at readableAddChunk (node:internal/streams/readable:289:9)
    at Socket.Readable.push (node:internal/streams/readable:228:10)
    at TCP.onStreamRead (node:internal/stream_base_commons:199:23)