Skip to content
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

CMake: Compile Active File command stopped working in v1.10.4 #2438

Closed
aliaksei-bahdanau opened this issue Mar 18, 2022 · 2 comments · Fixed by #2440
Closed

CMake: Compile Active File command stopped working in v1.10.4 #2438

aliaksei-bahdanau opened this issue Mar 18, 2022 · 2 comments · Fixed by #2440
Labels
Feature: build regression used to work and no longer does. Regressions are typically high priority
Milestone

Comments

@aliaksei-bahdanau
Copy link

Brief Issue Summary

CMake: Compile Active File command stopped working in v1.10.4. Tried on Linux only
Shows error: "Unable to find compilation information for this file"

CMake Tools Diagnostics

{
  "os": "linux",
  "vscodeVersion": "1.65.2",
  "cmtVersion": "1.10.4",
  "configurations": [
    {
      "folder": "/home/abahdanau/cpp",
      "cmakeVersion": "3.21.4",
      "configured": true,
      "generator": "Unix Makefiles",
      "usesPresets": false,
      "compilers": {
        "C": "/usr/bin/cc",
        "CXX": "/data/tools/gcc/5.2.0/bin/g++"
      }
    }
  ],
  "cpptoolsIntegration": {
    "isReady": true,
    "hasCodeModel": true,
    "activeBuildType": "Release",
    "buildTypesSeen": [
      "Release"
    ],
    "requests": [
      "file:///home/abahdanau/cpp/main.cpp"
    ],
    "responses": [
      {
        "uri": "file:///home/abahdanau/cpp/main.cpp",
        "configuration": {
          "defines": [
            "NDEBUG"
          ],
          "standard": "gnu++17",
          "includePath": [],
          "compilerPath": "/data/tools/gcc/5.2.0/bin/g++",
          "compilerArgs": [
            "-O3",
            "-DNDEBUG",
            "-fsanitize=thread",
            "-static-libasan",
            "-std=gnu++1z"
          ]
        }
      }
    ],
    "partialMatches": [],
    "targetCount": 1,
    "executablesCount": 1,
    "librariesCount": 0,
    "targets": [
      {
        "name": "cpp",
        "type": "EXECUTABLE"
      }
    ]
  },
  "settings": [
    {
      "communicationMode": "automatic",
      "useCMakePresets": "auto",
      "configureOnOpen": false
    }
  ]
}

Debug Log

[main] Saving open files before configure/build
[extension] [3934] cmake.compileFile finished (returned undefined)
@elahehrashedi
Copy link
Contributor

Thank you for reporting this issue, We are investigating it right now.
I recommend switching to version 1.9.2 until we resolve this. (Link to VSIX v1.9.2 https://github.com/microsoft/vscode-cmake-tools/releases/tag/v1.9.2)

@elahehrashedi elahehrashedi added regression used to work and no longer does. Regressions are typically high priority Feature: build labels Mar 18, 2022
@elahehrashedi elahehrashedi added this to the 1.10.0 milestone Mar 18, 2022
@pnelego
Copy link

pnelego commented Mar 20, 2022

Might be related, after this update, GDB no longer launches from the bottom menu citing:
GDB broken
reverting to previous version fixes the issue.

@github-actions github-actions bot locked and limited conversation to collaborators May 6, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Feature: build regression used to work and no longer does. Regressions are typically high priority
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants