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"
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.