[ 
https://issues.apache.org/jira/browse/NETBEANS-5539?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Torsten Römer updated NETBEANS-5539:
------------------------------------
    Description: 
*What I did:*
 # Clean install of NetBeans 12.3
 # Installed nb-javac as recommended, restarted NetBeans
 # Cloned [https://github.com/keycloak/keycloak.git] (13.0.0-SNAPSHOT) from 
within NetBeans
 # Opened the parent project
 # Did "Clean and Build" of the whole project (success)
 # Expanded "Modules", all looks fine
 # Opened module "Keycloak REST Services": "Background scanning of projects..." 
takes a long time and there are constantly occurring "Unexpected Exception" 
(some NPE but it is impossible to select one because they are being replaced by 
a new occurrence all the time)
 # Opened the attached project "netbeans-test"

*Expected behaviour:*
 * All projects open without error

*Observed behaviour:*
 * When opening the module "Keycloak REST Services" is complete, there are 
several "cannot find symbol" errors for types that are actually present, for 
example DefaultVaultTranscriber in VaultTranscriberTest (see screenshot)
 * In the project "netbeans-test", in NetBeansTest.java, the import 
org.keycloak.crypto.ES256SignatureProviderFactory as well has "cannot find 
symbol" and content-assist for the package org.keycloak.crypto only shows a 
subset of the types that actually are in the package

*Workaround:*

Disabling "Compile on Save", deleting the cache in ~/.cache/netbeans, 
rebuilding the project, restarting NetBeans etc. does not solve the issue.

"Uninstalling" nb-javac by deleting ~/.netbeans/12.3/modules and restarting 
NetBeans solves the problem, but then of course "Compile on Save" with all its 
advantages is not available any more.

Then nb-javac can be installed and "Compile on Save" enabled again - no errors 
show up (but might occur again later?)

*Additional information:*

In NetBeans 12.4 Beta 1 "Compile on Save" can be enabled and works *without 
installing nb-javac*: [Compile on Save support for vanilla 
javac.|https://github.com/apache/netbeans/commit/46c1794125d317f190cd4fdc0309ad67c166faf0]

  was:
*What I did:*
 # Clean install of NetBeans 12.3
 # Installed nb-javac as recommended, restarted NetBeans
 # Cloned [https://github.com/keycloak/keycloak.git] (13.0.0-SNAPSHOT) from 
within NetBeans
 # Opened the parent project
 # Did "Clean and Build" of the whole project (success)
 # Expanded "Modules", all looks fine
 # Opened module "Keycloak REST Services": "Background scanning of projects..." 
takes a long time and there are constantly occurring "Unexpected Exception" 
(some NPE but it is impossible to select one because they are being replaced by 
a new occurrence all the time)
 # Opened the attached project "netbeans-test"

*Expected behaviour:*
 * All projects open without error

*Observed behaviour:*
 * When opening the module "Keycloak REST Services" is complete, there are 
several "cannot find symbol" errors for types that are actually present, for 
example DefaultVaultTranscriber in VaultTranscriberTest (see screenshot)
 * In the project "netbeans-test", in NetBeansTest.java, the import 
org.keycloak.crypto.ES256SignatureProviderFactory as well has "cannot find 
symbol" and content-assist for the package org.keycloak.crypto only shows a 
subset of the types that actually are in the package

*Workaround:*

Disabling "Compile on Save", deleting the cache in ~/.cache/netbeans, 
rebuilding the project, restarting NetBeans etc. does not solve the issue.

"Uninstalling" nb-javac by deleting ~/.netbeans/12.3/modules and restarting 
NetBeans solves the problem, but then of course "Compile on Save" with all its 
advantages is not available any more.

Then nb-javac can be installed and "Compile on Save" enabled again - no errors 
show up (but might occur again later?)

*Additional information:*

In NetBeans 12.4 Beta 1 "Compile on Save" can be enabled *without installing 
nb-javac*, and when running a test or debugging, the following message shows up:

{{Running NetBeans Compile On Save execution. Phase execution is skipped and 
output directories of dependency projects (with Compile on Save turned on) will 
be used instead of their jar artifacts.}}

And it works just fine - "Compile on Save" is available without nb-javac in 
12.4 Beta 1?


> nb-javac "Compile on Save" causes "cannot find symbol" for types that are 
> present
> ---------------------------------------------------------------------------------
>
>                 Key: NETBEANS-5539
>                 URL: https://issues.apache.org/jira/browse/NETBEANS-5539
>             Project: NetBeans
>          Issue Type: Bug
>    Affects Versions: 12.3
>         Environment: *Product Version:* Apache NetBeans IDE 12.3
> *Java:* 11.0.10; OpenJDK 64-Bit Server VM 11.0.10+9-Ubuntu-0ubuntu1.20.04
> *Runtime:* OpenJDK Runtime Environment 11.0.10+9-Ubuntu-0ubuntu1.20.04
> *System:* Linux version 5.4.0-70-generic running on amd64; UTF-8; de_DE (nb)
>            Reporter: Torsten Römer
>            Priority: Major
>              Labels: nb-javac
>         Attachments: VaultTranscriberTest.png, netbeans-test.tar.gz
>
>
> *What I did:*
>  # Clean install of NetBeans 12.3
>  # Installed nb-javac as recommended, restarted NetBeans
>  # Cloned [https://github.com/keycloak/keycloak.git] (13.0.0-SNAPSHOT) from 
> within NetBeans
>  # Opened the parent project
>  # Did "Clean and Build" of the whole project (success)
>  # Expanded "Modules", all looks fine
>  # Opened module "Keycloak REST Services": "Background scanning of 
> projects..." takes a long time and there are constantly occurring "Unexpected 
> Exception" (some NPE but it is impossible to select one because they are 
> being replaced by a new occurrence all the time)
>  # Opened the attached project "netbeans-test"
> *Expected behaviour:*
>  * All projects open without error
> *Observed behaviour:*
>  * When opening the module "Keycloak REST Services" is complete, there are 
> several "cannot find symbol" errors for types that are actually present, for 
> example DefaultVaultTranscriber in VaultTranscriberTest (see screenshot)
>  * In the project "netbeans-test", in NetBeansTest.java, the import 
> org.keycloak.crypto.ES256SignatureProviderFactory as well has "cannot find 
> symbol" and content-assist for the package org.keycloak.crypto only shows a 
> subset of the types that actually are in the package
> *Workaround:*
> Disabling "Compile on Save", deleting the cache in ~/.cache/netbeans, 
> rebuilding the project, restarting NetBeans etc. does not solve the issue.
> "Uninstalling" nb-javac by deleting ~/.netbeans/12.3/modules and restarting 
> NetBeans solves the problem, but then of course "Compile on Save" with all 
> its advantages is not available any more.
> Then nb-javac can be installed and "Compile on Save" enabled again - no 
> errors show up (but might occur again later?)
> *Additional information:*
> In NetBeans 12.4 Beta 1 "Compile on Save" can be enabled and works *without 
> installing nb-javac*: [Compile on Save support for vanilla 
> javac.|https://github.com/apache/netbeans/commit/46c1794125d317f190cd4fdc0309ad67c166faf0]



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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