GitHub user discordDOTtest edited a discussion: NetBeans 29 - GTK code completion
Hi, I am reading this book https://magazine.raspberrypi.com/books/c-gui-programming-2 and I am looking for a way to have code completion for GTK functions. The default behavior of NetBeans is that it can't find the header file and it can't recognize GTK functions <img width="663" height="277" alt="1" src="https://github.com/user-attachments/assets/31770de5-7d92-4b33-b679-70f476678d5b" /> I found out that adding arguments to the compile_commands.json helps. ` [ { "directory": "./", "command": "gcc -g main.c `pkg-config --cflags --libs gtk+-3.0` -o main", "file": "main.c", "arguments": [ "-I/usr/include/gtk-3.0", "-I/usr/include/pango-1.0", "-I/usr/include/glib-2.0", "-I/usr/lib/x86_64-linux-gnu/glib-2.0/include", "-I/usr/include/harfbuzz", "-I/usr/include/freetype2", "-I/usr/include/libpng16", "-I/usr/include/libmount", "-I/usr/include/blkid", "-I/usr/include/fribidi", "-I/usr/include/cairo", "-I/usr/include/pixman-1", "-I/usr/include/gdk-pixbuf-2.0", "-I/usr/include/x86_64-linux-gnu", "-I/usr/include/webp", "-I/usr/include/gio-unix-2.0", "-I/usr/include/atk-1.0", "-I/usr/include/at-spi2-atk/2.0", "-I/usr/include/at-spi-2.0", "-I/usr/include/dbus-1.0", "-I/usr/lib/x86_64-linux-gnu/dbus-1.0/include -pthread" ] } ] ` But it doesn't help with the code completion - ctrl+space just shows **Please wait...** <img width="667" height="274" alt="3" src="https://github.com/user-attachments/assets/aebbefa9-2f59-4561-9fc5-bb685fe20bcc" /> Any help is appreciated :) GitHub link: https://github.com/apache/netbeans/discussions/9375 ---- This is an automatically sent email for [email protected]. To unsubscribe, please send an email to: [email protected] --------------------------------------------------------------------- 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
