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

.feature file is not opening #170

Open
Sehedi2014 opened this issue Jul 27, 2024 · 0 comments
Open

.feature file is not opening #170

Sehedi2014 opened this issue Jul 27, 2024 · 0 comments

Comments

@Sehedi2014
Copy link

Used Visual Studio

Visual Studio 2022

Are the latest Visual Studio updates installed?

Yes

SpecFlow Section in app.config or content of specflow.json

specflow-vs-20240727.log

Issue Description

2024-07-27T21:23:40.230+05:30, Verbose@1, GetSafeMonitoringService: Monitoring service loaded
2024-07-27T21:24:52.645+05:30, Verbose@1, LoadProjectSystem: Loading VsIdeScope...
2024-07-27T21:24:52.910+05:30, Verbose@1, .ctor: Creating IDE Scope
2024-07-27T21:24:52.989+05:30, Verbose@1, RegisterMenuCommands: RegenerateAllFeatureFileCodeBehindCommand registered
2024-07-27T21:25:49.822+05:30, Verbose@1, SolutionEventListenerOnClosed: Solution closed
2024-07-27T21:30:03.829+05:30, Verbose@1, GetSafeMonitoringService: Monitoring service loaded
2024-07-27T21:30:03.835+05:30, Verbose@1, LoadProjectSystem: Loading VsIdeScope...
2024-07-27T21:30:03.872+05:30, Verbose@1, .ctor: Creating IDE Scope
2024-07-27T21:30:03.889+05:30, Verbose@1, RegisterMenuCommands: RegenerateAllFeatureFileCodeBehindCommand registered
2024-07-27T21:35:15.646+05:30, Verbose@1, SolutionEventListenerOnClosed: Solution closed
2024-07-27T21:48:42.686+05:30, Error@1, GetSafeLogger: Microsoft.VisualStudio.Composition.CompositionFailedException: Expected 1 export(s) with contract name "System.IO.Abstractions.IFileSystem" but found 2 after applying applicable constraints.
at Microsoft.VisualStudio.Composition.ExportProvider.GetExports(ImportDefinition importDefinition)
at Microsoft.VisualStudio.Composition.ExportProvider.GetExports[T,TMetadataView](String contractName, ImportCardinality cardinality)
at Microsoft.VisualStudio.Composition.ExportProvider.GetExport[T,TMetadataView](String contractName)
at Microsoft.VisualStudio.Composition.ExportProvider.GetExportedValueT
at Microsoft.VisualStudio.ComponentModelHost.ComponentModel.GetServiceT
at SpecFlow.VisualStudio.VsUtils.ResolveMefDependency[T](IServiceProvider serviceProvider) in D:\a\1\s\SpecFlow.VisualStudio.Package\VsUtils.cs:line 362
at SpecFlow.VisualStudio.ProjectSystem.VsIdeScopeLoader.GetSafeLogger(IServiceProvider serviceProvider) in D:\a\1\s\SpecFlow.VisualStudio.Package\ProjectSystem\VsIdeScopeLoader.cs:line 47
2024-07-27T21:48:42.701+05:30, Verbose@1, LoadProjectSystem: Loading VsIdeScope...
2024-07-27T21:48:42.701+05:30, Error@1, ReportInitError: Initialization error : Microsoft.VisualStudio.Composition.CompositionFailedException: Expected 1 export(s) with contract name "SpecFlow.VisualStudio.ProjectSystem.VsIdeScope" but found 0 after applying applicable constraints.
at Microsoft.VisualStudio.Composition.ExportProvider.GetExports(ImportDefinition importDefinition)
at Microsoft.VisualStudio.Composition.ExportProvider.GetExports[T,TMetadataView](String contractName, ImportCardinality cardinality)
at Microsoft.VisualStudio.Composition.ExportProvider.GetExport[T,TMetadataView](String contractName)
at Microsoft.VisualStudio.Composition.ExportProvider.GetExportedValueT
at Microsoft.VisualStudio.ComponentModelHost.ComponentModel.GetServiceT
at SpecFlow.VisualStudio.VsUtils.ResolveMefDependency[T](IServiceProvider serviceProvider) in D:\a\1\s\SpecFlow.VisualStudio.Package\VsUtils.cs:line 362
at SpecFlow.VisualStudio.ProjectSystem.VsIdeScopeLoader.LoadProjectSystem() in D:\a\1\s\SpecFlow.VisualStudio.Package\ProjectSystem\VsIdeScopeLoader.cs:line 81
2024-07-27T21:49:35.334+05:30, Verbose@1, ReportError: Copy to clipboard: Error hash: 922178479
Microsoft.VisualStudio.Composition.CompositionFailedException: Expected 1 export(s) with contract name "SpecFlow.VisualStudio.ProjectSystem.VsIdeScope" but found 0 after applying applicable constraints.
at Microsoft.VisualStudio.Composition.ExportProvider.GetExports(ImportDefinition importDefinition)
at Microsoft.VisualStudio.Composition.ExportProvider.GetExports[T,TMetadataView](String contractName, ImportCardinality cardinality)
at Microsoft.VisualStudio.Composition.ExportProvider.GetExport[T,TMetadataView](String contractName)
at Microsoft.VisualStudio.Composition.ExportProvider.GetExportedValueT
at Microsoft.VisualStudio.ComponentModelHost.ComponentModel.GetServiceT
at SpecFlow.VisualStudio.VsUtils.ResolveMefDependency[T](IServiceProvider serviceProvider) in D:\a\1\s\SpecFlow.VisualStudio.Package\VsUtils.cs:line 362
at SpecFlow.VisualStudio.ProjectSystem.VsIdeScopeLoader.LoadProjectSystem() in D:\a\1\s\SpecFlow.VisualStudio.Package\ProjectSystem\VsIdeScopeLoader.cs:line 81

Steps to Reproduce

Create Specflow project try to open feature file from feature folder

Link to Repository Project

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant