Author Topic: Problem opening files in Code Blocks.  (Read 5295 times)

Offline robertpas

  • Single posting newcomer
  • *
  • Posts: 3
Problem opening files in Code Blocks.
« on: November 25, 2011, 09:53:31 am »
Hello,

I'm running Code Blocks on ubuntu. At first everything was fine, but after a week files stopped opening. If I create a new project I cannot open main.c for editing and neither can I view files imported from elsewhere. I have tried reinstalling Code Blocks and adjusting settings with no success. Does anyone have any ideas besides reinstalling ubuntu?

Thanks in advance!

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9723
Re: Problem opening files in Code Blocks.
« Reply #1 on: November 25, 2011, 08:09:35 pm »
Does anyone have any ideas besides reinstalling ubuntu?
You can try to remove the C::B settings completely (search for default.conf in your home folder), but I don't see a good reason why this would fix your issue.
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

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13406
    • Travis build status
Re: Problem opening files in Code Blocks.
« Reply #2 on: November 25, 2011, 10:07:23 pm »
Have you tried to open your main.c file with another text editor like gedit, scite, vim, nano, mcedit, cat?
Does it work? What are the permissions?
(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 robertpas

  • Single posting newcomer
  • *
  • Posts: 3
Re: Problem opening files in Code Blocks.
« Reply #3 on: November 26, 2011, 08:52:24 am »
Have you tried to open your main.c file with another text editor like gedit, scite, vim, nano, mcedit, cat?
Does it work? What are the permissions?

Yes. Everything else works. It's a Code Blocks issue

Offline robertpas

  • Single posting newcomer
  • *
  • Posts: 3
Re: Problem opening files in Code Blocks.
« Reply #4 on: November 26, 2011, 09:21:57 am »
Solved it. Just created a new user and deleted the old one. Now everything is fine.