FogBugz Technical Support

A forum for technical support discussion related to Fogbugz.
The current FogBugz Knowledge Base can be found at http://help.fogcreek.com/fogbugz.

Posts by Fog Creek Employees are marked:

Documentation
Release Notes
Network Status

Error in Perforce integration vbs

Greetings!

I have the following setup:

Perforce & SQL Server on a Win2000 Server system
FB4 on an IIS v6/Win2003 system

FB4 works fine.
Perforce works fine.

I am trying to set up the FB integration to P4.

It is not working.

So, I tried just running the script from a command prompt, e.g:

          cscript.exe logbugdatap4.vbs

This fails with this error:

>>>>>>>>>>>>>>>>>>
Microsoft (R) Windows Script Host Version 5.1 for Windows
Copyright (C) Microsoft Corporation 1996-1999. All rights reserved.

C:\sqldata\logBugDataP4.vbs(23, 11) Microsoft VBScript runtime error: Object doe
sn't support this property or method: 'WScript.Arguments.UnNamed'
<<<<<<<<<<<<<<<<<<

What is my next step?

Thanks!
Woofster Send private email
Wednesday, March 30, 2005
 
 
Andy Miller
Wednesday, March 30, 2005
 
 
OK, I resolved this problem. The issue is that the FB script requires the scripting engine v5.6, and Win2000 out of the box has v5.1. (This is mentioned in the FB system requirements, but it is NOT mentioned in the docs that say how to install the version control integration!).

So now the script DOES run, but fails. I turned on logging in the FB script (logBugDataP4.vbs) and here is what the log says:

>>>>>>>>>>>>>>>
ChangeList: 12027
ServerPort: 192.168.199.108:1986
Client: joedev
UserSubmitting: joe
UserAuthenticating: buildsystem
Password:
p4: cmd /c p4 -c joedev -p 192.168.199.108:1986 -u buildsystem -P
p4: cmd /c p4 -c joedev -p 192.168.199.108:1986 -u buildsystem -P
sLogInfo: error: Unknown command.  Try 'p4 help' for info.
exit: 1

ixBug = 0
Change Info:
Examining line:
Match NOT found!
Examining line:    Perforce -- the Fast Software Configuration Management System.
Match NOT found!
Examining line:
Match NOT found!
Examining line:    p4 is Perforce's client tool for the command line.  Try:
Match NOT found!
Examining line:
Match NOT found!
Examining line:     p4 help simple        list most common commands
Match NOT found!
Examining line:     p4 help commands      list all commands
Match NOT found!
Examining line:     p4 help command      help on a specific command
Match NOT found!
Examining line:
Match NOT found!
Examining line:     p4 help charset      help on character set translation
Match NOT found!
Examining line:     p4 help environment  list environment and registry variables
Match NOT found!
Examining line:     p4 help filetypes    list supported file types
Match NOT found!
Examining line:     p4 help jobview      help on jobview syntax
Match NOT found!
Examining line:     p4 help revisions    help on specifying file revisions
Match NOT found!
Examining line:     p4 help usage        generic command line arguments
Match NOT found!
Examining line:     p4 help views        help on view syntax
Match NOT found!
Examining line:
Match NOT found!
Examining line:    The full user manual is available at http://www.perforce.com/manual.
Match NOT found!
Examining line:
Match NOT found!
Examining line:    Server 2003.2/53591.
Match NOT found!
Examining line:
<<<<<<<<<<<<<<<<

Next step is????

Thanks!!!!
Woofster Send private email
Wednesday, March 30, 2005
 
 
This is so wierd...I just wrote to Dmitri about this today. I also do not use a password. So remove the last line from this section of the script...

Dim p4: p4 = "cmd /c p4 -c " & Client & _
            " -p " & ServerPort & _
            " -u " & UserAuthenticating & _
            " -P " & Password
Andy Miller
Thursday, March 31, 2005
 
 
That worked!

Thank you very much!
Woofster Send private email
Thursday, March 31, 2005
 
 
Sorry for the confusion! I've added mention of 5.6 to the online docs.

We'll be putting up a script that handles a lack of passwords, but for now - and for posterity - if you are not using passwords it would like look this:

Dim p4: p4 = "cmd /c p4 -c " & Client & _
            " -p " & ServerPort & _
            " -u " & UserAuthenticating
Dmitri Kalmar Send private email
Thursday, March 31, 2005
 
 

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics
 
Powered by FogBugz Bug Tracking and Evidence-Based Scheduling.