Author Topic: Fresh Install Error; VERY strange incapabilities...  (Read 4343 times)

donatod85

  • Guest
Fresh Install Error; VERY strange incapabilities...
« on: May 20, 2012, 06:24:18 am »
I'm reading "Beginning Programming with C++ for Dummies".
I've installed Code::Blocks on my Windows desktop using the CD that came with the book, and everything is working fine.

However, I've been trying to install it on my MacBook Pro, and am running into an error when I try to open a New>Project>Console Application via the Wizard.  I get this error both with the version of the App provided on the CD as well as with the "p1" version provided through the Code::Blocks website.

My error is as follows (copied from the Scripting Console):
"
/Applications/CodeBlocks.app/Contents/Resources/share/codeblocks/templates/wizard/console/wizard.script line = (29) column = (83) : error expression expected
"
---------------
So, I opened the indicated file to see if I could reason through what was going wrong, but I see no 'grammatical' issues with the code.

One curious thing I noticed is that all forward-slashes (/) show-up as ¥ symbols. 
My Mac OS is set to Japanese as the default display language... could this be the problem?  Although, this is the only error that occurs, and the ¥ symbol appears in the code a few times before the indicated position for this particular error (e.g. Line29, Column 83).

Another thing I've realized: I cannot use my spacebar to enter a space into the code! (???)
Also, if I try to enter double-quotes ("), it will insert 2 at a time (???).

I know I'm just a beginner, but Code::Blocks is looking to be completely useless on my Mac.
Anyone know what's up?

Offline Alpha

  • Developer
  • Lives here!
  • *****
  • Posts: 1513
Re: Fresh Install Error; VERY strange incapabilities...
« Reply #1 on: May 20, 2012, 07:04:48 pm »
I have not worked on a Mac before, so I am not sure what might help; if you have not already, you could try switching your localization to English.  Also, you could try installing from source.

Offline Freem

  • Almost regular
  • **
  • Posts: 218
Re: Fresh Install Error; VERY strange incapabilities...
« Reply #2 on: May 21, 2012, 02:45:49 pm »
One curious thing I noticed is that all forward-slashes (/) show-up as ¥ symbols. 
My Mac OS is set to Japanese as the default display language... could this be the problem?  Although, this is the only error that occurs, and the ¥ symbol appears in the code a few times before the indicated position for this particular error (e.g. Line29, Column 83).
Sounds like an encoding error.
Check what encoding you are using.
Maybe try to force it in code::blocks or convert files... I can not really help more, because I never had such problems (well... I do not use CJK language nor apple products so...)

Another thing I've realized: I cannot use my spacebar to enter a space into the code! (???)
That could be related to your keyboard layout configuration? I do not know... No other strange behavior with the spacebar? Only this lack of results?

Also, if I try to enter double-quotes ("), it will insert 2 at a time (???).
There is an option to disable, in the editor. Something like brace completion I think.