Quantcast

[ jEdit-devel ] [jedit:plugin-bugs] #1865 Toggle Line Comment works wrongly

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[ jEdit-devel ] [jedit:plugin-bugs] #1865 Toggle Line Comment works wrongly

Victor Porton

[plugin-bugs:#1865] Toggle Line Comment works wrongly

Status: open
Group:
Created: Thu Aug 18, 2016 02:03 PM UTC by Victor Porton
Last Updated: Thu Aug 18, 2016 02:03 PM UTC
Owner: nobody

jEdit 5.3.0, TextTools 1.16.

In TextTools jEdit plugin there is the following bug:

After "Edit / Source / Line Comment", I have the following code block:

  # my $Iterator = $Query->limited_dataset( [$Params->{DBStart}, $Params->{ItemsPerPage}] )->iterator;
  # my @Cities   = ();
  # while (my $Item = $Iterator->fetch) {
    # my $City = {};
    # for (keys %$Item) {
      # $City->{$_} = $Item->{$_};
    # }
    # push @Cities, $City;
  # }
  # return \@Cities;

Then I run "Plugins / TexTools / Toggle Line Comment". And then it (wrongly) becomes (instead of uncommenting):

  ## my $Iterator = $Query->limited_dataset( [$Params->{DBStart}, $Params->{ItemsPerPage}] )->iterator;
  ## my @Cities   = ();
  ## while (my $Item = $Iterator->fetch) {
  #  # my $City = {};
  #  # for (keys %$Item) {
  #    # $City->{$_} = $Item->{$_};
  #  # }
  #  # push @Cities, $City;
  ## }
  ## return \@Cities;

Sent from sourceforge.net because [hidden email] is subscribed to https://sourceforge.net/p/jedit/plugin-bugs/

To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/jedit/admin/plugin-bugs/options. Or, if this is a mailing list, you can unsubscribe from the mailing list.


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

--
-----------------------------------------------
jEdit Developers' List
[hidden email]
https://lists.sourceforge.net/lists/listinfo/jedit-devel
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[ jEdit-devel ] [jedit:plugin-bugs] #1865 TextTools: Toggle Line Comment works wrongly

Alan Ezust-2
  • summary: Toggle Line Comment works wrongly --> TextTools: Toggle Line Comment works wrongly
  • Group: -->

[plugin-bugs:#1865] TextTools: Toggle Line Comment works wrongly

Status: open
Group:
Created: Thu Aug 18, 2016 02:03 PM UTC by Victor Porton
Last Updated: Thu Aug 18, 2016 02:03 PM UTC
Owner: nobody

jEdit 5.3.0, TextTools 1.16.

In TextTools jEdit plugin there is the following bug:

After "Edit / Source / Line Comment", I have the following code block:

  # my $Iterator = $Query->limited_dataset( [$Params->{DBStart}, $Params->{ItemsPerPage}] )->iterator;
  # my @Cities   = ();
  # while (my $Item = $Iterator->fetch) {
    # my $City = {};
    # for (keys %$Item) {
      # $City->{$_} = $Item->{$_};
    # }
    # push @Cities, $City;
  # }
  # return \@Cities;

Then I run "Plugins / TexTools / Toggle Line Comment". And then it (wrongly) becomes (instead of uncommenting):

  ## my $Iterator = $Query->limited_dataset( [$Params->{DBStart}, $Params->{ItemsPerPage}] )->iterator;
  ## my @Cities   = ();
  ## while (my $Item = $Iterator->fetch) {
  #  # my $City = {};
  #  # for (keys %$Item) {
  #    # $City->{$_} = $Item->{$_};
  #  # }
  #  # push @Cities, $City;
  ## }
  ## return \@Cities;

Sent from sourceforge.net because [hidden email] is subscribed to https://sourceforge.net/p/jedit/plugin-bugs/

To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/jedit/admin/plugin-bugs/options. Or, if this is a mailing list, you can unsubscribe from the mailing list.


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
--
-----------------------------------------------
jEdit Developers' List
[hidden email]
https://lists.sourceforge.net/lists/listinfo/jedit-devel
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[ jEdit-devel ] [jedit:plugin-bugs] #1865 TextTools: Toggle Line Comment works wrongly

Dale Anson-2
In reply to this post by Victor Porton

What edit mode are you using for this code? I'm assuming Python, and using that, I can't reproduce this issue. I did these steps:

  1. copy the code from the first example
  2. remove the leading # from each line
  3. select all text
  4. Edit - Source - Line Comment
  5. all lines are now preceded with #
  6. select all text
  7. Plugins - TextTools - Toggle Line Comment
  8. all lines are now uncommented as expected

[plugin-bugs:#1865] TextTools: Toggle Line Comment works wrongly

Status: open
Group:
Created: Thu Aug 18, 2016 02:03 PM UTC by Victor Porton
Last Updated: Mon Mar 20, 2017 02:35 PM UTC
Owner: nobody

jEdit 5.3.0, TextTools 1.16.

In TextTools jEdit plugin there is the following bug:

After "Edit / Source / Line Comment", I have the following code block:

  # my $Iterator = $Query->limited_dataset( [$Params->{DBStart}, $Params->{ItemsPerPage}] )->iterator;
  # my @Cities   = ();
  # while (my $Item = $Iterator->fetch) {
    # my $City = {};
    # for (keys %$Item) {
      # $City->{$_} = $Item->{$_};
    # }
    # push @Cities, $City;
  # }
  # return \@Cities;

Then I run "Plugins / TexTools / Toggle Line Comment". And then it (wrongly) becomes (instead of uncommenting):

  ## my $Iterator = $Query->limited_dataset( [$Params->{DBStart}, $Params->{ItemsPerPage}] )->iterator;
  ## my @Cities   = ();
  ## while (my $Item = $Iterator->fetch) {
  #  # my $City = {};
  #  # for (keys %$Item) {
  #    # $City->{$_} = $Item->{$_};
  #  # }
  #  # push @Cities, $City;
  ## }
  ## return \@Cities;

Sent from sourceforge.net because [hidden email] is subscribed to https://sourceforge.net/p/jedit/plugin-bugs/

To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/jedit/admin/plugin-bugs/options. Or, if this is a mailing list, you can unsubscribe from the mailing list.


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
--
-----------------------------------------------
jEdit Developers' List
[hidden email]
https://lists.sourceforge.net/lists/listinfo/jedit-devel
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[ jEdit-devel ] [jedit:plugin-bugs] #1865 TextTools: Toggle Line Comment works wrongly

Victor Porton
In reply to this post by Victor Porton

Weird. it works now without the bug (with the same versions of jEdit and TextTools).

And it is Perl.


[plugin-bugs:#1865] TextTools: Toggle Line Comment works wrongly

Status: open
Group:
Created: Thu Aug 18, 2016 02:03 PM UTC by Victor Porton
Last Updated: Mon Apr 03, 2017 04:38 PM UTC
Owner: nobody

jEdit 5.3.0, TextTools 1.16.

In TextTools jEdit plugin there is the following bug:

After "Edit / Source / Line Comment", I have the following code block:

  # my $Iterator = $Query->limited_dataset( [$Params->{DBStart}, $Params->{ItemsPerPage}] )->iterator;
  # my @Cities   = ();
  # while (my $Item = $Iterator->fetch) {
    # my $City = {};
    # for (keys %$Item) {
      # $City->{$_} = $Item->{$_};
    # }
    # push @Cities, $City;
  # }
  # return \@Cities;

Then I run "Plugins / TexTools / Toggle Line Comment". And then it (wrongly) becomes (instead of uncommenting):

  ## my $Iterator = $Query->limited_dataset( [$Params->{DBStart}, $Params->{ItemsPerPage}] )->iterator;
  ## my @Cities   = ();
  ## while (my $Item = $Iterator->fetch) {
  #  # my $City = {};
  #  # for (keys %$Item) {
  #    # $City->{$_} = $Item->{$_};
  #  # }
  #  # push @Cities, $City;
  ## }
  ## return \@Cities;

Sent from sourceforge.net because [hidden email] is subscribed to https://sourceforge.net/p/jedit/plugin-bugs/

To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/jedit/admin/plugin-bugs/options. Or, if this is a mailing list, you can unsubscribe from the mailing list.


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
--
-----------------------------------------------
jEdit Developers' List
[hidden email]
https://lists.sourceforge.net/lists/listinfo/jedit-devel
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[ jEdit-devel ] [jedit:plugin-bugs] #1865 TextTools: Toggle Line Comment works wrongly

Dale Anson-2
In reply to this post by Victor Porton
  • status: open --> closed-invalid
  • Comment:

Good to know! I'll go ahead and close this.


[plugin-bugs:#1865] TextTools: Toggle Line Comment works wrongly

Status: closed-invalid
Group:
Created: Thu Aug 18, 2016 02:03 PM UTC by Victor Porton
Last Updated: Mon Apr 03, 2017 04:54 PM UTC
Owner: nobody

jEdit 5.3.0, TextTools 1.16.

In TextTools jEdit plugin there is the following bug:

After "Edit / Source / Line Comment", I have the following code block:

  # my $Iterator = $Query->limited_dataset( [$Params->{DBStart}, $Params->{ItemsPerPage}] )->iterator;
  # my @Cities   = ();
  # while (my $Item = $Iterator->fetch) {
    # my $City = {};
    # for (keys %$Item) {
      # $City->{$_} = $Item->{$_};
    # }
    # push @Cities, $City;
  # }
  # return \@Cities;

Then I run "Plugins / TexTools / Toggle Line Comment". And then it (wrongly) becomes (instead of uncommenting):

  ## my $Iterator = $Query->limited_dataset( [$Params->{DBStart}, $Params->{ItemsPerPage}] )->iterator;
  ## my @Cities   = ();
  ## while (my $Item = $Iterator->fetch) {
  #  # my $City = {};
  #  # for (keys %$Item) {
  #    # $City->{$_} = $Item->{$_};
  #  # }
  #  # push @Cities, $City;
  ## }
  ## return \@Cities;

Sent from sourceforge.net because [hidden email] is subscribed to https://sourceforge.net/p/jedit/plugin-bugs/

To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/jedit/admin/plugin-bugs/options. Or, if this is a mailing list, you can unsubscribe from the mailing list.


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
--
-----------------------------------------------
jEdit Developers' List
[hidden email]
https://lists.sourceforge.net/lists/listinfo/jedit-devel
Loading...