-
-
Notifications
You must be signed in to change notification settings - Fork 29
Closed
Labels
🐛 bugDefect / BugDefect / Bug
Description
Hi, im having problems running go-to-definition in nvim. seems like the step is unparseable? how can I fix this?
thanks!
What did you see?
There is a traceback error when running go-to-definition on a Cucumber file under a behave for python.
The error is:
[ERROR][2023-11-20 17:16:42] ...lsp/handlers.lua:535
* Step Definition errors: Error: Parsing failed
uri: file:///path/to/your/project/features/steps/transform.py
language: python
at Parser.parse (/path/to/your/project/node_modules/@cucumber/language-server/node_modules/web-tree-sitter/tree-sitter.js:1:53439)
at SourceAnalyzer.parse (/path/to/your/project/node_modules/@cucumber/language-server/node_modules/@cucumber/language-service/src/language/SourceAnalyzer.ts:139:72)
at SourceAnalyzer.getSourceMatches (/path/to/your/project/node_modules/@cucumber/language-server/node_modules/@cucumber/language-service/src/language/SourceAnalyzer.ts:107:21)
at SourceAnalyzer.eachStepDefinitionExpression (/path/to/your/project/node_modules/@cucumber/language-server/node_modules/@cucumber/language-service/src/language/SourceAnalyzer.ts:80:40)
at ExpressionBuilder.build (/path/to/your/project/node_modules/@cucumber/language-server/node_modules/@cucumber/language-service/src/language/ExpressionBuilder.ts:51:20)
at CucumberLanguageServer.<anonymous> (/path/to/your/project/node_modules/@cucumber/language-server/src/CucumberLanguageServer.ts:417:59)
at Generator.next (<anonymous>)
at fulfilled (/path/to/your/project/node_modules/@cucumber/language-server/dist/cjs/src/CucumberLanguageServer.js:5:58)
✅ What did you expect to see?
The step definition
📦 Which tool/library version are you using?
Python, nvim 0.9.2, Mason, cucumber.
See my config here: https://github.com/conradogarciaberrotaran/dotfiles/blob/master/nvim/after/plugin/lsp.lua#L93C4-L93C12
🔬 How could we reproduce it?
Install nvim 0.9+ and copy my nvim folder into your .config, install cucumber-language-server in Mason.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
🐛 bugDefect / BugDefect / Bug