Problem with "Show differences" and sgdm

If you are having a problem using Vault, post a message here.

Moderator: SourceGear

syntax2k3
Posts: 10
Joined: Mon Mar 31, 2008 3:18 pm

Problem with "Show differences" and sgdm

Post by syntax2k3 » Mon Mar 31, 2008 3:24 pm

Hello,

I get a very frustrating error message when I try to click "Show Differences" on a local file.

SGDM starts and displays the following message

Code: Select all

Ignoring Extra Pathname: '(E:\lchinese_wf\New_features\prefs.cpp)'
Ignoring Extra Pathname: 'C:\Documents'
Ignoring Extra Pathname: 'and'
Ignoring Extra Pathname: 'Settings\Jérôme\Local'
Ignoring Extra Pathname: 'Settings\Application'
Ignoring Extra Pathname: 'Data\SourceGear\Vault_1\Client\A3174A1D-9D98-4065-A801-65F485D9346F\admin\_sgvault\1851965827\2883.6423'
Ignoring Extra Pathname: 'E:\lchinese_wf\New_features\prefs.cpp'
Cannot determine file type for file/dir 0 -- Cannot Continue.
Cannot determine file type for file/dir 1 -- Cannot Continue.
Cannot determine file type for file/dir 2 -- Cannot Continue.

Command Line Arguments Received:

    c:\program files\sourcegear\vault client/sgdm.exe
    /ro1
    /ro2
    /title1:Repository
    version
    ($/New_features/prefs.cpp)
    /title2:Working
    version
    (E:\lchinese_wf\New_features\prefs.cpp)
    C:\Documents
    and
    Settings\Jérôme\Local
    Settings\Application
    Data\SourceGear\Vault_1\Client\A3174A1D-9D98-4065-A801-65F485D9346F\admin\_sgvault\1851965827\2883.6423
    E:\lchinese_wf\New_features\prefs.cpp

My config :

Code: Select all

Client Information
    Vault Client Version: 3.5.1.4786
    .Net Framework Version: 1.1.4322.573
    Operating System: Microsoft Windows XP Professional
    Service Pack: 2.0
    OS Version: 5.1.2600
    Total Physical Memory: 1022,42 MB
    Time Zone: (GMT+01:00) Brussels, Copenhagen, Madrid, Paris
    
Server Information
    Vault Server Version: 3.5.1.4786
    .Net Framework Version: 2.0.50727.42
    Operating System: Microsoft Windows XP Professional
    Service Pack: 2.0
    OS Version: 5.1.2600
    Timezone: (GMT+01:00) Brussels, Copenhagen, Madrid, Paris
    SQL Version: Microsoft SQL Server 2005 - 9.00.1399.06 (Intel X86) 
        	Oct 14 2005 00:33:37 
        	Copyright (c) 1988-2005 Microsoft Corporation
        	Express Edition on Windows NT 5.1 (Build 2600: Service Pack 2)
Any idea ? It used to work but now it's somewhat broken :-/
Thank you for your help

Beth
Posts: 8550
Joined: Wed Jun 21, 2006 8:24 pm
Location: SourceGear
Contact:

Post by Beth » Mon Mar 31, 2008 3:45 pm

What are the exact steps you are going through?

Are you selecting a file inside of Vault and performing a diff, or selecting a file inside of Visual Studio, or are you running sgdm as a separate program to diff two files on disk?

syntax2k3
Posts: 10
Joined: Mon Mar 31, 2008 3:18 pm

Post by syntax2k3 » Mon Mar 31, 2008 11:55 pm

In the "Pending change set" tab, I right-click on a given file and select "Show Differences".

I tried to play around with the options but without result, so I restored them to default:

Diff
Program: %VAULT_EXE_DIR%/sgdm.exe
Arguments: /ro1 /ro2 /title1:"%LEFT_LABEL%" /title2:"%RIGHT_LABEL%" "%LEFT_PATH%" "%RIGHT_PATH%"

Jerome

Beth
Posts: 8550
Joined: Wed Jun 21, 2006 8:24 pm
Location: SourceGear
Contact:

Post by Beth » Tue Apr 01, 2008 10:03 am

Which version of Vault are you on?

syntax2k3
Posts: 10
Joined: Mon Mar 31, 2008 3:18 pm

Post by syntax2k3 » Tue Apr 01, 2008 2:00 pm

Vault Client Version: 3.5.1.4786

jeffhostetler
Posts: 534
Joined: Tue Jun 05, 2007 11:37 am
Location: SourceGear
Contact:

Post by jeffhostetler » Tue Apr 01, 2008 2:53 pm

From what I can tell from your original post, it looks like a quoting
problem. The title string and the individual pathnames need quotes
if they contain spaces.

The command line arg dump that you listed is essentially:
for(k=0;k<argc;k++) printf(" %s\n",argv[k]);

so it is seeing the first title as "Repository" and the first file as "version"
and so on....
Command Line Arguments Received:

c:\program files\sourcegear\vault client/sgdm.exe
/ro1
/ro2
/title1:Repository
version
($/New_features/prefs.cpp)
/title2:Working
version
(E:\lchinese_wf\New_features\prefs.cpp)
C:\Documents
and
Settings\Jérôme\Local
Settings\Application
Data\SourceGear\Vault_1\Client\A3174A1D-9D98-4065-A801-65F485D9346F\admin\_sgvault\1851965827\2883.6423
E:\lchinese_wf\New_features\prefs.cpp
It looks like you need quotes around the titles and (at least) the first
actual pathname because they have spaces in them.

For example:

/title1:"Repository version ($/New_features/prefs.cpp)"

hope this helps,
jeff

syntax2k3
Posts: 10
Joined: Mon Mar 31, 2008 3:18 pm

Post by syntax2k3 » Wed Apr 02, 2008 12:18 am

Thank you for your help Jeff,

I thought the same thing about quotes and I tried to play around with the settings, but eventually I set them back to default because quotes are in there!

Program: %VAULT_EXE_DIR%/sgdm.exe
Arguments: /ro1 /ro2 /title1:"%LEFT_LABEL%" /title2:"%RIGHT_LABEL%" "%LEFT_PATH%" "%RIGHT_PATH%"

Beth
Posts: 8550
Joined: Wed Jun 21, 2006 8:24 pm
Location: SourceGear
Contact:

Post by Beth » Wed Apr 02, 2008 8:50 am

Are you saying then you get that error with the original default settings?

syntax2k3
Posts: 10
Joined: Mon Mar 31, 2008 3:18 pm

Post by syntax2k3 » Wed Apr 02, 2008 1:02 pm

YES !

Beth
Posts: 8550
Joined: Wed Jun 21, 2006 8:24 pm
Location: SourceGear
Contact:

Post by Beth » Wed Apr 02, 2008 3:21 pm

c:\program files\sourcegear\vault client/sgdm.exe
Did you notice that one of your '\' is backwards in your path? Try flipping that.

jeffhostetler
Posts: 534
Joined: Tue Jun 05, 2007 11:37 am
Location: SourceGear
Contact:

Now I'm confused.

Post by jeffhostetler » Wed Apr 02, 2008 3:50 pm

Now I'm confused. I thought you indicated that after you set
things back to the system defaults, it was working.

With the system defaults installed, what error messages are you
getting?

jeff

syntax2k3
Posts: 10
Joined: Mon Mar 31, 2008 3:18 pm

Post by syntax2k3 » Thu Apr 03, 2008 12:48 am

Sorry for the confusion.

One day this error message popped-up out of the blue.

I tried to look at the settings (I never looked at them before) and tried to change them but it didn't help so I set default values back.

Maybe I will try to upgrade to a newer version.

syntax2k3
Posts: 10
Joined: Mon Mar 31, 2008 3:18 pm

Post by syntax2k3 » Thu Apr 03, 2008 12:52 am

Beth wrote:
c:\program files\sourcegear\vault client/sgdm.exe
Did you notice that one of your '\' is backwards in your path? Try flipping that.
I changed
%VAULT_EXE_DIR%\sgdm.exe to
%VAULT_EXE_DIR%/sgdm.exe

=> Still not working

Beth
Posts: 8550
Joined: Wed Jun 21, 2006 8:24 pm
Location: SourceGear
Contact:

Post by Beth » Thu Apr 03, 2008 12:29 pm

Can we get the exact error with the default settings? I'm wondering if it's exactly the same or a bit different.

syntax2k3
Posts: 10
Joined: Mon Mar 31, 2008 3:18 pm

Post by syntax2k3 » Fri Apr 04, 2008 12:30 am

I think it is the same as what I've posted earlier:

Code: Select all

Ignoring Extra Pathname: '(E:\lchinese_wf\Bug_Fixing\checkupdate.cpp)'
Ignoring Extra Pathname: 'C:\Documents'
Ignoring Extra Pathname: 'and'
Ignoring Extra Pathname: 'Settings\Jérôme\Local'
Ignoring Extra Pathname: 'Settings\Application'
Ignoring Extra Pathname: 'Data\SourceGear\Vault_1\Client\A3174A1D-9D98-4065-A801-65F485D9346F\admin\_sgvault\-373105473\1209.1209'
Ignoring Extra Pathname: 'E:\lchinese_wf\Bug_Fixing\checkupdate.cpp'
Cannot determine file type for file/dir 0 -- Cannot Continue.
Cannot determine file type for file/dir 1 -- Cannot Continue.
Cannot determine file type for file/dir 2 -- Cannot Continue.

Command Line Arguments Received:

    c:\program files\sourcegear\vault client\sgdm.exe
    /ro1
    /ro2
    /title1:Baseline
    version
    ($/Bug_Fixing/checkupdate.cpp)
    /title2:Working
    version
    (E:\lchinese_wf\Bug_Fixing\checkupdate.cpp)
    C:\Documents
    and
    Settings\Jérôme\Local
    Settings\Application
    Data\SourceGear\Vault_1\Client\A3174A1D-9D98-4065-A801-65F485D9346F\admin\_sgvault\-373105473\1209.1209
    E:\lchinese_wf\Bug_Fixing\checkupdate.cpp

Post Reply