Author Topic: Can not create source file.  (Read 4338 times)

Offline Crux

  • Single posting newcomer
  • *
  • Posts: 2
Can not create source file.
« on: February 07, 2011, 08:00:42 pm »
I want to add a source file but every time I try to do so it ends up in the folder called "Others". Any suggestions to what I could be doing wrong?

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 12127
    • Travis build status
Re: Can not create source file.
« Reply #1 on: February 07, 2011, 08:37:24 pm »
What source file (the extension)?
(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 Crux

  • Single posting newcomer
  • *
  • Posts: 2
Re: Can not create source file.
« Reply #2 on: February 07, 2011, 08:47:49 pm »
.cpp

The strange thing is that I managed to do it yesterday in the exact same way. But today I added a blank file in the Others folder and now it is placing all new files I create in that folder.

Offline jens

  • Administrator
  • Lives here!
  • *****
  • Posts: 7265
    • Jens' unofficial debian-repository for the Code::Blocks - IDE
Re: Can not create source file.
« Reply #3 on: February 07, 2011, 10:38:40 pm »
You might have accidently deleted the appropriate extensions from the filetypes list.
To check this, right-click on your project (in the management pane), choose "Project tree -> Edit file types & categories" and check the content of the category "Sources".

The easiest way to fix this would be to remove the default.conf file from ~/.codeblocks on linux or %APPDATA%\codeblocks on windows.