ChrisChinchilla / vale-vscode

A Visual Studio Code extension for the Vale CLI.
https://marketplace.visualstudio.com/items?itemName=ChrisChinchilla.vale-vscode
MIT License
34 stars 5 forks source link

[error] TypeError: Cannot read properties of undefined (reading 'Action') #25

Open thernstig opened 4 months ago

thernstig commented 4 months ago

Version: v0.18.4

I get this error in the Extension Host (Remote) when using VS Code remote over ssh:

2024-02-12 10:04:04.246 [error] [chrischinchilla.vale-vscode] provider FAILED
2024-02-12 10:04:04.247 [error] TypeError: Cannot read properties of undefined (reading 'Action')
    at h.provideCodeActions (/home/userA/.vscode-server/extensions/chrischinchilla.vale-vscode-0.18.4/dist/extension.js:2:17830)
    at M.provideCodeActions (/home/userA/.vscode-server/bin/31c37ee8f63491495ac49e43b8544550fbae4533/out/vs/workbench/api/node/extensionHostProcess.js:150:90629)
    at /home/userA/.vscode-server/bin/31c37ee8f63491495ac49e43b8544550fbae4533/out/vs/workbench/api/node/extensionHostProcess.js:150:117435
    at ve.s (/home/userA/.vscode-server/bin/31c37ee8f63491495ac49e43b8544550fbae4533/out/vs/workbench/api/node/extensionHostProcess.js:150:112365)
    at ve.$provideCodeActions (/home/userA/.vscode-server/bin/31c37ee8f63491495ac49e43b8544550fbae4533/out/vs/workbench/api/node/extensionHostProcess.js:150:117422)
    at d.S (/home/userA/.vscode-server/bin/31c37ee8f63491495ac49e43b8544550fbae4533/out/vs/workbench/api/node/extensionHostProcess.js:147:5520)
    at d.Q (/home/userA/.vscode-server/bin/31c37ee8f63491495ac49e43b8544550fbae4533/out/vs/workbench/api/node/extensionHostProcess.js:147:5286)
    at d.M (/home/userA/.vscode-server/bin/31c37ee8f63491495ac49e43b8544550fbae4533/out/vs/workbench/api/node/extensionHostProcess.js:147:4338)
    at d.L (/home/userA/.vscode-server/bin/31c37ee8f63491495ac49e43b8544550fbae4533/out/vs/workbench/api/node/extensionHostProcess.js:147:3455)
    at g.value (/home/userA/.vscode-server/bin/31c37ee8f63491495ac49e43b8544550fbae4533/out/vs/workbench/api/node/extensionHostProcess.js:147:2242)
    at r.y (/home/userA/.vscode-server/bin/31c37ee8f63491495ac49e43b8544550fbae4533/out/vs/workbench/api/node/extensionHostProcess.js:80:1902)
    at r.fire (/home/userA/.vscode-server/bin/31c37ee8f63491495ac49e43b8544550fbae4533/out/vs/workbench/api/node/extensionHostProcess.js:80:2119)
    at n.fire (/home/userA/.vscode-server/bin/31c37ee8f63491495ac49e43b8544550fbae4533/out/vs/workbench/api/node/extensionHostProcess.js:105:14073)
    at g.value (/home/userA/.vscode-server/bin/31c37ee8f63491495ac49e43b8544550fbae4533/out/vs/workbench/api/node/extensionHostProcess.js:173:8051)
    at r.y (/home/userA/.vscode-server/bin/31c37ee8f63491495ac49e43b8544550fbae4533/out/vs/workbench/api/node/extensionHostProcess.js:80:1902)
    at r.fire (/home/userA/.vscode-server/bin/31c37ee8f63491495ac49e43b8544550fbae4533/out/vs/workbench/api/node/extensionHostProcess.js:80:2119)
    at n.fire (/home/userA/.vscode-server/bin/31c37ee8f63491495ac49e43b8544550fbae4533/out/vs/workbench/api/node/extensionHostProcess.js:105:14073)
    at s.z (/home/userA/.vscode-server/bin/31c37ee8f63491495ac49e43b8544550fbae4533/out/vs/workbench/api/node/extensionHostProcess.js:105:17138)
    at g.value (/home/userA/.vscode-server/bin/31c37ee8f63491495ac49e43b8544550fbae4533/out/vs/workbench/api/node/extensionHostProcess.js:105:15590)
    at r.y (/home/userA/.vscode-server/bin/31c37ee8f63491495ac49e43b8544550fbae4533/out/vs/workbench/api/node/extensionHostProcess.js:80:1902)
    at r.fire (/home/userA/.vscode-server/bin/31c37ee8f63491495ac49e43b8544550fbae4533/out/vs/workbench/api/node/extensionHostProcess.js:80:2119)
    at g.acceptChunk (/home/userA/.vscode-server/bin/31c37ee8f63491495ac49e43b8544550fbae4533/out/vs/workbench/api/node/extensionHostProcess.js:105:11847)
    at g.value (/home/userA/.vscode-server/bin/31c37ee8f63491495ac49e43b8544550fbae4533/out/vs/workbench/api/node/extensionHostProcess.js:105:11134)
    at r.y (/home/userA/.vscode-server/bin/31c37ee8f63491495ac49e43b8544550fbae4533/out/vs/workbench/api/node/extensionHostProcess.js:80:1902)
    at r.fire (/home/userA/.vscode-server/bin/31c37ee8f63491495ac49e43b8544550fbae4533/out/vs/workbench/api/node/extensionHostProcess.js:80:2119)
    at r.z (/home/userA/.vscode-server/bin/31c37ee8f63491495ac49e43b8544550fbae4533/out/vs/workbench/api/node/extensionHostProcess.js:170:19748)
2024-02-12 10:04:18.036 [warning] TextEditor is closed/disposed
2024-02-12 10:11:16.780 [warning] Illegal argument: TextEditor(vs.editor.ICodeEditor:7,$model44)
2024-02-12 10:11:16.855 [warning] Illegal argument: TextEditor(vs.editor.ICodeEditor:7,$model44)
ChrisChinchilla commented 3 months ago

@thernstig Could you give me a bit more detail? I don't really understand what you mean by "when using VS Code remote over ssh:".

thernstig commented 3 months ago

@ChrisChinchilla sure, here you are: https://code.visualstudio.com/docs/remote/ssh

I.e. I am using VS Code over SSH towards a remote. That is why the above error message is shown in the Extension Host (Remote), and not the local Extension Host. Not sure it has any relevance as to why this error occurs, but the information so nothing was missed.

thernstig commented 2 months ago

@ChrisChinchilla still issue still exists

ChrisChinchilla commented 2 months ago

@thernstig yup, and that's why it's still open. This is a hard edge case for me to test and I haven't had time yet, sorry.

thernstig commented 2 months ago

@ChrisChinchilla I see, too bad the logs gave no pointer to what could be faulty.