Jonas Lesage created NETBEANS-3669:
--------------------------------------
Summary: C++ std::vector underlined in red
Key: NETBEANS-3669
URL: https://issues.apache.org/jira/browse/NETBEANS-3669
Project: NetBeans
Issue Type: Bug
Affects Versions: 11.2, 11.1
Environment: Windows 10 x64
Raspberry Pi 4 with Raspbian OS
Reporter: Jonas Lesage
Attachments: RaspberryPi4.png, Step_1.PNG, Step_2.PNG, Step_3.PNG
*NetBeans is randomly underlining code it deems to be incorrect while it can
still be compiled.* The code runs as expected. However, it's annoying to see
red underlines in my code indicating an error that doesn't exist. This prevents
me from seeing the real errors that exist in my code.
In the screenshots you can see the full steps from 1 to 3. In step 3, it's
recommended to copy the same code, run the code first and try retyping a single
letter "t" in std::vector or "o". Try to CTRL + CLICK as well.
To confirm that the bug is not bound to a single operating system, I included a
screenshot from the bug on my Raspberry Pi 4. The project is also a new project
and my Raspberry Pi 4 is running NetBeans 11.2, which is currently the latest
version.
*Hack to fix the bug:*
Change the C++ version to C++98 for the current project *or* change the C++
version of another opened project to C++98. After closing the C++98 project and
restarting NetBeans 11.1 on my Windows PC, the bug doesn't appear anymore. I've
been able to change the C++ version back to C++14 for the other project without
causing any errors to the current project.
Changing back the version from C++98 to C++14 without closing and restarting
doesn't fix the issue. However, this doesn't mean the bug is gone forever. When
I right click on any project and go to "Code Assistance" and I click "Clean
C/C++ cache and restart IDE", the bug is back again.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
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