Menu

#95 wrong project is executed if switching projects during build-and-run

Next_Release
open
nobody
None
Feature_Request
2022-05-17
2014-11-17
Riot
No

If pressing build-and-run and then switching to a different project while the build is in progress, at the end of the build, the currently selected project will be executed instead of the one that was building.

Discussion

  • FuzzyToothpaste

    FuzzyToothpaste - 2014-11-30

    Confirmed in latest Code::Blocks SVN (10040). I have also noticed this: if I go to project #1 and choose to build and run main.c, then switch to project #2 main.c while it does that, it will build and run project #2 instead of #1. Even weirder, if I go back to project #1, choose build and run, and stay there, it will still build and run project #2. If I manually choose build and then run, it still happens.

     
  • Teodor Petrov

    Teodor Petrov - 2014-12-01

    Switching project is something that should be disabled during building, but apparently it is not. Until we add code to disable switching project, just remember not to do it while you're building something.

     
    • Riot

      Riot - 2014-12-03

      Huh, why would you disable it? That would be a total anti-feature! Some of my builds regularly take upwards of 20 minutes, and it's a huge dent in productivity if I can't work on other projects, including running or debugging or modifying project properties of other projects while one is building.

      Locking out features that have no reason to affect the current build is just harming the user experience for no reason whatsoever.

       
  • Teodor Petrov

    Teodor Petrov - 2014-12-03

    To save you from random problems. If you want to work on two projects simultaneously just start two instances of C::B. There is a setting that allows it.

     
  • Morten MacFly

    Morten MacFly - 2015-02-07
    • Type: --> Undefined
     
  • Teodor Petrov

    Teodor Petrov - 2016-01-20
    • Type: Undefined --> Feature_Request
     
  • Andrew Cottrell

    Andrew Cottrell - 2022-05-17

    See ticket 91 for related request.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.