You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using Cursorless to edit Python and Vue2 SFC Typescript files, on d8a602e. take line this throws an error now, "Cannot read properties of undefined (reading 'run')", which seems like it's because action.run (r.run in the compiled JS) is undefined.
I bisected from 10 commits ago to now, and it showed b3b1abf3ce2c94bc09c9d87bb288b61572ed805d as the bad commit, but that might only because that commit, take line this stopped being recognized.
2024-11-19 13:07:05.372 [error] TypeError: Cannot read properties of undefined (reading 'run')
at c:\Users\username\.vscode\extensions\pokey.cursorless-0.28.1110\extension.cjs:128:9129
at Array.flatMap (<anonymous>)
at c:\Users\username\.vscode\extensions\pokey.cursorless-0.28.1110\extension.cjs:128:9116
at Array.forEach (<anonymous>)
at Vw (c:\Users\username\.vscode\extensions\pokey.cursorless-0.28.1110\extension.cjs:128:9100)
at qw.processPrimitiveTarget (c:\Users\username\.vscode\extensions\pokey.cursorless-0.28.1110\extension.cjs:128:9014)
at qw.processTarget (c:\Users\username\.vscode\extensions\pokey.cursorless-0.28.1110\extension.cjs:128:8031)
at qw.run (c:\Users\username\.vscode\extensions\pokey.cursorless-0.28.1110\extension.cjs:128:7819)
at iy.run (c:\Users\username\.vscode\extensions\pokey.cursorless-0.28.1110\extension.cjs:128:7681)
at Kb.getTargets (c:\Users\username\.vscode\extensions\pokey.cursorless-0.28.1110\extension.cjs:140:5397)
at Kb.runAction (c:\Users\username\.vscode\extensions\pokey.cursorless-0.28.1110\extension.cjs:140:5297)
at Kb.run (c:\Users\username\.vscode\extensions\pokey.cursorless-0.28.1110\extension.cjs:140:3004)
at async Object.run (c:\Users\username\.vscode\extensions\pokey.cursorless-0.28.1110\extension.cjs:140:30329)
at async yE (c:\Users\username\.vscode\extensions\pokey.cursorless-0.28.1110\extension.cjs:140:19925)
at async cursorless.command (c:\Users\username\.vscode\extensions\pokey.cursorless-0.28.1110\extension.cjs:164:86965)
at async Y0.h (file:///c:/Users/username/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:114:32825) cursorless.command {"value":"pokey.cursorless","_lower":"pokey.cursorless"}
2024-11-19 13:07:05.372 [error] TypeError: Cannot read properties of undefined (reading 'run')
at c:\Users\username\.vscode\extensions\pokey.cursorless-0.28.1110\extension.cjs:128:9129
at Array.flatMap (<anonymous>)
at c:\Users\username\.vscode\extensions\pokey.cursorless-0.28.1110\extension.cjs:128:9116
at Array.forEach (<anonymous>)
at Vw (c:\Users\username\.vscode\extensions\pokey.cursorless-0.28.1110\extension.cjs:128:9100)
at qw.processPrimitiveTarget (c:\Users\username\.vscode\extensions\pokey.cursorless-0.28.1110\extension.cjs:128:9014)
at qw.processTarget (c:\Users\username\.vscode\extensions\pokey.cursorless-0.28.1110\extension.cjs:128:8031)
at qw.run (c:\Users\username\.vscode\extensions\pokey.cursorless-0.28.1110\extension.cjs:128:7819)
at iy.run (c:\Users\username\.vscode\extensions\pokey.cursorless-0.28.1110\extension.cjs:128:7681)
at Kb.getTargets (c:\Users\username\.vscode\extensions\pokey.cursorless-0.28.1110\extension.cjs:140:5397)
at Kb.runAction (c:\Users\username\.vscode\extensions\pokey.cursorless-0.28.1110\extension.cjs:140:5297)
at Kb.run (c:\Users\username\.vscode\extensions\pokey.cursorless-0.28.1110\extension.cjs:140:3004)
at async Object.run (c:\Users\username\.vscode\extensions\pokey.cursorless-0.28.1110\extension.cjs:140:30329)
at async yE (c:\Users\username\.vscode\extensions\pokey.cursorless-0.28.1110\extension.cjs:140:19925)
at async cursorless.command (c:\Users\username\.vscode\extensions\pokey.cursorless-0.28.1110\extension.cjs:164:86965)
at async Y0.h (file:///c:/Users/username/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:114:32825) command-server.runCommand {"value":"pokey.command-server","_lower":"pokey.command-server"}
Modifiying the JS to check for undefined first then has cursorless warn that an action requires targets, but I'm not sure. Every line in this sample test.py file throws that error if I say 'take line this', whereas 10 commits ago, it'd happily select the entire line.
That would mean your command contained a modifier not found in the system. If you want to debug this further you could enable the cursorless debug setting in vscode: "cursorless.debug": true and then open the development console. You should see something like this when you run the command "take line this":
Hi there, Cursorless has been wonderful.
I'm using Cursorless to edit Python and Vue2 SFC Typescript files, on
d8a602e
.take line this
throws an error now, "Cannot read properties of undefined (reading 'run')", which seems like it's becauseaction.run
(r.run
in the compiled JS) is undefined.I bisected from 10 commits ago to now, and it showed
b3b1abf3ce2c94bc09c9d87bb288b61572ed805d
as the bad commit, but that might only because that commit,take line this
stopped being recognized.Modifiying the JS to check for undefined first then has cursorless warn that an action requires targets, but I'm not sure. Every line in this sample
test.py
file throws that error if I say 'take line this', whereas 10 commits ago, it'd happily select the entire line.Talon version 0.4.0-519-g20c4 (519)
The text was updated successfully, but these errors were encountered: