apache / apache/netbeans

Code completion does not work in JSFs with module-info.java

Open
#6,659 1 comment 0 reactions 0 assignees View on GitHub
Java EE/Jakarta EE kind:bug needs:triage
Dominant language
Java
Stars
3.1k
Forks
935
Avg merge
2d 3h
Merged PRs (30d)
17

Description

### Apache NetBeans version

Apache NetBeans 19

### What happened

The code completion does not work for managed beans in JSF pages - if an **module-info.java** is in the src folder (without the module-info.java file it works fine). See screenshot. A sample project is attached.

![screenshot-netbeans-bug](https://github.com/apache/netbeans/assets/83238864/10fc4da6-230e-49e0-afab-780ce71c5229)

[mavenWEBprojectEE91.zip](https://github.com/apache/netbeans/files/13256528/mavenWEBprojectEE91.zip)

### How to reproduce

Open the attached project.

### Did this work correctly in an earlier version?

No / Don't know

### Operating System

Windows 10

### JDK

Java 17.0.3; OpenJDK 64-Bit Server VM 17.0.3+7

### Apache NetBeans packaging

Apache NetBeans provided installer

### Anything else

See also #4162 which is resolved and closed.

### Are you willing to submit a pull request?

No

Contributor guide

Open the contributing guide

Research direction

Open the attached mavenWEBprojectEE91.zip in Apache NetBeans 19 with Java 17 and reproduce the missing code completion for managed beans in JSF pages when module-info.java is present. Compare the behavior with module-info.java removed and review issue #4162 for related context. Done means completion works with module-info.java in the src folder.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
developer-experience, tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.