Error: Cannot add comment to this document.

Discussion of open issues, suggestions and bugs regarding code review tool for Visual Studio – Review Assistant
Post Reply
mst
Posts: 12
Joined: Tue 03 Sep 2013 08:43

Error: Cannot add comment to this document.

Post by mst » Tue 03 Sep 2013 08:55

We're using Review Assistant 1.2.35 with Visual Studio 2012 Premium Update 3 and TortoiseSVN 1.8.2. The configured diff tool is "Visual Studio Internal".

Problem:
1. Dev makes change at revision 2 and creates review request.
2. Other devs make plenty of changes, working copy is updated to revision 5.
3. Reviewer starts review with updated working copy (revision 5).
4. Reviewer double-clicks on a source file src.cs to see the changes.
5. This seems to call "Compare Base and Last revision", the file is shown as "src.cs - Revision 1" on the left and "src.cs - Revision 2" on the right side
6. Now the reviewer right-clicks on a change in the right window and selects "Add Review Comment"

=> This shows the error message "Cannot add comment to this document. This file doesn't belong to any repository of the current Review Assistant project."

Why is this happening?
I believe the problem is that the working copy is at revision 5 and we're looking at revisions 1 and 2. But this is required in this case.
If at step 4 above the reviewer selects "Compare Base Revision with Working Copy", then the comment can be added just fine, but this compares revision 1 to 5, which is not what we want here.

Is this a bug or a configuration problem?
Last edited by mst on Tue 17 Sep 2013 09:37, edited 1 time in total.

mst
Posts: 12
Joined: Tue 03 Sep 2013 08:43

Re: Error: Cannot add comment to this document.

Post by mst » Tue 17 Sep 2013 09:34

Could there anybody please help us with this issue?
Thanks

AlexeyN
Devart Team
Posts: 244
Joined: Wed 12 Sep 2012 12:09

Re: Error: Cannot add comment to this document.

Post by AlexeyN » Thu 19 Sep 2013 10:12

Yes, this is a known problem, when you are unable to add a review comment to some kind of files using visual studio internal diff tool. Try to use Code Compare integrated to Visual Studio, it allows you to add comments during comparison right inside Visual Studio.
http://www.devart.com/codecompare/

We have postponed the task due to Microsoft limitations to extending Visual Studio diff tool. We will disable "Add Review Comment" in the internal diff tool while this feature does not work correctly.

mst
Posts: 12
Joined: Tue 03 Sep 2013 08:43

Re: Error: Cannot add comment to this document.

Post by mst » Thu 19 Sep 2013 11:26

Thanks for your reply. We will try to solve the problem with the free edition of Code Compare and let you know whether it works.

mst
Posts: 12
Joined: Tue 03 Sep 2013 08:43

Re: Error: Cannot add comment to this document.

Post by mst » Mon 23 Sep 2013 08:27

Updated to Review Assistant 2.0 and Code Compare 3.0 Free. This works just fine.

Post Reply