Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. The Lounge
  3. Does anyone use C++ with VSCode?

Does anyone use C++ with VSCode?

Scheduled Pinned Locked Moved The Lounge
c++visual-studiocomgraphicsiot
8 Posts 5 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • H Offline
    H Offline
    honey the codewitch
    wrote on last edited by
    #1

    (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

    Kornfeld Eliyahu PeterK J D E 4 Replies Last reply
    0
    • H honey the codewitch

      (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

      Kornfeld Eliyahu PeterK Offline
      Kornfeld Eliyahu PeterK Offline
      Kornfeld Eliyahu Peter
      wrote on last edited by
      #2

      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

      "It never ceases to amaze me that a spacecraft launched in 1977 can be fixed remotely from Earth." ― Brian Cox

      H 1 Reply Last reply
      0
      • Kornfeld Eliyahu PeterK Kornfeld Eliyahu Peter

        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

        H Offline
        H Offline
        honey the codewitch
        wrote on last edited by
        #3

        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

        1 Reply Last reply
        0
        • H honey the codewitch

          (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

          J Offline
          J Offline
          jmaida
          wrote on last edited by
          #4

          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

          H 1 Reply Last reply
          0
          • J jmaida

            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

            H Offline
            H Offline
            honey the codewitch
            wrote on last edited by
            #5

            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

            1 Reply Last reply
            0
            • H honey the codewitch

              (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

              D Offline
              D Offline
              Deoclecio Freire
              wrote on last edited by
              #6

              I battled with VSCode and "XMakes" configurations for a long time, until I built my own solution. I've been using it for 2 year by now with no problems; my web server, some database projects, some game programming study... Hope this helps. =) CppMagic[^]

              1 Reply Last reply
              0
              • H honey the codewitch

                (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

                E Offline
                E Offline
                etkid84
                wrote on last edited by
                #7

                is Understand by SciTools ... let the editor war begin... :laugh:

                ~d~

                H 1 Reply Last reply
                0
                • E etkid84

                  is Understand by SciTools ... let the editor war begin... :laugh:

                  ~d~

                  H Offline
                  H Offline
                  honey the codewitch
                  wrote on last edited by
                  #8

                  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

                  1 Reply Last reply
                  0
                  Reply
                  • Reply as topic
                  Log in to reply
                  • Oldest to Newest
                  • Newest to Oldest
                  • Most Votes


                  • Login

                  • Don't have an account? Register

                  • Login or register to search.
                  • First post
                    Last post
                  0
                  • Categories
                  • Recent
                  • Tags
                  • Popular
                  • World
                  • Users
                  • Groups