mbien commented on issue #6979:
URL: https://github.com/apache/netbeans/issues/6979#issuecomment-1908116060

   > Well, to be fair, many people have been pushing the cnd branch...
   
   @vieiro yes which is great! I think what @neilcsmith-net meant was that if 
someone cared about the **old** release of CND, it would be possible to repack 
it **without** pack200 and upload it somewhere - without having to rebuild 
anything.
   
   A module compressed with pack200 **is a strong indication of it being an 
unmaintained plugin** which hasn't been rebuild for over a decade. Installation 
itself will not remain the only problem - having decade old hibernate or struts 
1 support (which had the last release 14 years ago) is questionable in itself 
(#6969, #6987, #6810).
   
   here the plugin list of the pre-apache NetBeans 8.2 plugin portal:
   
![image](https://github.com/apache/netbeans/assets/114367/5bc95515-7b6e-41ce-b6ce-b7a5f75d35e4)
   
   
   For what it's worth, I tried to install `C/C++` from plugin portal 8.2 on NB 
20 running on JDK 17 (using pack200 from JDK 11) and got many exceptions like:
   ```
   INFO [org.netbeans.updater]: 780: Unpacking 
org-netbeans-modules-cnd-antlr.nbm
   INFO [org.netbeans.updater]: File installed /run/media/mbien/500GB 
860EVO/nb_data/netbeans_20/cnd/config/Modules/org-netbeans-modules-cnd-antlr.xml@0
   INFO [org.netbeans.updater]: Copied file /run/media/mbien/500GB 
860EVO/nb_data/netbeans_20/cnd/update/download/org-netbeans-modules-cnd-antlr.nbm:netbeans/config/Modules/org-netbeans-modules-cnd-antlr.xml
 to /run/media/mbien/500GB 
860EVO/nb_data/netbeans_20/cnd/config/Modules/org-netbeans-modules-cnd-antlr.xml
   INFO [org.netbeans.updater]: File installed /run/media/mbien/500GB 
860EVO/nb_data/netbeans_20/cnd/modules/locale/org-netbeans-modules-cnd-antlr_ja.jar.pack.gz@0
   INFO [org.netbeans.updater]: Copied file /run/media/mbien/500GB 
860EVO/nb_data/netbeans_20/cnd/update/download/org-netbeans-modules-cnd-antlr.nbm:netbeans/modules/locale/org-netbeans-modules-cnd-antlr_ja.jar.pack.gz
 to /run/media/mbien/500GB 
860EVO/nb_data/netbeans_20/cnd/modules/locale/org-netbeans-modules-cnd-antlr_ja.jar.pack.gz
   INFO [org.netbeans.updater]: Unpack /run/media/mbien/500GB 
860EVO/nb_data/netbeans_20/cnd/modules/locale/org-netbeans-modules-cnd-antlr_ja.jar.pack.gz
 to /run/media/mbien/500GB 
860EVO/nb_data/netbeans_20/cnd/modules/locale/org-netbeans-modules-cnd-antlr_ja.jar
   INFO [org.netbeans.updater]: File /run/media/mbien/500GB 
860EVO/nb_data/netbeans_20/cnd/modules/locale/org-netbeans-modules-cnd-antlr_ja.jar.pack.gz
 deleted.
   INFO [org.netbeans.updater]: Ignore non-readable files 
   java.io.FileNotFoundException: /run/media/mbien/500GB 
860EVO/nb_data/netbeans_20/cnd/modules/locale/org-netbeans-modules-cnd-antlr_ja.jar
 (No such file or directory)
        at java.base/java.io.FileInputStream.open0(Native Method)
        at java.base/java.io.FileInputStream.open(FileInputStream.java:216)
        at java.base/java.io.FileInputStream.<init>(FileInputStream.java:157)
        at 
org.netbeans.updater.UpdateTracking.getFileCRC(UpdateTracking.java:508)
   [catch] at org.netbeans.updater.ModuleUpdater.unpack(ModuleUpdater.java:470)
        at org.netbeans.updater.ModuleUpdater.run(ModuleUpdater.java:118)
   ```
   and installation failed with:
   ```
   INFO [org.netbeans.modules.autoupdate.services.InstallSupportImpl]: Timeout 
waiting for loading module [email protected]
   INFO [org.netbeans.modules.autoupdate.ui.wizards.InstallStep]: timeout of 
loading C/C++ Remote Development 
API[org.netbeans.modules.cnd.api.remote/1.29.5.1]
   org.netbeans.api.autoupdate.OperationException[INSTALL]: timeout of loading 
C/C++ Remote Development API[org.netbeans.modules.cnd.api.remote/1.29.5.1]
        at 
org.netbeans.modules.autoupdate.services.InstallSupportImpl$3.call(InstallSupportImpl.java:431)
        at 
org.netbeans.modules.autoupdate.services.InstallSupportImpl$3.call(InstallSupportImpl.java:291)
        at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
        at 
java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
        at 
java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
   [catch] at java.base/java.lang.Thread.run(Thread.java:840)
   ```
   
   So if someone would like to continue using the old release of the C/C++ 
support plugins. The easiest way to achieve this is to stick to NB 20 (soon NB 
21 once released) and run NetBeans on JDK 11. 
   
   NetBeans 22 will only support running on JDK 17, 21 and 22 and will fail 
during C/C++ plugin installation as demonstrated above (assuming this can't be 
easily fixed - I wouldn't put too much effort into this, but if someone wants 
to take a look: 
https://github.com/apache/netbeans/labels/Contribution%20welcome ;)).
   
   And as previously mentioned I think it would be a opportunity to also remove 
the NB 8.2 plugin portal from the preset list of NB 22. I might open a draft PR 
later and update this post with a link.
   
   [CND](https://github.com/apache/netbeans/tree/cnd) might make it back one 
day into NB in a properly supported manner, but work on that happens during 
spare time and the feature is not trivial to re-integrate.


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