Does anyone use C++ with VSCode?
-
(See update below) In my .cpp_properties file, in the includes section for my configuration, I have:
"${workspaceFolder}/\*\*", "C:/Users/gazto/zephyrproject/htcw\_gfx/include/\*\*", "C:/Users/gazto/zephyrproject/zephyr/\*\*", "${workspaceFolder}"
It's like it's not seeing the second line. .../htcw_gfx/include/** It can't find my file even though it is right at that bloody path. Not even in a subfolder. I'm also getting the message
[7/23/2023, 10:25:10 AM] "main.cpp" not found in "C:/Users/gazto/zephyrproject/zephyr/build/compile_commands.json". 'includePath' from c_cpp_properties.json in folder 'EMPTY-PROJECT' will be used for this file instead.
I don't think that's a problem though, because it's what I want, except for the fact that EMPTY-PROJECT is all caps, which is weird. The folder is lowercase. Sometimes I hate VS Code. Does anyone know how to wave a dead chicken over this to make it go? I can't use this library without intellisense. ___ UPDATE ___ Got it to complete with these paths
"C:/Users/gazto/zephyrproject/**",
"${workspaceFolder}/**",
"C:/Users/gazto/zephyrproject/htcw_bits/include",
"C:/Users/gazto/zephyrproject/htcw_io/include",
"C:/Users/gazto/zephyrproject/htcw_ml/include",
"C:/Users/gazto/zephyrproject/htcw_data/include",
"C:/Users/gazto/zephyrproject/htcw_gfx/include",
"C:/Users/gazto/zephyrproject/htcw_uix/include",
${workspaceFolder}But the infuriating part is why it's not recursively searching "C:/Users/gazto/zephyrproject/**" WHY IS THIS SO DIFFICULT, MICROSOFT?
Check out my IoT graphics library here: https://honeythecodewitch.com/gfx
-
(See update below) In my .cpp_properties file, in the includes section for my configuration, I have:
"${workspaceFolder}/\*\*", "C:/Users/gazto/zephyrproject/htcw\_gfx/include/\*\*", "C:/Users/gazto/zephyrproject/zephyr/\*\*", "${workspaceFolder}"
It's like it's not seeing the second line. .../htcw_gfx/include/** It can't find my file even though it is right at that bloody path. Not even in a subfolder. I'm also getting the message
[7/23/2023, 10:25:10 AM] "main.cpp" not found in "C:/Users/gazto/zephyrproject/zephyr/build/compile_commands.json". 'includePath' from c_cpp_properties.json in folder 'EMPTY-PROJECT' will be used for this file instead.
I don't think that's a problem though, because it's what I want, except for the fact that EMPTY-PROJECT is all caps, which is weird. The folder is lowercase. Sometimes I hate VS Code. Does anyone know how to wave a dead chicken over this to make it go? I can't use this library without intellisense. ___ UPDATE ___ Got it to complete with these paths
"C:/Users/gazto/zephyrproject/**",
"${workspaceFolder}/**",
"C:/Users/gazto/zephyrproject/htcw_bits/include",
"C:/Users/gazto/zephyrproject/htcw_io/include",
"C:/Users/gazto/zephyrproject/htcw_ml/include",
"C:/Users/gazto/zephyrproject/htcw_data/include",
"C:/Users/gazto/zephyrproject/htcw_gfx/include",
"C:/Users/gazto/zephyrproject/htcw_uix/include",
${workspaceFolder}But the infuriating part is why it's not recursively searching "C:/Users/gazto/zephyrproject/**" WHY IS THIS SO DIFFICULT, MICROSOFT?
Check out my IoT graphics library here: https://honeythecodewitch.com/gfx
I'm using it on Fedora with cmake... Does that help?
"If builders built buildings the way programmers wrote programs, then the first woodpecker that came along would destroy civilization." ― Gerald Weinberg
-
I'm using it on Fedora with cmake... Does that help?
"If builders built buildings the way programmers wrote programs, then the first woodpecker that came along would destroy civilization." ― Gerald Weinberg
Not really. I figured out why it's not working and that it's not actually going to because my Cmake files are generated by my build system.
Check out my IoT graphics library here: https://honeythecodewitch.com/gfx
-
(See update below) In my .cpp_properties file, in the includes section for my configuration, I have:
"${workspaceFolder}/\*\*", "C:/Users/gazto/zephyrproject/htcw\_gfx/include/\*\*", "C:/Users/gazto/zephyrproject/zephyr/\*\*", "${workspaceFolder}"
It's like it's not seeing the second line. .../htcw_gfx/include/** It can't find my file even though it is right at that bloody path. Not even in a subfolder. I'm also getting the message
[7/23/2023, 10:25:10 AM] "main.cpp" not found in "C:/Users/gazto/zephyrproject/zephyr/build/compile_commands.json". 'includePath' from c_cpp_properties.json in folder 'EMPTY-PROJECT' will be used for this file instead.
I don't think that's a problem though, because it's what I want, except for the fact that EMPTY-PROJECT is all caps, which is weird. The folder is lowercase. Sometimes I hate VS Code. Does anyone know how to wave a dead chicken over this to make it go? I can't use this library without intellisense. ___ UPDATE ___ Got it to complete with these paths
"C:/Users/gazto/zephyrproject/**",
"${workspaceFolder}/**",
"C:/Users/gazto/zephyrproject/htcw_bits/include",
"C:/Users/gazto/zephyrproject/htcw_io/include",
"C:/Users/gazto/zephyrproject/htcw_ml/include",
"C:/Users/gazto/zephyrproject/htcw_data/include",
"C:/Users/gazto/zephyrproject/htcw_gfx/include",
"C:/Users/gazto/zephyrproject/htcw_uix/include",
${workspaceFolder}But the infuriating part is why it's not recursively searching "C:/Users/gazto/zephyrproject/**" WHY IS THIS SO DIFFICULT, MICROSOFT?
Check out my IoT graphics library here: https://honeythecodewitch.com/gfx
VS is a cryptic machine as to its workings. I have a battle with it this past year. Also with include file issues. Recently updated it to latest 2022 version. Project that was built and ran just fine no longer works as is. Had to update the my project properties as well. GRRR I prefer Code Blocks IDE, but yes if you need intellisense one has to us VS (as I understand).
"A little time, a little trouble, your better day" Badfinger
-
VS is a cryptic machine as to its workings. I have a battle with it this past year. Also with include file issues. Recently updated it to latest 2022 version. Project that was built and ran just fine no longer works as is. Had to update the my project properties as well. GRRR I prefer Code Blocks IDE, but yes if you need intellisense one has to us VS (as I understand).
"A little time, a little trouble, your better day" Badfinger
Yeah, I got it working as per my update, but not the way I'd like. I could do it if I wrote some kind of VS extension but I have enough on my plate to learn right now.
Check out my IoT graphics library here: https://honeythecodewitch.com/gfx
-
(See update below) In my .cpp_properties file, in the includes section for my configuration, I have:
"${workspaceFolder}/\*\*", "C:/Users/gazto/zephyrproject/htcw\_gfx/include/\*\*", "C:/Users/gazto/zephyrproject/zephyr/\*\*", "${workspaceFolder}"
It's like it's not seeing the second line. .../htcw_gfx/include/** It can't find my file even though it is right at that bloody path. Not even in a subfolder. I'm also getting the message
[7/23/2023, 10:25:10 AM] "main.cpp" not found in "C:/Users/gazto/zephyrproject/zephyr/build/compile_commands.json". 'includePath' from c_cpp_properties.json in folder 'EMPTY-PROJECT' will be used for this file instead.
I don't think that's a problem though, because it's what I want, except for the fact that EMPTY-PROJECT is all caps, which is weird. The folder is lowercase. Sometimes I hate VS Code. Does anyone know how to wave a dead chicken over this to make it go? I can't use this library without intellisense. ___ UPDATE ___ Got it to complete with these paths
"C:/Users/gazto/zephyrproject/**",
"${workspaceFolder}/**",
"C:/Users/gazto/zephyrproject/htcw_bits/include",
"C:/Users/gazto/zephyrproject/htcw_io/include",
"C:/Users/gazto/zephyrproject/htcw_ml/include",
"C:/Users/gazto/zephyrproject/htcw_data/include",
"C:/Users/gazto/zephyrproject/htcw_gfx/include",
"C:/Users/gazto/zephyrproject/htcw_uix/include",
${workspaceFolder}But the infuriating part is why it's not recursively searching "C:/Users/gazto/zephyrproject/**" WHY IS THIS SO DIFFICULT, MICROSOFT?
Check out my IoT graphics library here: https://honeythecodewitch.com/gfx
-
(See update below) In my .cpp_properties file, in the includes section for my configuration, I have:
"${workspaceFolder}/\*\*", "C:/Users/gazto/zephyrproject/htcw\_gfx/include/\*\*", "C:/Users/gazto/zephyrproject/zephyr/\*\*", "${workspaceFolder}"
It's like it's not seeing the second line. .../htcw_gfx/include/** It can't find my file even though it is right at that bloody path. Not even in a subfolder. I'm also getting the message
[7/23/2023, 10:25:10 AM] "main.cpp" not found in "C:/Users/gazto/zephyrproject/zephyr/build/compile_commands.json". 'includePath' from c_cpp_properties.json in folder 'EMPTY-PROJECT' will be used for this file instead.
I don't think that's a problem though, because it's what I want, except for the fact that EMPTY-PROJECT is all caps, which is weird. The folder is lowercase. Sometimes I hate VS Code. Does anyone know how to wave a dead chicken over this to make it go? I can't use this library without intellisense. ___ UPDATE ___ Got it to complete with these paths
"C:/Users/gazto/zephyrproject/**",
"${workspaceFolder}/**",
"C:/Users/gazto/zephyrproject/htcw_bits/include",
"C:/Users/gazto/zephyrproject/htcw_io/include",
"C:/Users/gazto/zephyrproject/htcw_ml/include",
"C:/Users/gazto/zephyrproject/htcw_data/include",
"C:/Users/gazto/zephyrproject/htcw_gfx/include",
"C:/Users/gazto/zephyrproject/htcw_uix/include",
${workspaceFolder}But the infuriating part is why it's not recursively searching "C:/Users/gazto/zephyrproject/**" WHY IS THIS SO DIFFICULT, MICROSOFT?
Check out my IoT graphics library here: https://honeythecodewitch.com/gfx
-
I use VS Code because A) Everyone uses it so I can write articles involving using it with instructions for that software and it will hit the widest audience with the least effort B) It's totally cross platform C) Extensions like nobody's business. I can even edit Fallout and Elder Scrolls game scripts with intellisense. I'll put up with its shortcomings for all that.
Check out my IoT graphics library here: https://honeythecodewitch.com/gfx