News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

Error message on codeblocks startup

Started by PDEE, November 18, 2006, 11:17:51 AM

Previous topic - Next topic

PDEE

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  :(

OnlineCop

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.

killerbot

hmm,
void ConfigManager::InitPaths()

should take care of this

@Thomas : can you check this ??

MortenMacFly

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]

PDEE


killerbot


thomas

Quote from: killerbot on November 19, 2006, 09:42:24 AM
Quote from: MortenMacFly on November 18, 2006, 11:16:08 PM
Quote from: killerbot on November 18, 2006, 10:57:05 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."