News:

When registered with our forums, feel free to send a "here I am" post here to differ human beings from SPAM bots.

Main Menu

Problem on brackets

Started by magnified, March 06, 2020, 05:23:42 PM

Previous topic - Next topic

magnified

Hi,
When i tried to type "((" (double parentheses), the editor automatically add two parentheses "))".
But when i type "[[" (double brackets), the editor only add one closing bracket "]"

(())
[[]

I expect that the editor treat brackets as parentheses
Any help would be appreciated.

oBFusCATed

What version are you using? What are your editor settings? This seems to work fine in my trunk version.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

magnified

Quote from: oBFusCATed on March 07, 2020, 12:34:04 AM
What version are you using? What are your editor settings? This seems to work fine in my trunk version.
I'm using C::B 17.12

oBFusCATed

(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

magnified

Quote from: oBFusCATed on March 08, 2020, 01:50:12 PM
Can you try a night build?
I just installed build 11979 but the problem still exist.

oBFusCATed

Ok, I was able to reproduce this. It seems the smartindent plugin is causing this. I don't have time to fix it now, so it will be good if you can log this issue in the tracker on sf.net page. And ping me/us in some time in the future, if there is no progress...
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

magnified

Quote from: oBFusCATed on March 08, 2020, 07:25:29 PM
Ok, I was able to reproduce this. It seems the smartindent plugin is causing this. I don't have time to fix it now, so it will be good if you can log this issue in the tracker on sf.net page. And ping me/us in some time in the future, if there is no progress...
Thank you!

MortenMacFly

Stupid question and I didn't try, but isn't this becasue brace completion" in the editor settings is active?
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]

oBFusCATed

Brace completion works for all types of braces. Without the smartindent plugin enabled it works as expected.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]