ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
2

Kinetic eclipse indexer problem

asked 2016-07-28 16:34:11 -0500

mgerdzhev gravatar image

Since the upgrade to Ubuntu 16.04 and Kinetic, the CDT indexer in Eclipse no longer indexes my files properly (tried on 3 different machines and Eclipse Mars, Luna, Neon). The #include are resolved but the files are not indexed. I can Ctrl+click on the include declaration and it takes me to the file, but none of the classes/functions are indexed, which means that in my cpp/h files these are showing up in red (eclipse says the declaration cannot be resolved) and autocompletion breaks. catkin_make shows no errors and the code runs without any problems. I have not run into this problem in previous versions of Ubuntu/ROS. Has anyone else experienced this? How did you resolve it if you did? I have followed the instructions on the wiki without any luck: http://wiki.ros.org/IDEs#Eclipse

Thanks.

edit retag flag offensive close merge delete

Comments

I am having this exact problem. Only with certain, larger, projects though. Seems like it might be a size issue but the errors that eclipse reports during the indexing process, 'failed to parse file', are pretty useless.

gabehein gravatar image gabehein  ( 2016-08-13 15:54:16 -0500 )edit

Same problem here. I did find someting odd, in providers, if I choose "CDT User Setting Entries" and nothing else, the internal project files are indexed but not other libraries. If I chose "CDT GCC Built-in Compiler Settings", it's the other way around. Either way, lots of unresolved references!

roboflyer gravatar image roboflyer  ( 2016-08-27 22:30:49 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
1

answered 2016-09-05 15:48:23 -0500

Daniel Kuhner gravatar image

I resolved the problem by updating cdt to the current nightly build. You can install the build by opening the "Install New Software Dialog" (Help -> Install New Software) and use http://download.eclipse.org/tools/cdt... as the download source. As it seems the cdt indexer crashes internally if you use a version < 9.1. I tested it with Java 9, Eclipse Neon, and ROS Kinetic.

Bug report: https://bugs.eclipse.org/bugs/show_bu...

edit flag offensive delete link more

Question Tools

Stats

Asked: 2016-07-28 16:34:11 -0500

Seen: 670 times

Last updated: Sep 05 '16