chkaufmann 17 Posted August 20, 2019 Hi, I have a project group with four applications. Since I switched to Rio, using F9 or Ctrl-F9 sometimes goes wrong. "Logo12" is my active project but it compiles not only this one but one of the others as well. Here is my .grouproj file. I don't see anything, that could cause the problem: <Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> <PropertyGroup> <ProjectGuid>{BAB4E504-1645-40A4-8EFD-7B3797E49F2A}</ProjectGuid> </PropertyGroup> <ItemGroup> <Projects Include="Logo12.dproj"> <Dependencies/> </Projects> <Projects Include="Logo12Tests.dproj"> <Dependencies/> </Projects> <Projects Include="Logo12Kuba.dproj"> <Dependencies/> </Projects> <Projects Include="Logo12KubaDe.dproj"> <Dependencies/> </Projects> </ItemGroup> <ProjectExtensions> <Borland.Personality>Default.Personality.12</Borland.Personality> <Borland.ProjectType/> <BorlandProject> <Default.Personality/> </BorlandProject> </ProjectExtensions> <Target Name="Logo12"> <MSBuild Projects="Logo12.dproj"/> </Target> <Target Name="Logo12:Clean"> <MSBuild Projects="Logo12.dproj" Targets="Clean"/> </Target> <Target Name="Logo12:Make"> <MSBuild Projects="Logo12.dproj" Targets="Make"/> </Target> <Target Name="Logo12Tests"> <MSBuild Projects="Logo12Tests.dproj"/> </Target> <Target Name="Logo12Tests:Clean"> <MSBuild Projects="Logo12Tests.dproj" Targets="Clean"/> </Target> <Target Name="Logo12Tests:Make"> <MSBuild Projects="Logo12Tests.dproj" Targets="Make"/> </Target> <Target Name="Logo12Kuba"> <MSBuild Projects="Logo12Kuba.dproj"/> </Target> <Target Name="Logo12Kuba:Clean"> <MSBuild Projects="Logo12Kuba.dproj" Targets="Clean"/> </Target> <Target Name="Logo12Kuba:Make"> <MSBuild Projects="Logo12Kuba.dproj" Targets="Make"/> </Target> <Target Name="Logo12KubaDe"> <MSBuild Projects="Logo12KubaDe.dproj"/> </Target> <Target Name="Logo12KubaDe:Clean"> <MSBuild Projects="Logo12KubaDe.dproj" Targets="Clean"/> </Target> <Target Name="Logo12KubaDe:Make"> <MSBuild Projects="Logo12KubaDe.dproj" Targets="Make"/> </Target> <Target Name="Build"> <CallTarget Targets="Logo12;Logo12Tests;Logo12Kuba;Logo12KubaDe"/> </Target> <Target Name="Clean"> <CallTarget Targets="Logo12:Clean;Logo12Tests:Clean;Logo12Kuba:Clean;Logo12KubaDe:Clean"/> </Target> <Target Name="Make"> <CallTarget Targets="Logo12:Make;Logo12Tests:Make;Logo12Kuba:Make;Logo12KubaDe:Make"/> </Target> <Import Project="$(BDS)\Bin\CodeGear.Group.Targets" Condition="Exists('$(BDS)\Bin\CodeGear.Group.Targets')"/> </Project> Any hints or tips what goes wrong? Christian Share this post Link to post
chkaufmann 17 Posted August 26, 2019 Am I the only one who ever saw this problem? Christian Share this post Link to post
Dalija Prasnikar 1396 Posted August 26, 2019 This is long standing issue... I even had bug report in old QC related to this. Problem is not only that it compiles multiple projects when you only want one, but it messes up compile defines and you can end up with total mess in the resulting exe. I eventually gave up, and I no longer have multiple projects in a group. You can try filling bug report in QP and hope it will be solved one fine day. Share this post Link to post
chkaufmann 17 Posted August 26, 2019 I tried this (only one project per group). But then I run into the problem that the IDE loads this project in a new group (ProjectGroup1.grouproj) the next time I start it and when I compile I have to save the group. Do you just work with .dproj files directly? Christian Share this post Link to post
Uwe Raabe 2057 Posted August 26, 2019 It is not a general problem with the IDE. Otherwise I wouldn't be able to work efficiently any more. When there is nothing suspicious in the groupproj file, it might be something special in the dproj files. Share this post Link to post
chkaufmann 17 Posted August 26, 2019 Ok. My .dproj file has about 1800 lines. What should I look for? Christian Share this post Link to post
Uwe Raabe 2057 Posted August 26, 2019 As I never had such an issue, I simply cannot tell. Perhaps creating a new dproj for each project affected helps. Share this post Link to post
Guest Posted August 26, 2019 41 minutes ago, Uwe Raabe said: Perhaps creating a new dproj for each project affected helps. When i move my own projects, i tend to omit that file and open the .dpr. And quite often start a new "group". Share this post Link to post
Dalija Prasnikar 1396 Posted August 26, 2019 1 hour ago, chkaufmann said: I tried this (only one project per group). But then I run into the problem that the IDE loads this project in a new group (ProjectGroup1.grouproj) the next time I start it and when I compile I have to save the group. Do you just work with .dproj files directly? While IDE automatically "adds" project to "new" group when you open project, it never forced me to save that group. Maybe you are changing something "group" related so it requires saving. Share this post Link to post
chkaufmann 17 Posted August 26, 2019 Yes, I noticed that now. But when I open the .DPR file, it doesn't close the last one, it just adds the new project in the same ProjectGroup1.groupproj. So again I have more than one project in the group :-(. I know we have many new features in Delphi, but sometimes I wish to see IDE stability as it was in D7.... Christian Share this post Link to post
Uwe Raabe 2057 Posted August 26, 2019 11 minutes ago, chkaufmann said: But when I open the .DPR file, it doesn't close the last one, it just adds the new project in the same ProjectGroup1.groupproj. That is not the usual behavior. There must be something special in your installation. Can you provide detailed steps? Share this post Link to post
chkaufmann 17 Posted August 26, 2019 I had to deactivate the GExperts project manager. Now I can open a .dproj and the previous will be closed. Not perfect, but one problem less. Christian Share this post Link to post
dummzeuch 1505 Posted August 26, 2019 2 hours ago, chkaufmann said: I had to deactivate the GExperts project manager. Now I can open a .dproj and the previous will be closed. Not perfect, but one problem less. There is nothing called "project manager" in GExperts. What functionality exactly are you talking about? Share this post Link to post
chkaufmann 17 Posted August 26, 2019 It's the "Open File" Manager. I can still use it, but I don't set it as default for opening projects. Before I filtered on *.groupproj files there because almost all projects I have there is more than one .dpr. But now I open the .dproj files and set the most important ones as favorites on the welcom page. Christian Share this post Link to post