#395 variable autocompletion aborts template completion

v0.7.x
open
nobody
Editor (234)
5
2016-05-12
2007-05-09
No

When using a template and filling in the template variables, if you use regular variable autocompletion, it breaks out of the template variable completion.

Example:

Define template "example" to be:

=item ${name}

${out} = ${name}( ${args} );

=cut
sub ${name} {
my ( ${args} ) = @_;

${cursor}
}

Then create a new file, example.pl:

my $foo = 1;

sub a {
my ( $foo, $bar, $baz ) = @_;
}

Put the cursor above the "sub a {" line, type ex, and hit control-space. The template will be dropped in place, and you'll start filling in the template variables. Call the function b and start replacing "out" with "$ba".

=item b

$ba = b( args );

=cut
sub b {
my ( args ) = @_;

}

Hit control-space to invoke autocompletion. The box pops up listing $bar and $baz. If you select one, you're tossed out of the template completion mode; TAB inserts tabs instead of advancing to the next variable.

In some cases, the variable autocompletion box pops up automatically for me when I type $b or any other leading variable while filling in a template. I can't reproduce this consistently. The workaround is to hit escape and continue filling in the template; if I select one, or just type to match one and hit space, I'm tossed out of template-filling-in mode.

I'm using EPIC version 0.5.35 under Eclipse 3.2.2.r322 on Windows 2000.

Discussion

  • Oliver Trosien

    Oliver Trosien - 2016-05-12

    reproducable in 0.7.0

     
  • Oliver Trosien

    Oliver Trosien - 2016-05-12
    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -1,4 +1,3 @@
    -
     When using a template and filling in the template variables, if you use regular variable autocompletion, it breaks out of the template variable completion.
    
     Example:
    
    • Group: v0.5.x --> v0.7.x
     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks