Author Topic: Can't 'Remove Files from Project'... 8.02  (Read 8794 times)

Offline Tarkin000

  • Single posting newcomer
  • *
  • Posts: 3
Can't 'Remove Files from Project'... 8.02
« on: December 19, 2008, 03:09:36 am »
Hi all,
 System :
   WinXp Pro Version 2002 SP3
   Dell Dimension 4100 / Intel P3 996 MHz / 512MB RAM
 Build     :
  Code::Blocks 8.02
  Feb 27 2008, 20:59:09 - wx2.8.7(Windows,Unicode)
  (w/ bundled MinGW, installed from installer)

No matter how I created the project - from a template (like Win32 GUI),
or even an empty project, after I add files (again, whether or not they
are empty, or imported), I cannot ever _remove_ them using the
'Project -> Remove files...' menu item. If I manually delete the file,
MingW complains that it cannot read the timestamp of the file-
which makes sense, as the file no longer exists, and thus has no timestamp-
so to work around, I have to remove the files in the 'Build Options' dialog(s).
Pressing/selecting the 'Remove files...' menu item does _nothing_. No popup,
no dialog, the 'Project' menu simply rolls up.  :?

Anyone have any ideas what gives? I have done a few cursory Code::Blocks
forum seaches and googles, but nothing similar.
(search terms: "can't remove files from project codeblocks")

TIA,
  Tarkin000

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7255
Re: Can't 'Remove Files from Project'... 8.02
« Reply #1 on: December 19, 2008, 12:36:25 pm »
For me this only happens if neither the project nor any of it's childs is highlighted in the "Project" tree inside the "Management" pane.

I never used this menu-item so I wasn't aware of this issue.

Offline Tarkin000

  • Single posting newcomer
  • *
  • Posts: 3
Re: Can't 'Remove Files from Project'... 8.02
« Reply #2 on: December 23, 2008, 05:43:56 pm »
For me this only happens if neither the project nor any of it's childs is highlighted in the "Project" tree inside the "Management" pane.

I have tried to remove the files when the project is and isn't highlighted. Both ways fail equally.

Quote
I never used this menu-item so I wasn't aware of this issue.

You are probably, at worst, a competent coder. I am not so lucky, yet (though I am reading, "The Practice of Programming", by Kernighan & Pike). I am, at best, a bumbling neophyte, and frequently make design changes. Thus, at least once in any self-conceived project, I am adding an unnecessary file or two.

So far, though, this is a minor inconvenience, albeit a strange one.

Another question, though; is there a menu that should pop up when I left click on the project's name in the 'Management' panel? If there is, it doesn't appear...

Thank you,
  Tarkin000

Offline TDragon

  • Lives here!
  • ****
  • Posts: 943
    • TDM-GCC
Re: Can't 'Remove Files from Project'... 8.02
« Reply #3 on: December 23, 2008, 07:32:38 pm »
What jens probably meant was that he always just uses the individual files' right click menus.
https://jmeubank.github.io/tdm-gcc/ - TDM-GCC compiler suite for Windows (GCC 9.2.0 2020-03-08, 32/64-bit, no extra DLLs)

Offline Tarkin000

  • Single posting newcomer
  • *
  • Posts: 3
SOLVED: Can't 'Remove Files from Project'... 8.02
« Reply #4 on: December 23, 2008, 08:55:06 pm »
What jens probably meant was that he always just uses the individual files' right click menus.

Aha! Yes. I misinterpreted it as he never needed the functionality....

Playing around with the arrow buttons in the 'Management', I found the 'Projects' view, and there, found the project tree.  And was able to delete the unnecessary file  :) And, with the proper project highlighted,
the 'Remove files...' button works as it should. DOH!

As near as I can figure, when I first set up C::B, I must have cycled the the 'Management' pane to the 'Resources' view, and promptly ignored it, taking project management features for granted. Thus, every time I have opened C::B since, the Management has pane opened with the 'Resources' view.

Thank you for you time and patience!

TTFN,
  Tarkin
« Last Edit: December 23, 2008, 09:01:28 pm by Tarkin000 »

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7255
Re: Can't 'Remove Files from Project'... 8.02
« Reply #5 on: December 23, 2008, 09:32:35 pm »
What jens probably meant was that he always just uses the individual files' right click menus.
That's correct.