Visual Studio troubleshooting
If the steps on this page don’t solve your problem, check the list of open issues in the Visual Studio plugin’s project. If an issue matches your problem, update the issue. If no issues match your problem, create a new issue.
Code Suggestions not displayed
- Check all the steps in Code Suggestions aren’t displayed first.
- Ensure you have properly configured the extension.
- Ensure you are working on a supported language.
- If another extension provides similar suggestion or completion features, the extension might not return suggestions. To resolve this:
- Disable all other Visual Studio extensions.
- Confirm that you now receive Code Suggestions.
- Re-enable extensions one at a time, testing for Code Suggestions each time, to find the extension that conflicts.
View more logs
More logs are available in the GitLab Extension Output window:
-
In Visual Studio, on the top bar, go to the Tools > Options menu.
-
Find the GitLab option, and set Log Level to Debug.
-
Go to View > Output to open the extension log. In the dropdown list, select GitLab Extension as the log filter.
-
Verify that the debug log contains similar output:
14:48:21:344 GitlabProposalSource.GetCodeSuggestionAsync 14:48:21:344 LsClient.SendTextDocumentCompletionAsync("GitLab.Extension.Test\TestData.cs", 34, 0) 14:48:21:346 LS(55096): time="2023-07-17T14:48:21-05:00" level=info msg="update context"
Extension not loaded on startup
After restarting, the following error is displayed:
SetSite failed for package [VisualStudioPackage]Source: 'Microsoft.VisualStudio.Composition' Description: Expected 1 export(s) with contract name "Microsoft.VisualStudio.Language.Suggestions.SuggestionServiceBase" but found 0 after applying applicable constraints.
Microsoft.VisualStudio.Composition.CompositionFailedException: Expected 1 export(s) with contract name "Microsoft.VisualStudio.Language.Suggestions.SuggestionServiceBase" 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.GetExportedValue[T]()
at Microsoft.VisualStudio.ComponentModelHost.ComponentModel.GetService[T]()
[...]
To fix this issue, install the IntelliCode component for Visual Studio.
Error: unable to find last release
If you receive this error message, your commits are likely on the main branch of your fork, instead of a feature branch:
buildtag.sh: Error: unable to find last release.
To resolve this issue:
- Create a separate feature branch for your changes.
- Cherry-pick your commits into your feature branch.
- Retry your command.
Docs
Edit this page to fix an error or add an improvement in a merge request.
Create an issue to suggest an improvement to this page.
Product
Create an issue if there's something you don't like about this feature.
Propose functionality by submitting a feature request.
Feature availability and product trials
View pricing to see all GitLab tiers and features, or to upgrade.
Try GitLab for free with access to all features for 30 days.
Get help
If you didn't find what you were looking for, search the docs.
If you want help with something specific and could use community support, post on the GitLab forum.
For problems setting up or using this feature (depending on your GitLab subscription).
Request support