netbeans-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Manuel Iglesias (Jira)" <j...@apache.org>
Subject [jira] [Comment Edited] (NETBEANS-3158) netbeans 11.1 requests re-installation of nbjavac plugin and fails.
Date Fri, 01 Nov 2019 17:18:00 GMT

    [ https://issues.apache.org/jira/browse/NETBEANS-3158?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16964991#comment-16964991
] 

Manuel Iglesias edited comment on NETBEANS-3158 at 11/1/19 5:17 PM:
--------------------------------------------------------------------

I wanted to document the bug and tried this: {
{quote}Initial conditions: - Running 'netbeans.11.2' - '$HOME/.netbeans' doesn't exist. #
Original directory renamed to '.netbeans.bak'. - '$HOME/.cache/netbeans' doesn't exist. #
Original directory renamed to 'netbeans.bak'. - '$HOME/Temp/Test' empty. netbeans # New project
created to trigger plug-in installation. 'nbjavac' & 'javafx' plugins installed. Tools/Plugins/Installed
(11), Activated: User Installed Plugins, Java SE, Tools, Base IDE. Exit. '$HOME/.netbeans/11.2/var/log/messages.log':
messages00.log netbeans --userdir $HOME/Temp/Test/.netbeans/11.2 --cachedir $HOME/Temp/Test/.cache/netbeans/11.2
# New project created to trigger plug-in installation. 'nbjavac' & 'javafx' plugins installed.
Tools/Plugins/Installed (11), Activated: User Installed Plugins, Java SE, Tools, Base IDE.
Exit. netbeans # Tools/Plugins/Installed (11), Activated: User Installed Plugins, Java SE,
Tools, Base IDE. Exit. '$HOME/.netbeans/11.2/var/log/messages.log': messages01.log netbeans
--userdir $HOME/Temp/Test/.netbeans/11.2 --cachedir $HOME/Temp/Test/.cache/netbeans/11.2 #
Tools/Plugins/Installed (11), Activated: User Installed Plugins, Java SE, Tools, Base IDE.
Exit. netbeans # Tools/Plugins/Installed (11), Activated: User Installed Plugins, Java SE,
Tools, Base IDE. Exit. '$HOME/.netbeans/11.2/var/log/messages.log': messages02.log netbeans
--userdir $HOME/Temp/Test/.netbeans/11.2 --cachedir $HOME/Temp/Test/.cache/netbeans/11.2 #
Tools/Plugins/Installed (11), Activated: User Installed Plugins, Java SE, Tools, Base IDE.
Exit. netbeans # Tools/Plugins/Installed (11), Activated: User Installed Plugins, Java SE,
Tools, Base IDE. Exit. '$HOME/.netbeans/11.2/var/log/messages.log': messages03.log ....................
{quote}
}

Intending to post the report with 'messages00.log' .. 'messagesXX.log' attached. To my surprise
I went up to 'messages20.log' without reproducing the bug.

In the other tests I had carried out, with 'netbeans.11.2', I had just started the tests by
removing '$HOME/.netbeans/11.2' directory (leaving '$HOME/.netbeans/11.1' with my configuration
data) and the bug had appeared after 5 or 6 runs (Tools/Plugins/Installed 10, Activated: Java
SE, Tools). It could be that the bug has something to do with reading previous configurations.

I think I have found a way to solve my problem:
 Starting with an empty '.netbeans' for every user directory, installing 'nbjavac' & 'javafx'
plugins, exiting and then replacing everything in '.netbeans/11.2/config', except subdirectory
'Modules', by the old configuration contents ('.netbeans.bak/11.1/config').
 After that I have cycled 15 times through my 3 different 'users' (and saving '.netbeans/11.2/var/log/messages.log',
just in case) without being able to reproduce the bug.

I think the bug is still there and that some users will have problems when they update netbeans
to a new version.


was (Author: glesialo):
I wanted to document the bug and tried this: {
 
 Initial conditions:
 - Running 'netbeans.11.2'
 - '$HOME/.netbeans' doesn't exist. # Original directory renamed to '.netbeans.bak'.
 - '$HOME/.cache/netbeans' doesn't exist. # Original directory renamed to 'netbeans.bak'.
 - '$HOME/Temp/Test' empty.
 
 netbeans
 # New project created to trigger plug-in installation. 'nbjavac' & 'javafx' plugins installed.
Tools/Plugins/Installed (11), Activated: User Installed Plugins, Java SE, Tools, Base IDE.
Exit.
 '$HOME/.netbeans/11.2/var/log/messages.log': messages00.log
 
 netbeans --userdir $HOME/Temp/Test/.netbeans/11.2 --cachedir $HOME/Temp/Test/.cache/netbeans/11.2
 # New project created to trigger plug-in installation. 'nbjavac' & 'javafx' plugins installed.
Tools/Plugins/Installed (11), Activated: User Installed Plugins, Java SE, Tools, Base IDE.
Exit.
 
 netbeans
 # Tools/Plugins/Installed (11), Activated: User Installed Plugins, Java SE, Tools, Base IDE.
Exit.
 '$HOME/.netbeans/11.2/var/log/messages.log': messages01.log
 
 netbeans --userdir $HOME/Temp/Test/.netbeans/11.2 --cachedir $HOME/Temp/Test/.cache/netbeans/11.2
 # Tools/Plugins/Installed (11), Activated: User Installed Plugins, Java SE, Tools, Base IDE.
Exit.
 
 netbeans
 # Tools/Plugins/Installed (11), Activated: User Installed Plugins, Java SE, Tools, Base IDE.
Exit.
 '$HOME/.netbeans/11.2/var/log/messages.log': messages02.log
 
 netbeans --userdir $HOME/Temp/Test/.netbeans/11.2 --cachedir $HOME/Temp/Test/.cache/netbeans/11.2
 # Tools/Plugins/Installed (11), Activated: User Installed Plugins, Java SE, Tools, Base IDE.
Exit.
 
 netbeans
 # Tools/Plugins/Installed (11), Activated: User Installed Plugins, Java SE, Tools, Base IDE.
Exit.
 '$HOME/.netbeans/11.2/var/log/messages.log': messages03.log
 
 ....................
 }
 
Intending to post the report with 'messages00.log' .. 'messagesXX.log' attached. To my surprise
I went up to 'messages20.log' without reproducing the bug.

In the other tests I had carried out, with 'netbeans.11.2', I had just started the tests by
removing '$HOME/.netbeans/11.2' directory (leaving '$HOME/.netbeans/11.1' with my configuration
data) and the bug had appeared after 5 or 6 runs (Tools/Plugins/Installed 10, Activated: Java
SE, Tools). It could be that the bug has something to do with reading previous configurations.

I think I have found a way to solve my problem:
Starting with an empty '.netbeans' for every user directory, installing 'nbjavac' & 'javafx'
plugins, exiting and then replacing everything in '.netbeans/11.2/config', except subdirectory
'Modules', by the old configuration contents ('.netbeans.bak/11.1/config').
After that I have cycled 15 times through my 3 different 'users' (and saving '.netbeans/11.2/var/log/messages.log',
just in case) without being able to reproduce the bug.

I think the bug is still there and that some users will have problems when they update netbeans
to a new version.

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


Mime
View raw message