neilcsmith-net commented on code in PR #9776: URL: https://github.com/apache/netbeans/pull/9776#discussion_r4501743052
########## ide/projectui/src/org/netbeans/modules/project/ui/actions/SetMainProject.java: ########## Review Comment: > > Except, are you actually waiting on a pending refresh in LoopupSensitiveAction ?! > > `isEnabled()` and `getValue()` are both blocking on pending refresh. So if you open a context menu and a refresh is in progress it will block. If the update is scheduled but not running, maybe. But there's a race condition if the task is running in the RequestProcessor and `refreshing` is already `true`? And even when the task is completed on the RP, there may still be changes pending on the EDT not accounted for. This may not be a problem if stale data and eventual correctness is not an issue. It was already there, just different and possibly not as much fallout? > what needs to happen first is that the main project is toggled via `Run` main menu once > ... > not planning to fix this behavior in this PR -> false alarm There's some strange initial, but deliberate, behaviour with main project iirc. Need to look back on why. Have come across in platform development. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected] For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
