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

   ### Apache NetBeans version
   
   Apache NetBeans 15
   
   ### What happened
   
   I got an error copying this code into Netbeans:
   
   ![Capture d’écran du 2022-11-30 
21-39-51](https://user-images.githubusercontent.com/10517497/204905539-ad3cab8f-5e2c-43ab-9051-c1d9dfb2a4ca.png)
   ![Capture d’écran du 2022-11-30 
21-40-59](https://user-images.githubusercontent.com/10517497/204905535-1c264e30-21db-48d2-96f4-23b9ec3240fa.png)
   ![Capture d’écran du 2022-11-30 
21-41-02](https://user-images.githubusercontent.com/10517497/204905622-1ff1b33d-2895-4bd2-a2f0-72addf99a7e8.png)
   
   Opening it in Visual Studio Code, the code contains **No-Break Spaces**.
   
   ![Capture d’écran du 2022-11-30 
21-59-51](https://user-images.githubusercontent.com/10517497/204906928-be6c0215-1a8a-4c11-99c0-3b63ed08db56.png)
   
   Messages and highlighting invisible characters in Netbeans does not help to 
understand this error
   
   ### How to reproduce
   
   Go to https://www.php.net/manual/en/language.generators.syntax.php,
   Go to section **Example #5 yield from with iterator_to_array()**,
   Copy the sample code to a php file in Netbeans.
   Or copy the code:
   ```php
   <?php
   
   function inner() {
       yield 1; // key 0
       yield 2; // key 1
       yield 3; // key 2
   }
   function gen() {
       yield 0; // key 0
       yield from inner(); // keys 0-2
       yield 4; // key 1
   }
   ```
   
   ### Did this work correctly in an earlier version?
   
   Apache NetBeans 15
   
   ### Operating System
   
   Linux version 5.15.0-53-generic running on amd64
   
   ### JDK
   
   18.0.2-ea; OpenJDK 64-Bit Server VM 18.0.2-ea+9-Ubuntu-222.04; Private Build
   
   ### Apache NetBeans packaging
   
   Apache NetBeans Snap Package
   
   ### Anything else
   
   _No response_
   
   ### 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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


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