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

build error because binaryDir removed after configure (with preset) step #2128

Closed
anb0s opened this issue Sep 17, 2021 · 3 comments
Closed
Labels
bug a bug in the product Feature: build
Milestone

Comments

@anb0s
Copy link

anb0s commented Sep 17, 2021

Brief Issue Summary

The binaryDir configured in the preset (CMakePresets.json) was deleted by git clean -dfx or similar task and push button Build shows error message:

[main] Building folder: repo
[build] Starting build
[proc] Executing command: /usr/bin/cmake --build /home/andre/git/repo/build/default-x86_64
[build] Error: /home/andre/git/repo/build/default-x86_64 is not a directory
[build] Build finished with exit code 1

Expected:

  1. Push Build
  2. Configure is running automatically if binaryDir folder is not found
  3. Build is started

OR

  1. Push Build
  2. Message [build] Error: /home/andre/git/repo/build/default-x86_64 is not a directory appears
  3. Push Configure and select same preset
  4. Configure is running with preset
  5. Push Build
  6. Build is started

Apparent Behavior:

  1. Push Build
  2. Error is shown, see above, [build] Error: /home/andre/git/repo/build/default-x86_64 is not a directory
  3. Select the configure preset again
  4. Configure is not executed (no output)
  5. Select the build preset again
  6. Push Build
  7. Error is shown, see above, [build] Error: /home/andre/git/repo/build/default-x86_64 is not a directory

Platform and Versions

  • Operating System: WSL2 with Debian 11 Bullseye (VSCode running @ Windows 10 1909)
  • CMake Version: 3.21.2
  • VSCode Version: 1.60.0
  • CMake Tools Extension Version: 1.8.1
  • Compiler/Toolchain: gcc version 10.2.1 20210110 (Debian 10.2.1-6)
@bobbrow
Copy link
Member

bobbrow commented Sep 17, 2021

Thank you for reporting this issue. I can reproduce it on Windows, even without WSL2.

@bobbrow
Copy link
Member

bobbrow commented Sep 17, 2021

A fix for this issue is out for review.

@anb0s
Copy link
Author

anb0s commented Oct 15, 2021

verified with 1.9.0, Thanks!

@anb0s anb0s closed this as completed Oct 15, 2021
@github-actions github-actions bot locked and limited conversation to collaborators Jan 29, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug a bug in the product Feature: build
Projects
None yet
Development

No branches or pull requests

3 participants