Parallel view bug using SVN, get uninitialized value error

classic Classic list List threaded Threaded
12 messages Options
Reply | Threaded
Open this post in threaded view
|

Parallel view bug using SVN, get uninitialized value error

Chris Welch
Using Codestriker 1.9.10 with SVN 1.6.  Patches are typically created using TortoiseSVN 1.6.2 (right click, generate patch).

Most of the time this works but we have some Topics that the full file content is blank when you do a Parallel view.  This failure occurs regardless of browser.

The Apache log shows the following error for this request:

[Tue Feb 28 11:27:37 2012] [error] [client 10.13.36.124] [Tue Feb 28 11:27:37 2012] codestriker.pl: Use of uninitialized value in concatenation (.) or string at /var/www/codestriker/lib/Codestriker/Action/ViewTopicFile.pm line 113., referer: http://aontools/codestriker/codestriker.pl?action=view&topic=2687633&mode=2&fview=0

The code in question is:

        # Output those lines leading up to the start of the next delta.
        # Build up a delta with no changes, and render it.
        my $next_delta_linenumber = $delta->{old_linenumber};
        for (my $i = $old_linenumber; $i < $next_delta_linenumber; $i++) {
            $delta_text .= " $filedata[$i]\n";
            $old_linenumber++;

with the failure occurring at the delta_text concatenation (I.e. $filedata[$i] is uninitialized).

Any ideas on how to fix or work around this?

Tx,

Chris Welch



------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
_______________________________________________
Codestriker-user mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/codestriker-user
Reply | Threaded
Open this post in threaded view
|

Re: Parallel view bug using SVN, get uninitialized value error

Chris Welch
To clarify, the Parallel display is not completely blank, the differences show up, but the rest of the file display is blank except for the line number indication.

-----Original Message-----
From: Chris Welch [mailto:[hidden email]]
Sent: Tuesday, February 28, 2012 12:11 PM
To: [hidden email]
Subject: [Codestriker-user] Parallel view bug using SVN, get uninitialized value error

Using Codestriker 1.9.10 with SVN 1.6.  Patches are typically created using TortoiseSVN 1.6.2 (right click, generate patch).

Most of the time this works but we have some Topics that the full file content is blank when you do a Parallel view.  This failure occurs regardless of browser.

The Apache log shows the following error for this request:

[Tue Feb 28 11:27:37 2012] [error] [client 10.13.36.124] [Tue Feb 28 11:27:37 2012] codestriker.pl: Use of uninitialized value in concatenation (.) or string at /var/www/codestriker/lib/Codestriker/Action/ViewTopicFile.pm line 113., referer: http://aontools/codestriker/codestriker.pl?action=view&topic=2687633&mode=2&fview=0

The code in question is:

        # Output those lines leading up to the start of the next delta.
        # Build up a delta with no changes, and render it.
        my $next_delta_linenumber = $delta->{old_linenumber};
        for (my $i = $old_linenumber; $i < $next_delta_linenumber; $i++) {
            $delta_text .= " $filedata[$i]\n";
            $old_linenumber++;

with the failure occurring at the delta_text concatenation (I.e. $filedata[$i] is uninitialized).

Any ideas on how to fix or work around this?

Tx,

Chris Welch



------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
_______________________________________________
Codestriker-user mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/codestriker-user

------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
_______________________________________________
Codestriker-user mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/codestriker-user
Reply | Threaded
Open this post in threaded view
|

Re: Parallel view bug using SVN, get uninitialized value error

David Sitsky
Administrator
In reply to this post by Chris Welch
Hi Chris,

That error message in the logs basically indicates that no data was
retrieved from the subversion server for some reason.  Normally the
logs would contain some information about it.

I've sometimes seen this issue happen in the past where the revisions
were created on different branches that what the repository is based
off.

In Subversion.pm:
http://codestriker.cvs.sourceforge.net/viewvc/codestriker/codestriker/lib/Codestriker/Repository/Subversion.pm?revision=1.29&view=markup
around line 77, you could try replacing:

push @args, @{ $self->{userCmdLine} };
push @args, $self->{repository_url} . '/' . $filename . '@' . $revision;

with

push @args, '-r';
push @args, $revision;
push @args, @{ $self->{userCmdLine} };
push @args, $self->{repository_url} . '/' . $filename;

to see if it makes any difference.

There was some semantic differences with how subversion treats @r
retrievals vs -r retrievals.  A long time ago, somebody made the
change to use @r retrievals

Cheers,
David

On Wed, Feb 29, 2012 at 4:10 AM, Chris Welch <[hidden email]> wrote:

> Using Codestriker 1.9.10 with SVN 1.6.  Patches are typically created using TortoiseSVN 1.6.2 (right click, generate patch).
>
> Most of the time this works but we have some Topics that the full file content is blank when you do a Parallel view.  This failure occurs regardless of browser.
>
> The Apache log shows the following error for this request:
>
> [Tue Feb 28 11:27:37 2012] [error] [client 10.13.36.124] [Tue Feb 28 11:27:37 2012] codestriker.pl: Use of uninitialized value in concatenation (.) or string at /var/www/codestriker/lib/Codestriker/Action/ViewTopicFile.pm line 113., referer: http://aontools/codestriker/codestriker.pl?action=view&topic=2687633&mode=2&fview=0
>
> The code in question is:
>
>        # Output those lines leading up to the start of the next delta.
>        # Build up a delta with no changes, and render it.
>        my $next_delta_linenumber = $delta->{old_linenumber};
>        for (my $i = $old_linenumber; $i < $next_delta_linenumber; $i++) {
>            $delta_text .= " $filedata[$i]\n";
>            $old_linenumber++;
>
> with the failure occurring at the delta_text concatenation (I.e. $filedata[$i] is uninitialized).
>
> Any ideas on how to fix or work around this?
>
> Tx,
>
> Chris Welch
>
>
>
> ------------------------------------------------------------------------------
> Keep Your Developer Skills Current with LearnDevNow!
> The most comprehensive online learning library for Microsoft developers
> is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
> Metro Style Apps, more. Free future releases when you subscribe now!
> http://p.sf.net/sfu/learndevnow-d2d
> _______________________________________________
> Codestriker-user mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/codestriker-user

------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
_______________________________________________
Codestriker-user mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/codestriker-user
Reply | Threaded
Open this post in threaded view
|

Re: Parallel view bug using SVN, get uninitialized value error

David Carson
This couldn't have to do with 'highlight' being defined, but no highlight utility being installed, could it?  Seems like when I hit that particular error, it showed up as data not being retrieved as expected.

On Wed, Feb 29, 2012 at 12:42 AM, David Sitsky <[hidden email]> wrote:
Hi Chris,

That error message in the logs basically indicates that no data was
retrieved from the subversion server for some reason.  Normally the
logs would contain some information about it.

I've sometimes seen this issue happen in the past where the revisions
were created on different branches that what the repository is based
off.

In Subversion.pm:
http://codestriker.cvs.sourceforge.net/viewvc/codestriker/codestriker/lib/Codestriker/Repository/Subversion.pm?revision=1.29&view=markup
around line 77, you could try replacing:

push @args, @{ $self->{userCmdLine} };
push @args, $self->{repository_url} . '/' . $filename . '@' . $revision;

with

push @args, '-r';
push @args, $revision;
push @args, @{ $self->{userCmdLine} };
push @args, $self->{repository_url} . '/' . $filename;

to see if it makes any difference.

There was some semantic differences with how subversion treats @r
retrievals vs -r retrievals.  A long time ago, somebody made the
change to use @r retrievals

Cheers,
David

On Wed, Feb 29, 2012 at 4:10 AM, Chris Welch <[hidden email]> wrote:
> Using Codestriker 1.9.10 with SVN 1.6.  Patches are typically created using TortoiseSVN 1.6.2 (right click, generate patch).
>
> Most of the time this works but we have some Topics that the full file content is blank when you do a Parallel view.  This failure occurs regardless of browser.
>
> The Apache log shows the following error for this request:
>
> [Tue Feb 28 11:27:37 2012] [error] [client 10.13.36.124] [Tue Feb 28 11:27:37 2012] codestriker.pl: Use of uninitialized value in concatenation (.) or string at /var/www/codestriker/lib/Codestriker/Action/ViewTopicFile.pm line 113., referer: http://aontools/codestriker/codestriker.pl?action=view&topic=2687633&mode=2&fview=0
>
> The code in question is:
>
>        # Output those lines leading up to the start of the next delta.
>        # Build up a delta with no changes, and render it.
>        my $next_delta_linenumber = $delta->{old_linenumber};
>        for (my $i = $old_linenumber; $i < $next_delta_linenumber; $i++) {
>            $delta_text .= " $filedata[$i]\n";
>            $old_linenumber++;
>
> with the failure occurring at the delta_text concatenation (I.e. $filedata[$i] is uninitialized).
>
> Any ideas on how to fix or work around this?
>
> Tx,
>
> Chris Welch
>
>
>
> ------------------------------------------------------------------------------
> Keep Your Developer Skills Current with LearnDevNow!
> The most comprehensive online learning library for Microsoft developers
> is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
> Metro Style Apps, more. Free future releases when you subscribe now!
> http://p.sf.net/sfu/learndevnow-d2d
> _______________________________________________
> Codestriker-user mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/codestriker-user

------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
_______________________________________________
Codestriker-user mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/codestriker-user


------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
_______________________________________________
Codestriker-user mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/codestriker-user
Reply | Threaded
Open this post in threaded view
|

Re: Parallel view bug using SVN, get uninitialized value error

Chris Welch

Great, tx gentlemen I’ll look into both of these suggestions.  I suspect the different branch is the most likely cause as many of our projects make heavy use of externals.

 

Chris

 

From: David Carson [mailto:[hidden email]]
Sent: Wednesday, February 29, 2012 8:29 AM
To: David Sitsky
Cc: Chris Welch; [hidden email]
Subject: Re: [Codestriker-user] Parallel view bug using SVN, get uninitialized value error

 

This couldn't have to do with 'highlight' being defined, but no highlight utility being installed, could it?  Seems like when I hit that particular error, it showed up as data not being retrieved as expected.

On Wed, Feb 29, 2012 at 12:42 AM, David Sitsky <[hidden email]> wrote:

Hi Chris,

That error message in the logs basically indicates that no data was
retrieved from the subversion server for some reason.  Normally the
logs would contain some information about it.

I've sometimes seen this issue happen in the past where the revisions
were created on different branches that what the repository is based
off.

In Subversion.pm:
http://codestriker.cvs.sourceforge.net/viewvc/codestriker/codestriker/lib/Codestriker/Repository/Subversion.pm?revision=1.29&view=markup
around line 77, you could try replacing:

push @args, @{ $self->{userCmdLine} };
push @args, $self->{repository_url} . '/' . $filename . '@' . $revision;

with

push @args, '-r';
push @args, $revision;
push @args, @{ $self->{userCmdLine} };
push @args, $self->{repository_url} . '/' . $filename;

to see if it makes any difference.

There was some semantic differences with how subversion treats @r
retrievals vs -r retrievals.  A long time ago, somebody made the
change to use @r retrievals

Cheers,
David


On Wed, Feb 29, 2012 at 4:10 AM, Chris Welch <[hidden email]> wrote:


> Using Codestriker 1.9.10 with SVN 1.6.  Patches are typically created using TortoiseSVN 1.6.2 (right click, generate patch).
>
> Most of the time this works but we have some Topics that the full file content is blank when you do a Parallel view.  This failure occurs regardless of browser.
>
> The Apache log shows the following error for this request:
>
> [Tue Feb 28 11:27:37 2012] [error] [client 10.13.36.124] [Tue Feb 28 11:27:37 2012] codestriker.pl: Use of uninitialized value in concatenation (.) or string at /var/www/codestriker/lib/Codestriker/Action/ViewTopicFile.pm line 113., referer: http://aontools/codestriker/codestriker.pl?action=view&topic=2687633&mode=2&fview=0
>
> The code in question is:
>
>        # Output those lines leading up to the start of the next delta.
>        # Build up a delta with no changes, and render it.
>        my $next_delta_linenumber = $delta->{old_linenumber};
>        for (my $i = $old_linenumber; $i < $next_delta_linenumber; $i++) {
>            $delta_text .= " $filedata[$i]\n";
>            $old_linenumber++;
>
> with the failure occurring at the delta_text concatenation (I.e. $filedata[$i] is uninitialized).
>
> Any ideas on how to fix or work around this?
>
> Tx,
>
> Chris Welch
>
>
>
> ------------------------------------------------------------------------------
> Keep Your Developer Skills Current with LearnDevNow!
> The most comprehensive online learning library for Microsoft developers
> is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
> Metro Style Apps, more. Free future releases when you subscribe now!
> http://p.sf.net/sfu/learndevnow-d2d
> _______________________________________________
> Codestriker-user mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/codestriker-user

------------------------------------------------------------------------------

Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/

_______________________________________________
Codestriker-user mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/codestriker-user

 


------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
_______________________________________________
Codestriker-user mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/codestriker-user
Reply | Threaded
Open this post in threaded view
|

Re: Parallel view bug using SVN, get uninitialized value error

Chris Welch
In reply to this post by David Carson
I tried the code change and the Parallel display still comes up empty.  Do we have to recreate the Topic for this code change to have effect (I.e. the change is used during Topic creation, not dynamically during Topic display)?

Tx,

Chris

From: Chris Welch
Sent: Wednesday, February 29, 2012 9:44 AM
To: [hidden email]
Subject: RE: [Codestriker-user] Parallel view bug using SVN, get uninitialized value error

Great, tx gentlemen I'll look into both of these suggestions.  I suspect the different branch is the most likely cause as many of our projects make heavy use of externals.

Chris

From: David Carson [mailto:[hidden email]]
Sent: Wednesday, February 29, 2012 8:29 AM
To: David Sitsky
Cc: Chris Welch; [hidden email]
Subject: Re: [Codestriker-user] Parallel view bug using SVN, get uninitialized value error

This couldn't have to do with 'highlight' being defined, but no highlight utility being installed, could it?  Seems like when I hit that particular error, it showed up as data not being retrieved as expected.
On Wed, Feb 29, 2012 at 12:42 AM, David Sitsky <[hidden email]> wrote:
Hi Chris,

That error message in the logs basically indicates that no data was
retrieved from the subversion server for some reason.  Normally the
logs would contain some information about it.

I've sometimes seen this issue happen in the past where the revisions
were created on different branches that what the repository is based
off.

In Subversion.pm:
http://codestriker.cvs.sourceforge.net/viewvc/codestriker/codestriker/lib/Codestriker/Repository/Subversion.pm?revision=1.29&view=markup
around line 77, you could try replacing:

push @args, @{ $self->{userCmdLine} };
push @args, $self->{repository_url} . '/' . $filename . '@' . $revision;

with

push @args, '-r';
push @args, $revision;
push @args, @{ $self->{userCmdLine} };
push @args, $self->{repository_url} . '/' . $filename;

to see if it makes any difference.

There was some semantic differences with how subversion treats @r
retrievals vs -r retrievals.  A long time ago, somebody made the
change to use @r retrievals

Cheers,
David

On Wed, Feb 29, 2012 at 4:10 AM, Chris Welch <[hidden email]> wrote:

> Using Codestriker 1.9.10 with SVN 1.6.  Patches are typically created using TortoiseSVN 1.6.2 (right click, generate patch).
>
> Most of the time this works but we have some Topics that the full file content is blank when you do a Parallel view.  This failure occurs regardless of browser.
>
> The Apache log shows the following error for this request:
>
> [Tue Feb 28 11:27:37 2012] [error] [client 10.13.36.124] [Tue Feb 28 11:27:37 2012] codestriker.pl: Use of uninitialized value in concatenation (.) or string at /var/www/codestriker/lib/Codestriker/Action/ViewTopicFile.pm line 113., referer: http://aontools/codestriker/codestriker.pl?action=view&topic=2687633&mode=2&fview=0
>
> The code in question is:
>
>        # Output those lines leading up to the start of the next delta.
>        # Build up a delta with no changes, and render it.
>        my $next_delta_linenumber = $delta->{old_linenumber};
>        for (my $i = $old_linenumber; $i < $next_delta_linenumber; $i++) {
>            $delta_text .= " $filedata[$i]\n";
>            $old_linenumber++;
>
> with the failure occurring at the delta_text concatenation (I.e. $filedata[$i] is uninitialized).
>
> Any ideas on how to fix or work around this?
>
> Tx,
>
> Chris Welch
>
>
>
> ------------------------------------------------------------------------------
> Keep Your Developer Skills Current with LearnDevNow!
> The most comprehensive online learning library for Microsoft developers
> is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
> Metro Style Apps, more. Free future releases when you subscribe now!
> http://p.sf.net/sfu/learndevnow-d2d
> _______________________________________________
> Codestriker-user mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/codestriker-user
------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
_______________________________________________
Codestriker-user mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/codestriker-user


------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
_______________________________________________
Codestriker-user mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/codestriker-user
Reply | Threaded
Open this post in threaded view
|

Re: Parallel view bug using SVN, get uninitialized value error

Chris Welch
In reply to this post by David Carson
Looking through the documentation I think we are hitting this problem:

"This file should then be selected for the "Topic text upload" field. The "Start tag", "End tag" and "Module" fields have no relevance in this situation. Because of an issue in Subversion, running the svn diff command outside of the repository root will not allow Codestriker to download and review the full file (although the patch segments can still be reviewed). If you commit your code first, then let Codestriker make the diff, as explained in the next section, then you can avoid this limitation."

I'll check and see how the problematic Topics were created.

Chris

-----Original Message-----
From: Chris Welch
Sent: Wednesday, February 29, 2012 11:34 AM
To: '[hidden email]'
Subject: RE: [Codestriker-user] Parallel view bug using SVN, get uninitialized value error

I tried the code change and the Parallel display still comes up empty.  Do we have to recreate the Topic for this code change to have effect (I.e. the change is used during Topic creation, not dynamically during Topic display)?

Tx,

Chris

From: Chris Welch
Sent: Wednesday, February 29, 2012 9:44 AM
To: [hidden email]
Subject: RE: [Codestriker-user] Parallel view bug using SVN, get uninitialized value error

Great, tx gentlemen I'll look into both of these suggestions.  I suspect the different branch is the most likely cause as many of our projects make heavy use of externals.

Chris

From: David Carson [mailto:[hidden email]]
Sent: Wednesday, February 29, 2012 8:29 AM
To: David Sitsky
Cc: Chris Welch; [hidden email]
Subject: Re: [Codestriker-user] Parallel view bug using SVN, get uninitialized value error

This couldn't have to do with 'highlight' being defined, but no highlight utility being installed, could it?  Seems like when I hit that particular error, it showed up as data not being retrieved as expected.
On Wed, Feb 29, 2012 at 12:42 AM, David Sitsky <[hidden email]> wrote:
Hi Chris,

That error message in the logs basically indicates that no data was
retrieved from the subversion server for some reason.  Normally the
logs would contain some information about it.

I've sometimes seen this issue happen in the past where the revisions
were created on different branches that what the repository is based
off.

In Subversion.pm:
http://codestriker.cvs.sourceforge.net/viewvc/codestriker/codestriker/lib/Codestriker/Repository/Subversion.pm?revision=1.29&view=markup
around line 77, you could try replacing:

push @args, @{ $self->{userCmdLine} };
push @args, $self->{repository_url} . '/' . $filename . '@' . $revision;

with

push @args, '-r';
push @args, $revision;
push @args, @{ $self->{userCmdLine} };
push @args, $self->{repository_url} . '/' . $filename;

to see if it makes any difference.

There was some semantic differences with how subversion treats @r
retrievals vs -r retrievals.  A long time ago, somebody made the
change to use @r retrievals

Cheers,
David

On Wed, Feb 29, 2012 at 4:10 AM, Chris Welch <[hidden email]> wrote:

> Using Codestriker 1.9.10 with SVN 1.6.  Patches are typically created using TortoiseSVN 1.6.2 (right click, generate patch).
>
> Most of the time this works but we have some Topics that the full file content is blank when you do a Parallel view.  This failure occurs regardless of browser.
>
> The Apache log shows the following error for this request:
>
> [Tue Feb 28 11:27:37 2012] [error] [client 10.13.36.124] [Tue Feb 28 11:27:37 2012] codestriker.pl: Use of uninitialized value in concatenation (.) or string at /var/www/codestriker/lib/Codestriker/Action/ViewTopicFile.pm line 113., referer: http://aontools/codestriker/codestriker.pl?action=view&topic=2687633&mode=2&fview=0
>
> The code in question is:
>
>        # Output those lines leading up to the start of the next delta.
>        # Build up a delta with no changes, and render it.
>        my $next_delta_linenumber = $delta->{old_linenumber};
>        for (my $i = $old_linenumber; $i < $next_delta_linenumber; $i++) {
>            $delta_text .= " $filedata[$i]\n";
>            $old_linenumber++;
>
> with the failure occurring at the delta_text concatenation (I.e. $filedata[$i] is uninitialized).
>
> Any ideas on how to fix or work around this?
>
> Tx,
>
> Chris Welch
>
>
>
> ------------------------------------------------------------------------------
> Keep Your Developer Skills Current with LearnDevNow!
> The most comprehensive online learning library for Microsoft developers
> is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
> Metro Style Apps, more. Free future releases when you subscribe now!
> http://p.sf.net/sfu/learndevnow-d2d
> _______________________________________________
> Codestriker-user mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/codestriker-user
------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
_______________________________________________
Codestriker-user mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/codestriker-user


------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
_______________________________________________
Codestriker-user mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/codestriker-user
Reply | Threaded
Open this post in threaded view
|

Re: Parallel view bug using SVN, get uninitialized value error

Chris Welch
In reply to this post by David Carson
The problem we are encountering is with the use of externals in the project.  Obviously the externals won't be at the repository root of the prepared patch, so the full file review for files in externals cannot be prepared by Codestriker.

Chris

-----Original Message-----
From: Chris Welch
Sent: Wednesday, February 29, 2012 11:50 AM
To: '[hidden email]'
Subject: RE: [Codestriker-user] Parallel view bug using SVN, get uninitialized value error

Looking through the documentation I think we are hitting this problem:

"This file should then be selected for the "Topic text upload" field. The "Start tag", "End tag" and "Module" fields have no relevance in this situation. Because of an issue in Subversion, running the svn diff command outside of the repository root will not allow Codestriker to download and review the full file (although the patch segments can still be reviewed). If you commit your code first, then let Codestriker make the diff, as explained in the next section, then you can avoid this limitation."

I'll check and see how the problematic Topics were created.

Chris

-----Original Message-----
From: Chris Welch
Sent: Wednesday, February 29, 2012 11:34 AM
To: '[hidden email]'
Subject: RE: [Codestriker-user] Parallel view bug using SVN, get uninitialized value error

I tried the code change and the Parallel display still comes up empty.  Do we have to recreate the Topic for this code change to have effect (I.e. the change is used during Topic creation, not dynamically during Topic display)?

Tx,

Chris

From: Chris Welch
Sent: Wednesday, February 29, 2012 9:44 AM
To: [hidden email]
Subject: RE: [Codestriker-user] Parallel view bug using SVN, get uninitialized value error

Great, tx gentlemen I'll look into both of these suggestions.  I suspect the different branch is the most likely cause as many of our projects make heavy use of externals.

Chris

From: David Carson [mailto:[hidden email]]
Sent: Wednesday, February 29, 2012 8:29 AM
To: David Sitsky
Cc: Chris Welch; [hidden email]
Subject: Re: [Codestriker-user] Parallel view bug using SVN, get uninitialized value error

This couldn't have to do with 'highlight' being defined, but no highlight utility being installed, could it?  Seems like when I hit that particular error, it showed up as data not being retrieved as expected.
On Wed, Feb 29, 2012 at 12:42 AM, David Sitsky <[hidden email]> wrote:
Hi Chris,

That error message in the logs basically indicates that no data was
retrieved from the subversion server for some reason.  Normally the
logs would contain some information about it.

I've sometimes seen this issue happen in the past where the revisions
were created on different branches that what the repository is based
off.

In Subversion.pm:
http://codestriker.cvs.sourceforge.net/viewvc/codestriker/codestriker/lib/Codestriker/Repository/Subversion.pm?revision=1.29&view=markup
around line 77, you could try replacing:

push @args, @{ $self->{userCmdLine} };
push @args, $self->{repository_url} . '/' . $filename . '@' . $revision;

with

push @args, '-r';
push @args, $revision;
push @args, @{ $self->{userCmdLine} };
push @args, $self->{repository_url} . '/' . $filename;

to see if it makes any difference.

There was some semantic differences with how subversion treats @r
retrievals vs -r retrievals.  A long time ago, somebody made the
change to use @r retrievals

Cheers,
David

On Wed, Feb 29, 2012 at 4:10 AM, Chris Welch <[hidden email]> wrote:

> Using Codestriker 1.9.10 with SVN 1.6.  Patches are typically created using TortoiseSVN 1.6.2 (right click, generate patch).
>
> Most of the time this works but we have some Topics that the full file content is blank when you do a Parallel view.  This failure occurs regardless of browser.
>
> The Apache log shows the following error for this request:
>
> [Tue Feb 28 11:27:37 2012] [error] [client 10.13.36.124] [Tue Feb 28 11:27:37 2012] codestriker.pl: Use of uninitialized value in concatenation (.) or string at /var/www/codestriker/lib/Codestriker/Action/ViewTopicFile.pm line 113., referer: http://aontools/codestriker/codestriker.pl?action=view&topic=2687633&mode=2&fview=0
>
> The code in question is:
>
>        # Output those lines leading up to the start of the next delta.
>        # Build up a delta with no changes, and render it.
>        my $next_delta_linenumber = $delta->{old_linenumber};
>        for (my $i = $old_linenumber; $i < $next_delta_linenumber; $i++) {
>            $delta_text .= " $filedata[$i]\n";
>            $old_linenumber++;
>
> with the failure occurring at the delta_text concatenation (I.e. $filedata[$i] is uninitialized).
>
> Any ideas on how to fix or work around this?
>
> Tx,
>
> Chris Welch
>
>
>
> ------------------------------------------------------------------------------
> Keep Your Developer Skills Current with LearnDevNow!
> The most comprehensive online learning library for Microsoft developers
> is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
> Metro Style Apps, more. Free future releases when you subscribe now!
> http://p.sf.net/sfu/learndevnow-d2d
> _______________________________________________
> Codestriker-user mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/codestriker-user
------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
_______________________________________________
Codestriker-user mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/codestriker-user


------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
_______________________________________________
Codestriker-user mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/codestriker-user
Reply | Threaded
Open this post in threaded view
|

Add multiple module on one topic

Scarlette Ng
In reply to this post by Chris Welch

Hi folks,

Is it possible to add more than 1 module/file on the same Topic title?
I am using codestriker 1.9.10 for ClearCase dynamic view.
Thanks!


-Scarlette


------------------------------------------------------------------------------
WINDOWS 8 is here.
Millions of people.  Your app in 30 days.
Visit The Windows 8 Center at Sourceforge for all your go to resources.
http://windows8center.sourceforge.net/
join-generation-app-and-make-money-coding-fast/
_______________________________________________
Codestriker-user mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/codestriker-user

Reply | Threaded
Open this post in threaded view
|

Re: Add multiple module on one topic

David Sitsky
Administrator
Hi,

It is possible.. I would check the manual for more details, but from
memory you could specify a directory and it would return all
sub-directories and files.

Cheers,
David

On Sat, Oct 27, 2012 at 11:25 AM, Scarlette Ng <[hidden email]> wrote:

> Hi folks,
>
> Is it possible to add more than 1 module/file on the same Topic title?
> I am using codestriker 1.9.10 for ClearCase dynamic view.
> Thanks!
>
> -Scarlette
>
>
> ------------------------------------------------------------------------------
> WINDOWS 8 is here.
> Millions of people.  Your app in 30 days.
> Visit The Windows 8 Center at Sourceforge for all your go to resources.
> http://windows8center.sourceforge.net/
> join-generation-app-and-make-money-coding-fast/
> _______________________________________________
> Codestriker-user mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/codestriker-user
>

------------------------------------------------------------------------------
WINDOWS 8 is here.
Millions of people.  Your app in 30 days.
Visit The Windows 8 Center at Sourceforge for all your go to resources.
http://windows8center.sourceforge.net/
join-generation-app-and-make-money-coding-fast/
_______________________________________________
Codestriker-user mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/codestriker-user
Reply | Threaded
Open this post in threaded view
|

Re: Add multiple module on one topic

Scarlette Ng

Thanks David, in fact, I got the following error when I tried to add the directory in the Clearcase dynamic view:

"Problem generating topic text:

At present CC::Dynamic does not support adding all files of a dir if directory is given. "


Another question: So I will need to add the every dynamic view name under the config file in order for select the "Repository" from the pop-down menu?

-Scarlette

Inactive hide details for David Sitsky ---10/27/2012 02:09:08 AM---Hi, It is possible.. I would check the manual for more detaiDavid Sitsky ---10/27/2012 02:09:08 AM---Hi, It is possible.. I would check the manual for more details, but from

From: David Sitsky <[hidden email]>
To: Scarlette Ng/Santa Clara/IBM@IBMUS
Cc: "[hidden email]" <[hidden email]>
Date: 10/27/2012 02:09 AM
Subject: Re: [Codestriker-user] Add multiple module on one topic





Hi,

It is possible.. I would check the manual for more details, but from
memory you could specify a directory and it would return all
sub-directories and files.

Cheers,
David

On Sat, Oct 27, 2012 at 11:25 AM, Scarlette Ng <[hidden email]> wrote:
> Hi folks,
>
> Is it possible to add more than 1 module/file on the same Topic title?
> I am using codestriker 1.9.10 for ClearCase dynamic view.
> Thanks!
>
> -Scarlette
>
>
> ------------------------------------------------------------------------------
> WINDOWS 8 is here.
> Millions of people.  Your app in 30 days.
> Visit The Windows 8 Center at Sourceforge for all your go to resources.
>
http://windows8center.sourceforge.net/
> join-generation-app-and-make-money-coding-fast/
> _______________________________________________
> Codestriker-user mailing list
> [hidden email]
>
https://lists.sourceforge.net/lists/listinfo/codestriker-user
>



------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_nov
_______________________________________________
Codestriker-user mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/codestriker-user
Reply | Threaded
Open this post in threaded view
|

Re: Add multiple module on one topic

David Sitsky
Administrator
>
> "Problem generating topic text:
>
> At present CC::Dynamic does not support adding all files of a dir if directory is given. "

That is correct.. I didn't write this module and nor do I know
ClearCase.  If you have the option, I believe the clearcase snapshot
route might be more convenient as I think it handles directories?

> Another question: So I will need to add the every dynamic view name under the config file in order for select the "Repository" from the pop-down menu?

That's right.

Cheers,
David

------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_nov
_______________________________________________
Codestriker-user mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/codestriker-user