You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@netbeans.apache.org by "qmegas (via GitHub)" <gi...@apache.org> on 2023/03/09 10:37:53 UTC

[GitHub] [netbeans] qmegas opened a new issue, #5640: [PHP] Autocompletion does not work correctly for including operators

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

   ### Apache NetBeans version
   
   Apache NetBeans 17
   
   ### What happened
   
   When using file including operators, like `include`, `include_once`, `require`, `require_once`, once you type the operator name you open quotes and press autocompletion keyshorts, but instead of list of files you get general list of autocompletion items. In order to make it work you first need to put a semicolon symbol at the end of the line and then return cursor into the quotes and only then autocompletion will give you a list of files. 
   
   First it's very inconvenient, second it's not the way it works in other languages, at least not for HTML & JS (I didn't checked Java or any other language). There if you start writing the line the file autocompletion works fine.
   
   I hope my explanation of the bug is clear. If not, I may add some video demonstrating the issue.
   
   ### How to reproduce
   
   _No response_
   
   ### Did this work correctly in an earlier version?
   
   No / Don't know
   
   ### Operating System
   
   Widows 10
   
   ### JDK
   
   16.0.1
   
   ### Apache NetBeans packaging
   
   Apache NetBeans provided installer
   
   ### Anything else
   
   _No response_
   
   ### 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


[GitHub] [netbeans] qmegas commented on issue #5640: [PHP] Autocompletion does not work correctly for including operators

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

   @KacerCZ To make sure we are talking about same thing. Here a video that explains the problem. By the way, as I remember that bug existed for me at least from NetBeans version 10 or even earlier.
   
   ![1](https://user-images.githubusercontent.com/2444896/224032012-ef4571e7-c8cb-43f7-8e82-9f78b4d092a7.gif)
   


-- 
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] KacerCZ commented on issue #5640: [PHP] Autocompletion does not work correctly for including operators

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

   I was not able to reproduce the issue.
   Files are offered for auto-completion after pressing Ctrl+Space even if there is no semicolon at the end of line.


-- 
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] qmegas commented on issue #5640: [PHP] Autocompletion does not work correctly for including operators

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

   @KacerCZ I see. So NetBeans does not show correct autocompletion list if it detects a syntax error in same line. In your first example the error is on `include ''`, in second example the error is  on 'echo '';' line.
   
   However I see that following code shows syntax error on different line, but still autocompletion does not work as it should.
   
   ```php
   <?php
   
   function test() 
   {
   	require ''
   }
   ```
   
   Anyway when you writting a new code, then there is high chance that there will be no other lines after inclusion operator, so it defenitely a bug.


-- 
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] qmegas commented on issue #5640: [PHP] Autocompletion does not work correctly for including operators

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

   @junichi11 At the end it's not a big deal for me to write whole operator `include "";` even without auto-completion, but that is just a workaround.


-- 
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] KacerCZ commented on issue #5640: [PHP] Autocompletion does not work correctly for including operators

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

   @qmegas That is what I tried, but inside existing PHP file.
   @troizet Thanks for comment about empty file.
   
   Even in following code completion does not work:
   ```php
   <?php
   
   echo '';
   
   include ''
   ```
   
   This variant of code works:
   ```php
   <?php
   
   include ''
   
   echo '';
   ```
   
   Cusror is always inside quotes of `include`.


-- 
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] troizet commented on issue #5640: [PHP] Autocompletion does not work correctly for including operators

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

   This bug is reproduced in the case of a new empty php 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


[GitHub] [netbeans] junichi11 commented on issue #5640: [PHP] Autocompletion does not work correctly for including operators

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

   @qmegas 
   Please use the code completion for `include` and `require`. (e.g. `inclu` + <kbd>Ctrl</kbd> + <kbd>Space</kbd>) That way, `;` is added automatically. "`i` + `n` + `c` + `l` + `u` + `d` + `e` + ``` " is inconvenient, I think.


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