I use Komodo IDE, version 9.3.2 on win7 - 64 bit for developing perl scripts
I write those line:
if (EXPR) {
#code
}else{
}
The last right bracket is the closing bracket of a subroutine
I want to close my last else section inserting a new right bracket
The result now is:
if (EXPR) {
#code
}
}else{}
Automaticly the line with ‘else’ goes now down of one line.
This is present everytime I insert a } with Alt+125
I don’t want this automatic channge.
How can I stop it ?
I have this behaviour only starting ftom Komodo 9.x
Bye
careyh
March 11, 2016, 6:27pm
2
HI @ztajoli ,
Please try to reproduce this after running Help > Troubleshooting > Run without Tools.
I’m not able to reproduce this so far. No new lines are added no matter how I add a “}”. I used Alt+125 and the “}” on my keyboard.
Hopefully we can get this sorted out for you. I’m also on Windows, but Windows 10. I doubt that’s a contributing factor.
Hi Caryh,
I confirm that the problemi is still present after running Help > Troubleshooting > Run without Tools.
To solve the problem I downgrade Komodo to ver. 9.2.1 version.
Now it is OK.
Bye
Sorry, I’m wrong.
The problem is still present in 9.2.1
careyh
March 15, 2016, 6:34pm
5
Please include a complete but minimal viable reproduction sample. I just realized you only provided part of the code that you’re actually talking about.
Hi,
sorry the delay.
Starting code:
#!/usr/bin/perl
use strict;
use Modern::Perl;
my $i=0;
if (EXPR) {
#code
};
if ($i>0) {
print "test\n";
}else{
print "test\n";
};
Now I want to insert an else:
#!/usr/bin/perl
use strict;
use Modern::Perl;
my $i=0;
if (EXPR) {
#code
}else
if ($i>0) {
print "test\n";
}else{
print "test\n";
};
If I insert an { } after the new ‘else’ the result is:
#!/usr/bin/perl
use strict;
use Modern::Perl;
my $i=0;
if (EXPR) {
#code
if ($i>0) {
}else{ }
print "test\n";
}else{
print "test\n";
};
Automatically the line with ‘else’ goes now down of one line.
I don’t understand how to stop this behavior.
Bye
Hi, I haven’t been able to reproduce this, but if you turn off Auto-Indent (Edit > Preferences > Editor > Indentation > Auto-indent-style), does that fix the problem? If so, then there might be a bug with our auto-indent feature.
Hi, I turn off Auto-Indent but the problem is still present.
I turn off also:
… Code Intelligence > Enable automatic autocomplete an calltip …
… Code Intelligence > Enable autocomplete fill-up …
… Indentation > Auto-adjiust closing braces
… Smart Editing > Eanble soft characters
… Smart Editing > Warp selection with typer delimiter …
But the problem is still present.
Cheers