-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fatal error: 'gtk/gtk.h' file not found #1162
Comments
you need read https://spacevim.org/layers/lang/c/ |
hello_gtk.zip Thank you and Merry Christmas. |
I will check it later, and Thanks, Merry Christmas to you too. |
@mrmodolo got it, because some plugin are lazzy loaded on |
ok, I will fix it. It seems a bug. |
Thank you very much! |
same errors: tweekmonster/deoplete-clang2#5 |
Fixed in #1169 |
Hi! I forgot to say that before I ran the command ':SPUpdate'. Thanks |
Hi! I also tested with neovim (after pip3 install neovim) and the behavior was the same! I created the '.ctags' file with the flags obtained by the command output:
You can test by creating a
Immediately after saving the file with ':w' the error message will appear! Thanks, |
@mrmodolo I think you need to update spacevim, you should make sure .clang is in the root of your project. |
Hi! Have you tried using autocomplete after creating the ".clang" file? Thank you! |
can you please use new issue for autocompletion? The title of this issue is failed to find *h file. 😄 |
Hi! Yes, I can, without any problem! But I believe it's the same mistake. The .clang file seems to prevent the plugin from working and with this, the gtk.h error not found is no longer displayed! I tried to reinstall SpaceVim but something happened and the installation seems to be in trouble! The installation happens but after starting the vim and after updating all the plugins I no longer have the same splash screen and if I try the SPUpdate command several errors are presented. Before trying to install I did the procedures for removal!
Thanks, |
commit 506e81a Merge: d209fb7 3014612 Author: Zitao Xiong <caoer115@gmail.com> Date: Mon Dec 25 00:02:58 2017 +0800 Merge remote-tracking branch 'spacevim/dev' into dev * spacevim/dev: (133 commits) Fix up Fix ale support Remove unneeded check Fix SpaceVim#1162 Update c layer Add .clang for project patterns Add callback for projectmanager Fix autocomplete Update c layer doc Add doc for installing language servers Add lsp support for python git: ignore swp files. Add lang servers Fix lsp support Add vim8 support Update php layer document Add php_lsp key bindings Add lsp support for php Update doc of lsp Fix doc ... commit d209fb7 Merge: c5f4f46 0747281 Author: Zitao Xiong <caoer115@gmail.com> Date: Mon Dec 11 22:10:40 2017 +0800 Merge remote-tracking branch 'spacevim/dev' into dev * spacevim/dev: (414 commits) Fix two typos. Type: need space after ** Update feature list:statusline Update feature list of website Update gifs for features Add TOC Update wiki Improve implementations of tmux integration Fix an issue occurd in ALE-enabled environment Check event CmdLineEnter Add a new plugin for JavaScript doc: fix g:spacevim_terminal_cursor_shape default Add language server configurations for Haskell Improve layer implementations for lsp, javascript Add language server configuration for JavaScript Update welcome page, ref SpaceVim#1092 Update statusline Update documents about colorscheme Fix font size Fix merge ... commit c5f4f46 Author: Zitao Xiong <caoer115@gmail.com> Date: Thu Nov 16 16:37:24 2017 +0800 🚧 commit 75d47cc Merge: 16a48a4 45e26cd Author: Zitao Xiong <caoer115@gmail.com> Date: Sun Oct 1 18:26:40 2017 -0400 Merge remote-tracking branch 'Spacevim/dev' into dev * Spacevim/dev: (32 commits) Use codecov.yml Add coverage badge Add coveragerc Update intro Update readme Fix bug with mapleader Update doc for git layer Add SPReinstall command for reinstall plugins Add lang#ruby Hide curosr when guide buffer is open Fix lint Add SPC p k to kill all project buffers Mode site desc Add logo and lang Update layers page Add social info Add twitter info Add jekyll-seo-plugin Update desc for zh_cn doc Add descriptions ... commit 16a48a4 Author: Zitao Xiong <caoer115@gmail.com> Date: Sun Oct 1 18:26:12 2017 -0400 disable <TAB> and noquit for s r p commit fb4fa40 Merge: 399ac25 367557f Author: Zitao Xiong <caoer115@gmail.com> Date: Sat Sep 16 22:49:40 2017 -0400 Merge remote-tracking branch 'Spacevim/dev' into dev * Spacevim/dev: (75 commits) Add favicon.ico Fix warnning Change the padding to 20px Fix img url Add style.css Mod stylesheets Update index Change the default value of tagbar_map_showproto Fix type Fix vim support Set omnifunc for vim Fix neovim support Remove plugin from lang.vim Add lang#typescript layer Fix SpaceVim#832 Fix n/N in visual mode Update lang#python layer (SpaceVim#779) Update img size Update img size Set img size ... commit 399ac25 Merge: ccc93d0 f80c39d Author: Zitao Xiong <caoer115@gmail.com> Date: Tue Aug 22 18:48:08 2017 -0400 Merge remote-tracking branch 'Spacevim/dev' into dev * Spacevim/dev: Add mapping g<c-]> for jump to tag under cursor Update version remove stray chars from documentation Update statusline for ctrlp buffer Call complete_parameter#pre_complete only pumvisible. If pumvisible is false, call "\<Plug>delimitMate(" Remove g:delimitMate_matchpairs setting. Use fork instead Remove plugin that does not exist plugin: json-vim: update to newer, forked version Release v0.4.0 Fix unite buffer mappings Update mappings Add TODO Add gtags.vim Fix errors Add doc Update git ignore commit ccc93d0 Merge: d8d1ab5 19adf66 Author: Zitao Xiong <caoer115@gmail.com> Date: Fri Aug 4 15:00:26 2017 -0400 Merge remote-tracking branch 'Spacevim/dev' into dev * Spacevim/dev: Fix issue with n vs N when ignorecase is set Fix SpaceVim#762 Add SPC i s for insert snippets Add doc for complete layer Fix plugin manager complete options Update doc for autocomplete layer Move omni source up Fix up: do not add invalid jobid Fix plugin manager ui: show error message Add describe for SPC b n Add plugins for mark active/inactive windows Add SPC h d k Improve lang#java layer commit d8d1ab5 Merge: ffd1a23 a3029ea Author: Zitao Xiong <caoer115@gmail.com> Date: Fri Jul 28 13:36:08 2017 -0400 Merge remote-tracking branch 'Spacevim/dev' into dev * Spacevim/dev: (48 commits) Move plugin out of if_else, fix lint Add lang#sh layer Use <tab> to jump to next parameter. Auto add buffer head Fix SPC ' Improve shell layer Add project manager mappings Improve markdown layer Update java layer doc Indented code Fix language specified mappings Add maven execute mappings Add run key bindings for java Update doc for java layer Fix lint Fix language specified mapping api Fix vader test Fix bug: can't open files with space in names Catch errors when jump to next error Add error transient state ... commit ffd1a23 Merge: 0afd2bf 70bece9 Author: Zitao Xiong <caoer115@gmail.com> Date: Thu Jul 20 20:52:04 2017 -0400 Merge remote-tracking branch 'Spacevim/dev' into dev * Spacevim/dev: Auto install packge manager Fix guide statusline Fix inactive bar Basic mode commit 0afd2bf Merge: 251e237 5670b91 Author: Zitao Xiong <caoer115@gmail.com> Date: Thu Jul 20 05:02:19 2017 -0400 🚧 commit 251e237 Merge: 2dcdc28 fe170ac Author: Zitao Xiong <caoer115@gmail.com> Date: Tue Jul 18 04:15:26 2017 -0400 Merge remote-tracking branch 'Spacevim/dev' into dev * Spacevim/dev: (22 commits) Fix grammar in Install docs. Fix typo: s/recommenced/recommended/ Fix lint fixup Fix lint Add test for web html api Add test for web api Fix unknown option name: termguicolors Add web api Make explicit is until a line number the commment Fix SPC c t Comment to line Use SPC ; instead of SPC c ; Add SPC c ; for comment operator Fix comment paragraphs Load jedi-vim only when has +py or +py3 Fix highlight api Fix comment mappings Add SPC c p/P for comment paragraphs Add SPC c L for invert comment lines ... commit 2dcdc28 Author: Zitao Xiong <caoer115@gmail.com> Date: Fri Jul 14 17:20:37 2017 -0400 fix multi cursor mapping commit 3119ec0 Merge: 3036a56 ca77d89 Author: Zitao Xiong <caoer115@gmail.com> Date: Tue Jul 11 16:21:43 2017 -0400 Merge remote-tracking branch 'Spacevim/dev' into dev * Spacevim/dev: (76 commits) Fix n/N do not change hl state Close job/timer when close flygrep buffer Fix shortmess option Update doc for prompt mappings Update doc for prompt api Update doc for prompt api Fix charactor ignores Add mouse support Fix windows support Fix fly grep pattern Update readme Fix lint Change delay to 500ms Searching when input delay 1000ms Disable welcome page when use stdin (SpaceVim#707) Visual mode SPC Hide cursor in terminal vim Grep on the fly (SpaceVim#705) Fix install script bug with -u option Add uninstall info ... commit 3036a56 Merge: 252df83 a669906 Author: Zitao Xiong <caoer115@gmail.com> Date: Sat Jun 24 23:31:13 2017 -0400 Merge remote-tracking branch 'Spacevim/dev' into dev * Spacevim/dev: Add persistent hls option add tmux layer and sort listings of layers add tmux lang layer Fix SPC s * Add support for searching with ag Add SPC s * mappings for searching Fix unite grep source config Fix denite statusline in vim8 Improve denite's statusline Use jobstart to generate doc Add searching documentation Fix call statement for Gina blame Remove InsertEnter/InsertLeave for statusline Fix blink cursor Cache stared repos Keep doc updated (SpaceVim#647) Update 404.md commit 252df83 Author: Zitao Xiong <caoer115@gmail.com> Date: Sat Jun 24 23:30:54 2017 -0400 chagne bookmark key commit 1a3fcf1 Merge: 29870d1 c381caf Author: Zitao Xiong <caoer115@gmail.com> Date: Tue Jun 20 14:36:57 2017 -0400 Merge remote-tracking branch 'Spacevim/dev' into dev * Spacevim/dev: (31 commits) Add command for clear all errors Async with development.md Make vim-rooter lazyload use fnameescape and rename SPWelcom -> SPWelcome (SpaceVim#642) Fix json code format in blog (SpaceVim#639) update onedark theme palette for statusline mode update one theme palette for statusline mode update molokai palette for statusline mode Fix tagbar && vimfiler statusline Fix statuline color of inactive window Add document for statusline color Support mode in statusline Fix denite statusline Update documentation Add some mappings Add g' g` g+ g- Create 2017-02-11-vim8-new-feature-timers-zh_cn.md (SpaceVim#633) Fix SPC mapping in guide buffer Add gH g0 etc. Create CONTRIBUTING.md ... commit 29870d1 Merge: f2bbc0e 20294cc Author: Zitao Xiong <caoer115@gmail.com> Date: Fri Jun 16 16:52:31 2017 -0400 Merge remote-tracking branch 'Spacevim/dev' into dev * Spacevim/dev: Update php.vim (SpaceVim#632) Ignore warnning msg Remove vimfiler message when toggle buffer Fix enter dir Enable sitemap for website Add doc for file tree Use getpos('.') instead of getcurpos() Add SPC f v d to open custom configration file Add file mappings Fix auto hlsearch Add bookmarks Fix conflict mappings Add mappings for create empty buffer Buffer mappings (SpaceVim#600) # Conflicts: # config/plugins/vimfiler.vim commit f2bbc0e Merge: 2309e5e 398e0ae Author: Zitao Xiong <caoer115@gmail.com> Date: Sun Jun 4 02:15:26 2017 -0400 Merge remote-tracking branch 'github/dev' into dev * github/dev: Fix smart close window Fix mapping guide event Fix redo window Undo general quited window Use small icon for buffer index Undo tab windows Add mapping for jump to url Add plugin: vim-over commit 2309e5e Author: Zitao Xiong <caoer115@gmail.com> Date: Sun Jun 4 02:14:40 2017 -0400 remove jk to esc mapping commit dac7f43 Merge: 482ea1d f17af99 Author: Zitao Xiong <caoer115@gmail.com> Date: Thu Jun 1 13:09:36 2017 -0400 Merge remote-tracking branch 'github/dev' into dev * github/dev: Add SPC j i for jump in buffer Add SPC j o for open line Add jump forward/backward Fix descriptions in mapping Fix SpaceVim#576, Undefined variable Fix g:spacevim_enable_tabline_filetype_icon Add option for get starred repos minor issue template update commit 482ea1d Author: Zitao Xiong <caoer115@gmail.com> Date: Thu Jun 1 13:09:25 2017 -0400 customization commit 9bad59b Author: Zitao Xiong <caoer115@gmail.com> Date: Wed May 31 23:52:40 2017 -0400 🚧 commit 06c56ca Author: Zitao Xiong <caoer115@gmail.com> Date: Wed May 31 20:14:31 2017 -0400 remove leader d
Autocomplete with gtk files
Example:
#include<gtk/gtk.h>
int main(int argc, char **argv) {
GtkWidget *win;
gtk_init(&argc, &argv);
win = gtk_window_new(GTK_WINDOW_TOPLEVEL);
gtk_window_set_title(GTK_WINDOW(win), "Hello there");
g_signal_connect(win, "destroy", G_CALLBACK(gtk_main_quit), NULL);
gtk_widget_show(win);
gtk_main();
}
I created the file '.clang_complete' and still continue with the error gtk/gtk.h not found!
Below the '.clang_complete' file contents:
-pthread
-I/usr/include/gtk-3.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
-I/usr/include/gtk-3.0
-I/usr/include/gio-unix-2.0/
-I/usr/include/mirclient
-I/usr/include/mircore
-I/usr/include/mircookie
-I/usr/include/cairo
-I/usr/include/pango-1.0
-I/usr/include/harfbuzz
-I/usr/include/pango-1.0
-I/usr/include/atk-1.0
-I/usr/include/cairo
-I/usr/include/pixman-1
-I/usr/include/freetype2
-I/usr/include/libpng12
-I/usr/include/gdk-pixbuf-2.0
-I/usr/include/libpng12
-I/usr/include/glib-2.0
-I/usr/lib/x86_64-linux-gnu/glib-2.0/include
-lgtk-3
-lgdk-3
-lpangocairo-1.0
-lpango-1.0
-latk-1.0
-lcairo-gobject
-lcairo
-lgdk_pixbuf-2.0
-lgio-2.0
-lgobject-2.0
-lglib-2.0
Environment Information
OS: Distributor ID: Ubuntu
Description: Ubuntu 16.04.3 LTS
Release: 16.04
Codename: xenial
vim version: VIM - Vi IMproved 7.4 (2013 Aug 10, compiled Nov 24 2016 16:44:48)
The text was updated successfully, but these errors were encountered: