You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@netbeans.apache.org by "Manuel Iglesias (Jira)" <ji...@apache.org> on 2020/06/10 15:16:00 UTC
[jira] [Commented] (NETBEANS-3158) netbeans 11.1 requests
re-installation of nbjavac plugin and fails.
[ https://issues.apache.org/jira/browse/NETBEANS-3158?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17130779#comment-17130779 ]
Manuel Iglesias commented on NETBEANS-3158:
-------------------------------------------
I think I have found a solution.
As I wasn't getting any help here and the bug made 'netbeans' unusable, I started using the following hack:
* After a clean install (including 'nbjavac' & 'javafx' plugins) I copied directory '.netbeans/*/config/Modules' to a safe place.
* I wrote a shell-wrapper to do the following: Delete directory '.netbeans/*/config/Modules', recreate it from the safe copy and then invoke 'netbeans'.
The hack worked all all right but whenever a new version of 'netbeans' was available I, temporarily, removed the shell-wrapper and invoked 'netbeans' directly to see if the bug was still there: 'netbeans 11.3' was even worse than 11.2 and yesterday I found that the bug was in 'netbeans 12.0' too.
By pure chance, while browsing $HOME, I found that, somehow, 'netbeans' also writes Modules information in directory '$HOME/.java/.userPrefs/org/netbeans/modules'. After deleting it the bug disappeared.
I think that the bug is triggered by conflicting Modules information in: '$HOME/.java/.userPrefs/org/netbeans/modules' & several (I run 'netbeans' with --userdir & --cachedir options) '.netbeans/*/config/Modules'.
In my humble opinion 'netbeans' should only write configuration data to '.netbeans'.
> netbeans 11.1 requests re-installation of nbjavac plugin and fails.
> -------------------------------------------------------------------
>
> Key: NETBEANS-3158
> URL: https://issues.apache.org/jira/browse/NETBEANS-3158
> Project: NetBeans
> Issue Type: Bug
> Components: platform - Plugin Manager
> Affects Versions: 11.1
> Environment: Linux Cinnamon Mint 19.2
> Reporter: Manuel Iglesias
> Priority: Major
> Attachments: 00000021.log, 00000022.log, 00000023.log, 00000024.log, 00000040.log, 00000041.log, 00000042.log, Screenshot from 2019-10-31 11-23-33.png, Screenshot from 2019-10-31 11-24-34.png, Screenshot from 2019-10-31 11-25-31.png, Screenshot from 2019-10-31 11-52-50.png, Screenshot from 2019-10-31 11-52-50.png, Screenshot from 2019-10-31 19-25-54.png, Screenshot from 2019-11-10 16-45-28.png, Screenshot from 2019-11-10 16-46-18.png, Screenshot from 2019-11-10 16-47-48.png, Screenshot from 2019-11-10 16-48-54.png, Screenshot from 2019-11-10 16-51-33.png, Screenshot from 2019-11-10 16-52-33.png, Screenshot1.png, Screenshot2.png, messages.log, messages.log, netbeans.conf
>
>
> Installed plugins data seems to get corrupted with normal use. 'netbeans' then requests re-installation of 'nbjavac' plugin which fails.
> Problem can be reproduced in this way:
> # Run 'netbeans' without --userdir & --cachedir options # Default values '$HOME/.netbeans/11.1' & '$HOME/.cache/netbeans/11.1'. First run.
> Open new project so that installation of 'nbjavac' & 'javafx' plugins is triggered.
> Install plugins and exit.
> # Run 'netbeans' with --userdir $HOME/Test/.netbeans/11.1 --cachedir $HOME/Test/.cache/netbeans/11.1 options. # First run.
> Open new project so that installation of 'nbjavac' & 'javafx' plugins is triggered.
> Install plugins and exit.
> Run sequentially:
> * netbeans
> * netbeans --userdir $HOME/Test/.netbeans/11.1 --cachedir $HOME/Test/.cache/netbeans/11.1
> After a few times:
> * Directory $HOME/.netbeans/11.1/config/Modules is empty.
> * 'netbeans' requests re-installation of 'nbjavac' (which fails).
> * Tools/Plugins/Installed shows that there are no active plugins.
> EDIT: It seems that it may not be necessary to run, sequentially, 'netbeans' & 'netbeans --userdir ... --cachedir ...'
> to reproduce the bug. I started netbeans (running 'netbeans') and before its window appeared (it takes a few seconds)
> I tried to close an editor (another application). Just when I mouse-clicked the netbeans' window appeared and I closed
> netbeans instead of the editor. Next time I started 'netbeans' the bug appeared (plugins data corrupted, etc).
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@netbeans.apache.org
For additional commands, e-mail: commits-help@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists