Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » Indexer fails: ambiguous node while parsing .cpp(Indexer fails to parse source files correctly )
Indexer fails: ambiguous node while parsing .cpp [message #1855321] Fri, 07 October 2022 22:39 Go to next message
juanito perez is currently offline juanito perezFriend
Messages: 6
Registered: July 2021
Junior Member
Suddently eclipse fails to index my source files correctly.
Version: 2022-09 (4.25.0)
Build id: 20220908-1902
I ran it with
eclipse -debug debug.options -consolelog -vm /usr/lib/jvm/java-19-jdk/bin/ 


debug.options file:
org.eclipse.cdt.core/debug=true
org.eclipse.cdt.core/debug/pdomtimings=true
org.eclipse.cdt.core/debug/indexer=true
org.eclipse.cdt.core/debug/parser=true
org.eclipse.cdt.core/debug/deltaprocessor=true
org.eclipse.cdt.core/debug/scanner=true
org.eclipse.cdt.core/debug/model=true
org.eclipse.cdt.core/debug/indexer/statistics=true
org.eclipse.cdt.core/debug/indexer/activity=true
org.eclipse.cdt.core/debug/indexer/problems=false


I include the full log, these are what I think the key error messages (there are many more very similar):

!ENTRY org.eclipse.cdt.core 4 0 2022-10-07 19:24:18.336                                                                                                        
!MESSAGE Error: Encountered an ambiguous node "std::uses_allocator_construction_args<_Tp1>(__a,                                                                
            std::forward<_Up>(__u))" at /usr/include/c++/12.2.0/bits/uses_allocator_args.h, line 150 while parsing /home/oiu7/eclipse-workspace/Cmas/src/Cmas.c
pp                                                                                                                                                             
!STACK 0                                                                                                                                                       
org.eclipse.cdt.internal.core.parser.ParserException: Encountered an ambiguous node "std::uses_allocator_construction_args<_Tp1>(__a,
            std::forward<_Up>(__u))" at /usr/include/c++/12.2.0/bits/uses_allocator_args.h, line 150 while parsing /home/oiu7/eclipse-workspace/Cmas/src/Cmas.c
pp


  • Attachment: eclipse.log4
    (Size: 9.17KB, Downloaded 81 times)
  • Attachment: Cmas.cpp
    (Size: 2.64KB, Downloaded 123 times)
  • Attachment: Cmas.hpp
    (Size: 0.83KB, Downloaded 91 times)
Re: Indexer fails: ambiguous node while parsing .cpp [message #1855331 is a reply to message #1855321] Sun, 09 October 2022 04:36 Go to previous messageGo to next message
juanito perez is currently offline juanito perezFriend
Messages: 6
Registered: July 2021
Junior Member
I found out that this issue is also reproducible on windows. It is caused by selecting C++20 as the default dialect. Changing it to i.e C++17 solves the parsing problems. Is C++20 not supported properly by the CDT indexer yet?
Re: Indexer fails: ambiguous node while parsing .cpp [message #1855364 is a reply to message #1855331] Mon, 10 October 2022 19:27 Go to previous message
Kent Dorfman is currently offline Kent DorfmanFriend
Messages: 21
Registered: December 2020
Junior Member
see my related post. I have problems with the scanner and C++17 dialect: lots of bogus errors that don't really exist, as far as the standard and makefile are concerned.

As many years as eclipse has been around it is a bit depressing how "unstable" it can be. I chalk it up to the common and very broad problem with collaborative development model: no draconian authority willing to enforce project goals and quality/professional standards. Code quality often takes a back seat to social issues.
Previous Topic:A book on C - help
Next Topic:non-managed c++ projects and scanner
Goto Forum:
  


Current Time: Tue Jan 14 19:40:30 GMT 2025

Powered by FUDForum. Page generated in 0.03723 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top