You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@netbeans.apache.org by GitBox <gi...@apache.org> on 2022/03/15 23:08:01 UTC

[GitHub] [netbeans] newk5 opened a new issue #3786: tag and JSF related autocomplete suggestions broken in Netbeans 13

newk5 opened a new issue #3786:
URL: https://github.com/apache/netbeans/issues/3786


   ### Apache NetBeans version
   
   Apache NetBeans 13
   
   ### What happened
   
   Netbeans 13 no longer recognizes the JSF tag "ui:composition" in xhtml files or even any other JSF related tags. Autocomplete suggestions on any JSF components, JSTL tags, or even simple bean property or method suggestions are also broken, for some reason it keeps suggesting attributes from angularJS?  We use netbeans primarily for JSF development and unfortunately this makes Netbeans 13 unusable. This did not happen in Netbeans 12.6 so for now we have to go back to that version. Hopefully this can be fixed, otherwise netbeans is no longer viable option to use for any JSF development.
   
   
   
   
   ### How to reproduce
   
   Open a XHTML file and press CTRL+SPACE on any JSF related tag, or even on a bean expression. Autocomplete either doesn't show, (says "No results") or just doesn't show any attributes of that JSF component/properties of that bean. You can also open any XHTML file which uses the "<ui:composition>" tag, and netbeans wont be able to recognize it (see screenshots below)
   
   ### Did this work correctly in an earlier version?
   
   Apache NetBeans 12.6
   
   ### Operating System
   
   ElementaryOS 6.1 (based on Ubuntu 20.04.3) (also tested on windows, same issue)
   
   ### JDK
   
   JDK17 Temurin-17.0.2+8
   
   ### Apache NetBeans packaging
   
   Apache NetBeans provided installer
   
   ### Anything else
   
   About the ui:composition tag, If this line is present 
   ```
   <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
   ```
   It looks like this:
   ![image](https://user-images.githubusercontent.com/32560510/158479179-a1c8d504-65e4-40c7-b0c1-b19df946d4c5.png)
   ![image](https://user-images.githubusercontent.com/32560510/158479245-9f2a127a-30df-4915-9f77-ff92109ffa78.png)
   
   If I remove that line, it looks like this:
   ![image](https://user-images.githubusercontent.com/32560510/158480289-3fedf69a-b9a3-40e4-88f8-a5236684a7f1.png)
   
   ![image](https://user-images.githubusercontent.com/32560510/158480869-62632f77-d862-4464-a7b5-51f68ec40423.png)
    
   But even then, the autocomplete suggestions are still broken.
   
   If you need more information from me, please let me know.
   
   
   ### Are you willing to submit a pull request?
   
   No
   
   ### Code of Conduct
   
   Yes


-- 
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: notifications-unsubscribe@netbeans.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists


[GitHub] [netbeans] newk5 commented on issue #3786: tag and JSF related autocomplete suggestions broken in Netbeans 13

Posted by GitBox <gi...@apache.org>.
newk5 commented on issue #3786:
URL: https://github.com/apache/netbeans/issues/3786#issuecomment-1069046551


   After doing those steps, it's now working. You were right, it seems it was not active (I'm not sure why)
   
   In any of the previous Netbeans versions, I never manually had to activate the "Java Web and EE" plugin, NetBeans just automatically activated it for me ( I guess when it detected a JSF project).  It seems this type of thing is no longer done automatically with version 13. Do you know if this is a bug or intended?


-- 
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: notifications-unsubscribe@netbeans.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists


[GitHub] [netbeans] newk5 commented on issue #3786: tag and JSF related autocomplete suggestions broken in Netbeans 13

Posted by GitBox <gi...@apache.org>.
newk5 commented on issue #3786:
URL: https://github.com/apache/netbeans/issues/3786#issuecomment-1068826713


   The issue happens with any JSF project, when you're editing a xhtml file. You can clone this project: https://github.com/newk5/quarkus-jsf
   
   1.  Clone that project and compile
   2. Then go to the index.xhtml file
   3. Put the cursor after "indexView." after the "."
   4. Press CTRL+SPACE
   5. This is the result:
   ![image](https://user-images.githubusercontent.com/32560510/158538340-1d5ba0eb-7bb7-4bfe-b565-08c407714f1a.png)
   
   Repeat the exact same steps with NetBeans 12.6 and this is the result:
   ![image](https://user-images.githubusercontent.com/32560510/158538550-f92b3ea5-2726-4faa-8f4e-b7abf4527bde.png)
   
   ### NetBeans 13
   ![image](https://user-images.githubusercontent.com/32560510/158538833-c1d7947c-94b2-4fc2-b3d0-823f21799fae.png)
   
   ### NetBeans 12.6
   ![image](https://user-images.githubusercontent.com/32560510/158539028-540ef886-d0bd-43d4-a9f0-6d0543299a1a.png)
   
   
   Similar behaviour if you put the cursor inside any of those other tags (h:form, p:growl, p:autoUpdate, etc...) and press CTRL+SPACE in 12.6 you get autocomplete suggestions for attributes of those tags, but in NetBeans 13 you dont get any of those suggestions.
   
   Let me know if that's clear or if you need more details, I'll do my best to explain
   


-- 
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: notifications-unsubscribe@netbeans.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists


[GitHub] [netbeans] matthiasblaesing commented on issue #3786: tag and JSF related autocomplete suggestions broken in Netbeans 13

Posted by GitBox <gi...@apache.org>.
matthiasblaesing commented on issue #3786:
URL: https://github.com/apache/netbeans/issues/3786#issuecomment-1068803573


   Please provide detailed steps to reproduce and if necessary a minimal demo project.


-- 
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: notifications-unsubscribe@netbeans.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists


[GitHub] [netbeans] matthiasblaesing commented on issue #3786: tag and JSF related autocomplete suggestions broken in Netbeans 13

Posted by GitBox <gi...@apache.org>.
matthiasblaesing commented on issue #3786:
URL: https://github.com/apache/netbeans/issues/3786#issuecomment-1069047223


   I bet you build WAR projects by then and not plain JAR.


-- 
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: notifications-unsubscribe@netbeans.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists


[GitHub] [netbeans] matthiasblaesing commented on issue #3786: tag and JSF related autocomplete suggestions broken in Netbeans 13

Posted by GitBox <gi...@apache.org>.
matthiasblaesing commented on issue #3786:
URL: https://github.com/apache/netbeans/issues/3786#issuecomment-1068997814


   Please do the following:
   
   - Open `Tools` -> `Plugins` -> `Installed`
   - Select "Java Web and EE"
   - Choose "Actitvate"
   - Restart NetBeans
   
   I assume, that you had that plugin set activated in 12.6 and not on 13.


-- 
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: notifications-unsubscribe@netbeans.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists


[GitHub] [netbeans] newk5 commented on issue #3786: tag and JSF related autocomplete suggestions broken in Netbeans 13

Posted by GitBox <gi...@apache.org>.
newk5 commented on issue #3786:
URL: https://github.com/apache/netbeans/issues/3786#issuecomment-1069078868


   Ahh I think you are right. I build both WAR projects and plain JAR JSF apps, but I think the first project I opened in NetBeans13 was a quarkus jsf app. Building JSF projects into a JAR instead of a WAR with quarkus is relatively new so my understanding is that NetBeans doesn't detect quarkus JSF apps as "valid" JSF apps, and doesn't automatically enable the JavaEE plugin. 
   
   The condition for checking whether a quarkus app is a JSF app would be checking if the project contains the myfaces dependency. Do you think it would be viable for NetBeans to do this automatically? Or maybe this is something which should be done in a "quarkus" type plugin instead?


-- 
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: notifications-unsubscribe@netbeans.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists