Actually I'm not sure what I meant in my original post. ;) I think it was something like "I'm not looking for functionality of CoS, and I don't have it enabled. As it turned out, it was enabled in far more places than expected... I disabled it this morning and everything seems to be working fine.
It's one thing that CoS does not work as intended, but it should not break normal builds. /Patrik Den lör 5 okt. 2024 kl 17:43 skrev Michael Bien <mbie...@gmail.com>: > ah, I understood your original post* on the users list in the sense that > you _weren't_ using the compile on save option - thats why I couldn't > reproduce it. > > But yeah I don't have CoS enabled anywhere either (NB default is also > off these days). It is quite invasive and lets the IDE compile parts of > the projects while sidelining the build which typically causes followup > issues which cost more time at the end of the day anyway. > > best regards, > michael > > * https://lists.apache.org/thread/s1rqm1601b2kpjfsszbqqtbzn7c3b29q > > On 05.10.24 10:47, Patrik Karlström wrote: > > TL;DR > > Disable CoS. > > > > > > NetBeans 23 > > RELEASE230 > > JDK 21 & JDK 23 > > Fedora 40 & Windows 11 > > Maven 3.9.6 -- 3.9.9 > > > > I started this on the user list since I thought it could be a user error > > from my side, > > now I think differently. > > > > The problem is that my code changes do not always seem to be applied > after > > a build and run (from the IDE). The second problem was trying to find out > > how and when. > > > > The problem seems to be triggered by having CoS enabled on a specific > > module, if it's only enabled in the parent pom/nb-configuration it's not > a > > problem. > > > > I'm not relying on the functionality on CoS, but it should not break a > > normal build & run. > > > > Sometimes I'm convinced that I can see a pattern depending on the jdk & > > maven version being used to the point of having a spreadsheet matrix. > Just > > to realize later that is not the case. > > > > At some point I thought that <proc>full</proc> was involved too. > > > > Trying to close NetBeans after investigating this shows the dialog > 'Exiting > > the IDE will terminate the following processes'. > > There are many of them since my attempts to reproduce the problem. > > Could that be related? I have not seen that dialog in a year or so. > > > > I created a small project > > https://github.com/trixon/nbbugcosprocfull > > > > here where one can toggle CoS on the sample and parent project while at > the > > same time changing > > > https://github.com/trixon/nbbugcosprocfull/blob/f330a779fe21533dbb8b90be912c8773fb71e9cf/bugcosprocfull-sample/src/main/java/se/trixon/bugcosprocfull/TestTopComponent.java#L35 > > > https://github.com/trixon/nbbugcosprocfull/blob/f330a779fe21533dbb8b90be912c8773fb71e9cf/bugcosprocfull-sample/src/main/java/se/trixon/bugcosprocfull/TestTopComponent.java#L51 > > > > and then build the sample project and run the application. > > > > /Patrik > > > >