After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 623633 - Include pre-compiled database for standard C and C++ libraries
Include pre-compiled database for standard C and C++ libraries
Status: RESOLVED OBSOLETE
Product: anjuta
Classification: Applications
Component: plugins: symbol-db
2.31.x
Other Linux
: Normal normal
: ---
Assigned To: Massimo Cora'
Anjuta maintainers
: 566979 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2010-07-05 21:08 UTC by Johannes Schmid
Modified: 2020-11-06 20:21 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Johannes Schmid 2010-07-05 21:08:38 UTC
Currently, we don't autocomplete the C standard library and the C++ STL at all because they are obviously not using pkg-config and thus, we don't find them.

For C, the problem is that we really don't want to use every single file in /usr/include but only those which are part of the standard.

For C++, we should better use a simple version of the STL without macro stuff like http://www.vim.org/scripts/script.php?script_id=2358

The C stuff actually doesn't really change at all and for C++ it also takes ages until there is really a new version of the library with API changes so this should be rather save.
Comment 1 Johannes Schmid 2010-07-05 21:09:42 UTC
*** Bug 566979 has been marked as a duplicate of this bug. ***
Comment 2 Naba Kumar 2010-07-08 05:41:13 UTC
(In reply to comment #0)
> 
> For C++, we should better use a simple version of the STL without macro stuff
> like http://www.vim.org/scripts/script.php?script_id=2358
> 
I guess line numbers will not correspond correctly to user's installation. Our symbol-db allows navigating to header files, so in such cases we would need to prevent navigation.
Comment 3 Johannes Schmid 2010-07-08 09:06:29 UTC
> I guess line numbers will not correspond correctly to user's installation. Our
> symbol-db allows navigating to header files, so in such cases we would need to
> prevent navigation.

Agreed, but I think that's a minor issues compared to not having completion at all. And believe me, the C or C++ standard headers aren't that interesting to look at ;)
Comment 4 Massimo Cora' 2010-07-13 12:55:00 UTC
we can ship a .db together with the anjuta distribution.
At symbol-db global db load, we check if the c-stl and c++-stl exists. If not we would attach those external databases.

Would it be an acceptable solution?
Comment 5 Johannes Schmid 2010-07-13 15:28:16 UTC
(In reply to comment #4)
> we can ship a .db together with the anjuta distribution.
> At symbol-db global db load, we check if the c-stl and c++-stl exists. If not
> we would attach those external databases.
> 
> Would it be an acceptable solution?

I think for C we can easily parse the system headers (I will implement this with the move to language-support-cpp-java. I think I would rather call that package glibc though.

For C++, the proposed solution is good.
Comment 6 Johannes Schmid 2011-02-13 14:04:30 UTC
So, C headers are scanned now in symbol-db-refactor branch. Some methods are defined as macros there though and aren't shown completely and some are built-in (strcmp, strlen, etc.).
Comment 7 Massimo Cora' 2011-02-28 17:55:24 UTC
I see that working, that's a good add on ;)
I'm changing a little bit the signals handling on symbol-db core to:

1. make easier to scan more system packages (internally speaking).
2. code cleaning in scanning process.
3. improve life-cycle of scan process.
Comment 8 André Klapper 2020-11-06 20:21:58 UTC
bugzilla.gnome.org is being replaced by gitlab.gnome.org. We are closing all old bug reports in Bugzilla which have not seen updates for many years.

If you can still reproduce this issue in a currently supported version of GNOME (currently that would be 3.38), then please feel free to report it at https://gitlab.gnome.org/GNOME/anjuta/-/issues/

Thank you for reporting this issue and we are sorry it could not be fixed.