Author Topic: Can't type curly brackets  (Read 12066 times)

Offline Stashue

  • Single posting newcomer
  • *
  • Posts: 3
Can't type curly brackets
« on: February 12, 2019, 05:19:05 pm »
I'm new in code:blocks (I use an old mac) and I can't type curly brackets, even with the US keyboard (shift and bracket).
What can I do?
Thanks for the help!  :)

Offline sodev

  • Regular
  • ***
  • Posts: 497
Re: Can't type curly brackets
« Reply #1 on: February 12, 2019, 05:55:35 pm »
Do you have a mac keyboard attached our a regular pc one? IIRC these special characters are on different keys on macs than pcs, do a google about mac keyboard layouts.

Offline BlueHazzard

  • Developer
  • Lives here!
  • *****
  • Posts: 3353
Re: Can't type curly brackets
« Reply #2 on: February 12, 2019, 06:52:19 pm »
This seems to be a old mac issue:
http://forums.codeblocks.org/index.php/topic,8390.msg61928.html#msg61928
i think there is a faq somewhere that answers this question...

Offline the_incredible_frank

  • Single posting newcomer
  • *
  • Posts: 7
Re: Can't type curly brackets
« Reply #3 on: March 04, 2019, 07:37:48 am »
I can't type [ or { on Mac (10.14.3 Mojave and Spanish keyboard). I've been searching into this forum and there are some user reporting the same problem with French and Spanish keyboards on Mac but I haven't found the solution.

Does anybody knows how to fix it?
Thanks.

Note: I'm so sorry if I disturbed someone in my last message.
« Last Edit: March 04, 2019, 07:39:58 pm by the_incredible_frank »

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: Can't type curly brackets
« Reply #4 on: March 04, 2019, 10:45:24 am »
the_incredible_frank:
It would have be better if instead of spending the time to make your post full of animations you've spend the time reporting how to reproduce the issue?
Do you have the issue if you add an english layout and use it?
Which exactly is the layout you are using?
(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!]

Offline the_incredible_frank

  • Single posting newcomer
  • *
  • Posts: 7
Re: Can't type curly brackets
« Reply #5 on: March 04, 2019, 07:52:40 pm »
the_incredible_frank:
Do you have the issue if you add an english layout and use it?
Which exactly is the layout you are using?
I've just added different layouts and these are the results:
- OK: English: UK
- Bug: English: UK - PC
- OK: English: USA
- Bug: English: USA International - PC

I usually use Spanish - Spain ISO layout.

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: Can't type curly brackets
« Reply #6 on: March 04, 2019, 10:52:17 pm »
the_incredible_frank:
What version are you using? What is the keyboard model you have and even the machine mode?
For me using a self build version on mbp 2015 with bg keyboard all layout variants from your post work fine - I'm able to type both [ and {.

Here is the list of all variants of apple keyboards: https://support.apple.com/en-ke/HT201794
(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!]

Offline the_incredible_frank

  • Single posting newcomer
  • *
  • Posts: 7
Re: Can't type curly brackets
« Reply #7 on: March 05, 2019, 07:49:54 am »
Spanish Apple Keyboard:


Code::Blocks 13.12 rev 0
SDK version: 1.19.0
« Last Edit: March 05, 2019, 07:51:53 am by the_incredible_frank »

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: Can't type curly brackets
« Reply #8 on: March 05, 2019, 08:47:43 am »
What happens if you tries some of the night builds provided recently?
(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!]

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: Can't type curly brackets
« Reply #9 on: March 05, 2019, 08:53:18 am »
From the image it seems that braces should be typed with alt-gr key. Is this what doesn't work? Does any other alt-gr key work?
(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!]

Offline the_incredible_frank

  • Single posting newcomer
  • *
  • Posts: 7
Re: Can't type curly brackets
« Reply #10 on: March 05, 2019, 11:57:06 am »
From the image it seems that braces should be typed with alt-gr key. Is this what doesn't work? Does any other alt-gr key work?

Yes, AltGr+1st key to the right of "P" key doesn't works and AltGr+2nd key to the right of "L" key doesn't works too.

All AltGr+key works fine except { and [
« Last Edit: March 05, 2019, 12:05:28 pm by the_incredible_frank »

Offline the_incredible_frank

  • Single posting newcomer
  • *
  • Posts: 7
Re: Can't type curly brackets
« Reply #11 on: March 05, 2019, 12:12:25 pm »
What happens if you tries some of the night builds provided recently?
I've just installed the 09 February 2019 build (11562) night build and now I can type [ and {.

Thank you very much.

Offline the_incredible_frank

  • Single posting newcomer
  • *
  • Posts: 7
Re: Can't type curly brackets
« Reply #12 on: March 05, 2019, 12:58:07 pm »
Everything is OK and I can type [ and {.

I can build my C project (console application) with 0 errors and 0 warnings but when I try to run it I have some problems.

Build log:
-------------- Run: Debug in TestApp (compiler: GNU GCC Compiler)---------------

Checking for existence: /Users/francisco/code/C/TestApp/bin/Debug/TestApp
Set variable: DYLD_LIBRARY_PATH=.:
Executing: osascript -e 'tell app "Terminal"' -e 'activate' -e 'do script quoted form of "/Applications/CodeBlocks.app/Contents/MacOS/cb_console_runner DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH:. /Users/francisco/code/C/TestApp/bin/Debug/TestApp "' -e 'end tell'  (in /Users/francisco/code/C/TestApp/.)
Process terminated with status 0 (0 minute(s), 2 second(s))

Terminal window:
Last login: Tue Mar  5 14:06:39 on ttys000
'/Applications/CodeBlocks.app/Contents/MacOS/cb_console_runner DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH:. /Users/francisco/code/C/TestApp/bin/Debug/TestApp '
AirdeFrancisco:~ francisco$ '/Applications/CodeBlocks.app/Contents/MacOS/cb_console_runner DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH:. /Users/francisco/code/C/TestApp/bin/Debug/TestApp '
-bash: /Applications/CodeBlocks.app/Contents/MacOS/cb_console_runner DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH:. /Users/francisco/code/C/TestApp/bin/Debug/TestApp : No such file or directory

I think it's because Debugger executable path is empty.
« Last Edit: March 05, 2019, 02:15:39 pm by the_incredible_frank »

Offline BlueHazzard

  • Developer
  • Lives here!
  • *****
  • Posts: 3353
Re: Can't type curly brackets
« Reply #13 on: March 06, 2019, 08:51:00 pm »
Are you hitting the red (debug) or the green (run) arrow?
If you hit the green arrow the debugger does not matter.
Can you runt the compiled program from the command line?
There seems to be some new mac people around here in the forum, maybe they can help you...

Offline the_incredible_frank

  • Single posting newcomer
  • *
  • Posts: 7
Re: Can't type curly brackets
« Reply #14 on: March 07, 2019, 02:10:34 pm »
Are you hitting the red (debug) or the green (run) arrow?
If you hit the green arrow the debugger does not matter.
Can you runt the compiled program from the command line?
There seems to be some new mac people around here in the forum, maybe they can help you...
I use Build >> Run.
The compiled program doesn't run but it's created in bin>debug ant it runs perfectly.