You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@netbeans.apache.org by "errael (via GitHub)" <gi...@apache.org> on 2024/11/25 05:34:14 UTC

[I] javadoc ompletion doesn't work in "package-info.java" [netbeans]

errael opened a new issue, #7986:
URL: https://github.com/apache/netbeans/issues/7986

   ### Apache NetBeans version
   
   Apache NetBeans 24 release candidate
   
   ### What happened
   
   (24-rc3)
   
   Code completion for javadoc doesn't work in `package-info.java` file.
   
   
   ### Language / Project Type / NetBeans Component
   
   java code completion
   
   ### How to reproduce
   
   1. New project -> java with maven, Java Application -> finish
   2. Over the package folder, new -> Java Package Info
   3. In the "package-info.java" above the package decl add a comment, like:
   
           /**
            * {@
            */
           package com.raelity.play.mavenproject2;
   4. With the cursor after the "{@", invoke code completion.
   
   Observe: "No suggestions"
   
   
   ### Did this work correctly in an earlier version?
   
   No / Don't know
   
   ### Operating System
   
   ubuntu
   
   ### JDK
   
   openjdk 23.0.1 2024-10-15
   
   ### Apache NetBeans packaging
   
   Apache NetBeans binary zip
   
   ### Anything else
   
   Every time
   
   ### Are you willing to submit a pull request?
   
   No


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


Re: [I] javadoc ompletion doesn't work in "package-info.java" [netbeans]

Posted by "mbien (via GitHub)" <gi...@apache.org>.
mbien commented on issue #7986:
URL: https://github.com/apache/netbeans/issues/7986#issuecomment-2498741963

   probably no recent regression. I quickly tested a few versions down to NB 15 and it didn't work in any of them.


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


Re: [I] javadoc ompletion doesn't work in "package-info.java" [netbeans]

Posted by "errael (via GitHub)" <gi...@apache.org>.
errael commented on issue #7986:
URL: https://github.com/apache/netbeans/issues/7986#issuecomment-2498732439

   A workaround is to
   1. temporarily rename file to `package_info.java`
   2. put a copy of the `package ...` statement above the comment
   3. comment out the original `package ...` statement
   4. Add the following after the comment
     `public class package_info{ }`
   5. make edits using completion at will
   6. undo the structural changes and rename back to `package-info.java`


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


Re: [I] javadoc completion doesn't work in "package-info.java" [netbeans]

Posted by "errael (via GitHub)" <gi...@apache.org>.
errael commented on issue #7986:
URL: https://github.com/apache/netbeans/issues/7986#issuecomment-2587940564

   There is a recent thread in dev mailing list, [Formatting Source Code](https://lists.apache.org/thread/d9bpg8yynkclfqs8vw8wyrv04f2p0oo3)
   
   A fix for that might include a fix this issue as well. If there's a "treat this file like a source code file" detector.
   
   ```
   I noticed this too while writing scripts. The indentation engine
   does not expect methods outside of class bodies and will likely need some updates.
   
   best regards,
   michael
   
   On 13.01.25 19:17, Kenneth Fogel wrote:
   > This is a minor issue and not necessarily a bug to be reported. When I create a file using the classless approach such as:
   >
   > void main() {
   >      println("Mooses rule!");
   > }
   >
   > It will run with the --enable-preview VM option. Great!
   >
   > Unfortunately, all that  Source -> Formatting does is add a blank line at the top of the file and nothing more. 
   > I assume it is looking for something it can identify as a class otherwise it does not format the file. 
   ```


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


Re: [I] javadoc ompletion doesn't work in "package-info.java" [netbeans]

Posted by "errael (via GitHub)" <gi...@apache.org>.
errael commented on issue #7986:
URL: https://github.com/apache/netbeans/issues/7986#issuecomment-2501483370

   Tried NB 13 (the oldest one I've got around) with jdk-11. Didn't work.
   
   The old package-info.java, where I _think_ completion worked, was put together in Nov 2020, around NB 12.1


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


Re: [I] javadoc ompletion doesn't work in "package-info.java" [netbeans]

Posted by "errael (via GitHub)" <gi...@apache.org>.
errael commented on issue #7986:
URL: https://github.com/apache/netbeans/issues/7986#issuecomment-2498694774

   In some older package-info.java there is some `{@link ...}` , being lazy I suspect that code completion was used. So I believe this is a REGRESSION. No idea when it may have been introduced.


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