Code::Blocks Forums

User forums => Help => Topic started by: PDEE on November 18, 2006, 11:17:51 am

Title: Error message on codeblocks startup
Post by: PDEE 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  :(
Title: Re: Error message on codeblocks startup
Post by: OnlineCop 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.
Title: Re: Error message on codeblocks startup
Post by: killerbot on November 18, 2006, 10:57:05 pm
hmm,
void ConfigManager::InitPaths()

should take care of this

@Thomas : can you check this ??
Title: Re: Error message on codeblocks startup
Post by: MortenMacFly on November 18, 2006, 11:16:08 pm
@Thomas : can you check this ??
...I believe he did that in r3233?!
Title: Re: Error message on codeblocks startup
Post by: PDEE on November 19, 2006, 01:29:48 am
Thanks everyone, works a treat now.  :D
Title: Re: Error message on codeblocks startup
Post by: killerbot 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 ;-)
Title: Re: Error message on codeblocks startup
Post by: thomas 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.