News:

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

Main Menu

Can't 'Remove Files from Project'... 8.02

Started by Tarkin000, December 19, 2008, 03:09:36 AM

Previous topic - Next topic

Tarkin000

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

Jenna

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.

Tarkin000

Quote from: jens 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 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

TDragon

What jens probably meant was that he always just uses the individual files' right click menus.
[url="https://jmeubank.github.io/tdm-gcc/"]https://jmeubank.github.io/tdm-gcc/[/url] - TDM-GCC compiler suite for Windows (GCC 9.2.0 2020-03-08, 32/64-bit, no extra DLLs)

Tarkin000

#4
Quote from: TDragon on December 23, 2008, 07:32:38 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

Jenna

Quote from: TDragon on December 23, 2008, 07:32:38 PM
What jens probably meant was that he always just uses the individual files' right click menus.
That's correct.