Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Steps in Linked feature files are showing up as undefined and Plugin Intellisense not working #23

Open
rdasan opened this issue Mar 1, 2021 · 11 comments
Labels
bug Something isn't working

Comments

@rdasan
Copy link

rdasan commented Mar 1, 2021

I am using my feature files as .csproj linked files. I need to to it in this fashion because my feature files are in a separate repo and I include them in the main repo as git subrepo . After that I just include the relevant .feature file as a Linked file in my Test project. However when I do that, the SpecFlow Plugin intellisense like "Go To Reference / Find Usages" does not seem to work. Also the steps show up as undefined even though I have defined and implemented them. This problem does not cause a build or Test issue. I'm using the latest version of the Plugin, .net 5.0 and xUnit testing framework

@rdasan rdasan changed the title Steps in Linked feature files are showing up as undefined and SpecFlow Support Intellisense not working Steps in Linked feature files are showing up as undefined and Plugin Intellisense not working Mar 1, 2021
@nemesv nemesv added the bug Something isn't working label Mar 1, 2021
@rdasan
Copy link
Author

rdasan commented Mar 4, 2021

Is there a workaround for this that anybody can suggest?

@Socolin
Copy link
Collaborator

Socolin commented Mar 4, 2021

Hello,

I did not have time to check yet. It would help if you can provide us with a small project to reproduce the bug.

@rdasan
Copy link
Author

rdasan commented Mar 8, 2021

Hi,

Thanks for responding. I have added a project in my github for your reference... https://github.com/rdasan/LinkedFeatureFile/tree/master/LinkedFeatureFile

The sample.feature file is added as a Linked file in the LinkedFeatureFile project

@rdasan
Copy link
Author

rdasan commented Mar 9, 2021

@Socolin Was that helpful? The sample project illustrating the issue?

@Socolin
Copy link
Collaborator

Socolin commented Mar 9, 2021

I'll check this tonight

@Socolin
Copy link
Collaborator

Socolin commented Mar 10, 2021

Can you verify if this build fix your problem ? https://github.com/SpecFlowOSS/SpecFlow.Rider/runs/2072240670

@rdasan
Copy link
Author

rdasan commented Jun 2, 2021

@Socolin Apologies for not getting back on this. I did not get a chance to check that build. But I have the latest Release installed now and it's still not working for Linked Files.

@Socolin Socolin reopened this Jun 2, 2021
@SabotageAndi
Copy link
Contributor

@rdasan Is this working in Visual Studio for you? With SpecFlow 3.0 we dropped support for files that are at another location than under the project. The reason is, that there are some questions, we couldn't answer. Like where to generate the *.feature.cs file for linked files.

@rdasan
Copy link
Author

rdasan commented Jun 4, 2021

@SabotageAndi I have not tried on Visual Studio. Right now in Rider, when I Link the feature file and set the Build Action as SpecFlowFeatureFiles , the feature.cs file gets generated at the same .../dotnet/test/Features location. Which I'm fine with. But the Linked feature has zero intellisense or any features offered by the SpecFlow Rider Plugin. It just behaves like a plain text file.
Screen Shot 2021-06-04 at 1 03 04 PM

@nferrellcmg
Copy link

@rdasan Is this working in Visual Studio for you? With SpecFlow 3.0 we dropped support for files that are at another location than under the project. The reason is, that there are some questions, we couldn't answer. Like where to generate the *.feature.cs file for linked files.

Isn't it safe to generate the files to the same location as the original file?

@SabotageAndi
Copy link
Contributor

@nferrellcmg No, it is not.
When you link the file in multiple projects you run quickly into problems. At least with the namespace.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants