Failed to create code review-Problems not synchronized with server-exiting
If, while you are setting up a code review from Eclipse, Visual Studio or IntelliJ IDEA, you see the message, "Failed to create code review: Problems not synchronized with server;exiting", it indicates that locally detected issues can't be synchronized because there are no common files between your desktop project under version control and the project you're connected to on the Klocwork Server.
Klocwork requires synchronization between your local project and the integration project on the server, in order to display detected local issues. When synchronization can't occur, your attempts to submit a pre-checkin code review will fail.
You will need to connect to the appropriate integration project on the Klocwork Server. Contact your administrator to find out which integration project you need to connect to.
For instructions on connecting to the integration project (or checking which project you're connected to):
In Eclipse:
In Eclipse, server settings vary by project. Check the Project name field and make sure the correct integration project is selected.
- Right-click the project, select Properties, expand Klocwork.
- Click the Synchronization tab.
- Check the Project name field and make sure the correct integration project is selected.
If project-specific settings are in effect, Enable project-specific settings is already checked.
In Visual Studio:
- Right-click the solution in the Solution Explorer and select Klocwork Solution Properties.
- Check the Klocwork project field and make sure the correct integration project is selected.
- If your solution also contains C# projects, then you need to check the Klocwork project field in the C# tab of the Klocwork Properties dialog.
In IntelliJ IDEA
- Go to File > Settings, and under Project Settings, click Klocwork for Java.
- Check the Klocwork project field and make sure the correct integration project is selected.