cucumber / language-service

Cucumber Language Service
MIT License
12 stars 22 forks source link

Go To Definition causes error (C#/SpecFlow) #70

Closed gasparnagy closed 1 year ago

gasparnagy commented 1 year ago

👓 What did you see?

The steps of a scenario are recognized as "defined" (parameter highlighting works), but when I invoke the "Go To Definition" command, it shows a new tab with an error that says "The editor could not be opened due to an unexpected error: File is a directory".

Strangely the header of the tab contains the file name (eg. "MenuStepDefinition.cs"). No additional info on the output.

image

✅ What did you expect to see?

Jumps to the step definition.

📦 Which tool/library version are you using?

Extension: v1.2.7

🔬 How could we reproduce it?

E.g. with the Menu.feature of this repo.

📚 Any additional context?

I don't remember having this with the version v1.2.6, but I'm not sure.

aslakhellesoy commented 1 year ago

I think this might be a duplicate of https://github.com/cucumber/vscode/issues/78

gasparnagy commented 1 year ago

@aslakhellesoy yeah. let's see. I would keep this open, to be able to verify that both are fixed, because the steps are quite different here.

aslakhellesoy commented 1 year ago

Fixed in https://github.com/cucumber/language-server/pull/57