ClangAutoComplete icon indicating copy to clipboard operation
ClangAutoComplete copied to clipboard

'iostream' file not found on windows

Open libing64 opened this issue 8 years ago • 3 comments

@JohannesMP @pl-ca I install ClangAutoComplete plugin from Package Control, and configure the include_dirs like this: "include_dirs" : [ ""C:\Program Files (x86)\CodeBlocks\MinGW\lib\gcc\mingw32\4.9.2\include"", ""C:\Program Files (x86)\CodeBlocks\MinGW\lib\gcc\mingw32\4.9.2\include\c++"", ""C:\Program Files (x86)\CodeBlocks\MinGW\lib\gcc\mingw32\4.9.2\include\c++\mingw32"", ""C:\Program Files (x86)\CodeBlocks\MinGW\include"", ""$project_base_path/src"", // "/workspace/$project_name/src", ],

and set "autocomplete_all" to true. But it seem that the plugin cannot find the include file, can you provide some advice?

libing64 avatar Nov 16 '16 02:11 libing64

qq 20161116105524

libing64 avatar Nov 16 '16 02:11 libing64

First of all, I recommend keeping autocomplete_all to false because it is a little bit experimental. If you are only looking for structure/class completion it will not be needed.

Secondly, can you add this line to your user settings

    "debug"   : "true",

and attempt in your code somewhere to trigger auto-completion. A panel should pop up with debugging traces. Can you paste them here?

pl-ca avatar Nov 16 '16 17:11 pl-ca

Hey, i'm experiencing the exact same issue. { "debug" : "true", "include_dirs" : ["\"C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.15063.0\\ucrt\"", ] }

^Thats my user setting for ClangAutoComplete.

c:\users\christ~1\appdata\local\temp\auto_complete_tmp:1:10: fatal error: 'stdio.h' file not found #include <stdio.h> ^~~~~~~~~ 1 error generated.

^Thats the error that pops up everytime.

Furthermore the autocomplete triggers seem not to work for me. ClangAutoComplete only triggers with "cmd+space".

lulle2007200 avatar Nov 11 '18 12:11 lulle2007200