Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » Indexing problem after debugging
Indexing problem after debugging [message #1800609] Thu, 03 January 2019 14:32 Go to next message
Afshin Oroojlooy is currently offline Afshin OroojlooyFriend
Messages: 3
Registered: January 2019
Junior Member
Hi

I am working on a simple c++ project, (mnist project that uses libtorch library) using a version of eclipse installed in Ubuntu 18.04:

Eclipse IDE for C/C++ Developers
Version: 2018-09 (4.9.0)
Build id: 20180917-1800

I imported a CMake project, generated using cmake-gui ide. Initially the indexing was working fine, and I could build and run my project.

Once I entered the debug mode, almost all indexing are broken. I tried index->rebuild, but it did not help. Indeed, I noticed that, during the indexer rebuild, some progress bar was shown, and now, when I execute the index->rebuild, the progress bar is not shown. I did not changed any project/workspace/index settings, at least not on purpose anyway. I searched about this and the only solution that I found is suggests to delete the project and create it again, which does not make sense to do every time that this problem happens. I need to add that I still can build and run the project, though indexing is not working. I also looked through ~/eclipse-workspace/.metadata/.log (see the attached file), but nothing helpful.

I appreciate any help or comment.

Thanks,
Re: Indexing problem after debugging [message #1800680 is a reply to message #1800609] Sat, 05 January 2019 05:14 Go to previous messageGo to next message
Adriano Carvalho is currently offline Adriano CarvalhoFriend
Messages: 54
Registered: November 2018
Member
What do you mean with "the indexer is broken"? What do you expect (but don't) see happening?
Re: Indexing problem after debugging [message #1800736 is a reply to message #1800680] Mon, 07 January 2019 14:37 Go to previous messageGo to next message
Afshin Oroojlooy is currently offline Afshin OroojlooyFriend
Messages: 3
Registered: January 2019
Junior Member
Attached is what I see, and additionally when I move my mouse on each of the functions, I get "function xxxx could not be resolved", i.e. the "Open Declaration" does not work. I need to mention that all these indexing were working before going into the debug mode, and I was able to "Open Declaration" for any function.

index.php/fa/34621/0/
  • Attachment: indexing.png
    (Size: 4.25MB, Downloaded 1634 times)

[Updated on: Mon, 07 January 2019 14:39]

Report message to a moderator

Re: Indexing problem after debugging [message #1800741 is a reply to message #1800736] Mon, 07 January 2019 15:43 Go to previous messageGo to next message
Adriano Carvalho is currently offline Adriano CarvalhoFriend
Messages: 54
Registered: November 2018
Member
It seems that the "includes" are not being found. What does it say when you put your mouse over the "includes"? Also, expand the "Includes" folder on the project manager. What do you see there?
Re: Indexing problem after debugging [message #1800743 is a reply to message #1800741] Mon, 07 January 2019 15:48 Go to previous messageGo to next message
Afshin Oroojlooy is currently offline Afshin OroojlooyFriend
Messages: 3
Registered: January 2019
Junior Member
When I move the mouse on the include, I see "Unresolved inclusion: <torch/torch.h>". and in the include folder I see:
index.php/fa/34623/0/

  • Attachment: indexing.png
    (Size: 1.03MB, Downloaded 1352 times)
Re: Indexing problem after debugging [message #1844146 is a reply to message #1800743] Fri, 03 September 2021 02:13 Go to previous message
Stephen Linder is currently offline Stephen LinderFriend
Messages: 2
Registered: September 2021
Junior Member
I get the following error

Indexed 'uart_echo' (5 sources, 2 headers) in 0.046 sec: 46 declarations; 620 references; 5 unresolved inclusions; 0 syntax errors; 14 unresolved names (2.1%)

Again, no errors before I started JTAG debugging.

Could it be something with the way include files paths are specified?
Previous Topic:Post-build steps Command objdump direct to file
Next Topic:Can I switch from local to crosscompiler ?
Goto Forum:
  


Current Time: Thu Apr 25 08:27:51 GMT 2024

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

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

Back to the top