errael commented on issue #4865:
URL: https://github.com/apache/netbeans/issues/4865#issuecomment-1314149308

   Poking around NbGradleProjectImpl, it looks like the issue is that 
`:compose` does not have a java-base plugin so it does not get 
JDPAProcessorFactory (which is where `Listening for transport dt_socket ...` is 
detected.
   
   Tried adding to `:compose`'s build.gradle `plugins { id 'java' }` but then 
got error
   ```
   A problem occurred evaluating root project 'compose'.
   > Cannot add task 'clean' as a task with that name already exists.
   ```
   and similarly with `build`. Commented out the clean and build tasks. But 
then when clicking `Debug` got an exception 
   ```
   WARNING [org.netbeans.modules.gradle.loaders.LegacyProjectLoader]: 
           object is not an instance of declaring class
   java.lang.IllegalArgumentException: object is not an instance of declaring 
class
        at 
java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
           ...
   ```
   
   (Been a great opportunity to look a little deeper into the miracle that is 
Lookup)
   The following trace shows what paths are added to the project's lookup
   
   ```
   === :app
   
   NbGradleProjectImpl:  constructor: id 2b5d41c5 :app      lookup 15,  basic 
15,  dependent -1,  added -1,  
   
   NbGradleProjectImpl: enter watcher: :app
   NbGradleProjectImpl: path: Projects/org-netbeans-modules-gradle/Lookup
   NbGradleProjectImpl: path: 
Projects/org-netbeans-modules-gradle/Plugins/_any/Lookup
   NbGradleProjectImpl:      watcher: id 2b5d41c5 :app      lookup 15,  basic 
15,  dependent -1,  added 34,  
   
   NbGradleProjectImpl: enter watcher: :app
   NbGradleProjectImpl: path: 
Projects/org-netbeans-modules-gradle/Plugins/java/Lookup
   NbGradleProjectImpl: path: 
Projects/org-netbeans-modules-gradle/Plugins/java-base/Lookup
   NbGradleProjectImpl: path: 
Projects/org-netbeans-modules-gradle/Plugins/base/Lookup
   NbGradleProjectImpl: path: 
Projects/org-netbeans-modules-gradle/Plugins/root/Lookup
   NbGradleProjectImpl:      watcher: id 2b5d41c5 :app      lookup 42*, basic 
15,  dependent 44,  added 44,  JDPA
   
   === :compose
   
   NbGradleProjectImpl:  constructor: id 66d3b84d :compose  lookup 15,  basic 
15,  dependent -1,  added -1,  
   
   NbGradleProjectImpl: enter watcher: :compose
   NbGradleProjectImpl: path: Projects/org-netbeans-modules-gradle/Lookup
   NbGradleProjectImpl: path: 
Projects/org-netbeans-modules-gradle/Plugins/_any/Lookup
   NbGradleProjectImpl:      watcher: id 66d3b84d :compose  lookup 15,  basic 
15,  dependent -1,  added 34,  
   
   NbGradleProjectImpl: enter watcher: :compose
   ### NOTE: only root, not java-base so no JDPAProcessorFactory
   NbGradleProjectImpl: path: 
Projects/org-netbeans-modules-gradle/Plugins/root/Lookup
   NbGradleProjectImpl:      watcher: id 66d3b84d :compose  lookup 24,  basic 
15,  dependent 34,  added 34,  
   ```
   


-- 
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

Reply via email to