Open tankorsmash opened 3 days ago
Hi! Glad that you have found Cursorless useful :)
I can't find that commit on GitHub. Have you made a fork or some changes of your own? https://github.com/cursorless-dev/cursorless/commit/b3b1abf3ce2c94bc09c9d87bb288b61572ed805d
We might be on this line: https://github.com/cursorless-dev/cursorless/blob/8cf3464c189808a2ee6e37e2f8566e233ac522fe/packages/cursorless-engine/src/processTargets/TargetPipelineRunner.ts#L263-L265
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"
:
[Extension Host] command:
[Extension Host] {
"version": 7,
"spokenForm": "take line this",
"usePrePhraseSnapshot": true,
"action": {
"name": "setSelection",
"target": {
"type": "primitive",
"mark": {
"type": "cursor"
},
"modifiers": [
{
"type": "containingScope",
"scopeType": {
"type": "line"
}
}
]
}
}
}
To fix this problem I would first make sure that you are on the latest Cursorless Talon and Cursorless extension versions.
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)