SpecFlowOSS / SpecFlow.Rider

SpecFlow support for both ReSharper and Rider
MIT License
29 stars 19 forks source link

Specflow plugin causes JSON analysis error in Rider 2024.1 #220

Closed leandrohpa closed 7 months ago

leandrohpa commented 7 months ago

Hi,

After upgrading to Rider 2024.1, all the json files have highlighted errors by default.

The inspection finds an error: "The file does not contain a Feature."

Rider support helped me find that the issue was on the Specflow plugin after opening an issue to them. In the end, disabling it solves the issue, but it might be quite annoying for people working with Specflow and willing to use the plugin. https://youtrack.jetbrains.com/issue/RIDER-110824/Incorrect-error-inspection-in-JSON-files-The-file-does-not-contain-a-Feature.

This happens in any JSON I've tested using C#-based projects (ClassLibrary, Console and Web)

This was a new test project I created from scratch using the C# Web Application template and this is the generated appsettings.json

image

mcallaghan-geotab commented 7 months ago

dup of https://github.com/SpecFlowOSS/SpecFlow.Rider/issues/211 I think

Socolin commented 7 months ago

Please uninstall Specflow plugin THEN install reqnroll plugin for 2024.1 https://plugins.jetbrains.com/plugin/24012-reqnroll-for-rider, see details in #214