Author Topic: Error message on codeblocks startup  (Read 7031 times)

PDEE

  • Guest
Error message on codeblocks startup
« on: November 18, 2006, 11:17:51 am »
Hi all, not been on here for a while as i don't have problems with code::blocks. Until now. I had to put a new hard drive in because i had damaged sectors. Anyway, reinstalled code::blocks from scratch and when i start code::blocks, everytime this message pops up:

Can not enumerate files in directory 'C:\Documents and Settings\name\Application Data\codeblocks/share/codeblocks/plugins'(error 3:the system cannot find the path specified.)

There is no plugins folder inside that folder. There is only a folder called scripts. Anyone shed some light on this? The software works fine it's just that message. Thank you in advance.

Oops, should know by now...forgot the info you require hehe : Build Nov 17 2006, wx2.6.3 windows xp unicode. Never mind, it looks like i'm not the only one. Should of looked first. I know, my bad  :(
« Last Edit: November 18, 2006, 11:23:20 am by PDEE »

Offline OnlineCop

  • Single posting newcomer
  • *
  • Posts: 4
Re: Error message on codeblocks startup
« Reply #1 on: November 18, 2006, 08:10:58 pm »
PDEE:

I got the same thing (I just installed C::B two days ago).  To fix, I simply added a "plugins" folder manually and everything worked fine.

Open your My Computer, enter this on the Location Bar at the top (including both percent-signs):

  %APPDATA%

That will take you to:

  C:\Documents and Settings\~yourname~\Application Data

Find there, navigate to:

  C:\Documents and Settings\~yourname~\Application Data\codeblocks\share\codeblocks

Create the subdirectory "plugins" and when you restart C::B, everything should work.

Offline killerbot

  • Administrator
  • Lives here!
  • *****
  • Posts: 5529
Re: Error message on codeblocks startup
« Reply #2 on: November 18, 2006, 10:57:05 pm »
hmm,
void ConfigManager::InitPaths()

should take care of this

@Thomas : can you check this ??

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9723
Re: Error message on codeblocks startup
« Reply #3 on: November 18, 2006, 11:16:08 pm »
@Thomas : can you check this ??
...I believe he did that in r3233?!
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

PDEE

  • Guest
Re: Error message on codeblocks startup
« Reply #4 on: November 19, 2006, 01:29:48 am »
Thanks everyone, works a treat now.  :D

Offline killerbot

  • Administrator
  • Lives here!
  • *****
  • Posts: 5529
Re: Error message on codeblocks startup
« Reply #5 on: November 19, 2006, 09:42:24 am »
@Thomas : can you check this ??
...I believe he did that in r3233?!

that explains why the code looked ok to me ;-)

Offline thomas

  • Administrator
  • Lives here!
  • *****
  • Posts: 3979
Re: Error message on codeblocks startup
« Reply #6 on: November 19, 2006, 02:15:39 pm »
@Thomas : can you check this ??
...I believe he did that in r3233?!

that explains why the code looked ok to me ;-)
ConfigManager sure looks ok, because it was OK :)
The problem is that if you build your paths by concatenating substrings, rather than using ConfigManager::GetPath(), then obviously GetPath() never executes and never calls InitPaths(). That was fixed in above revision.
"We should forget about small efficiencies, say about 97% of the time: Premature quotation is the root of public humiliation."