-
Notifications
You must be signed in to change notification settings - Fork 42
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
Swift tasks are not created when project has both cmake and swiftpm configurations #798
Comments
|
I see, When I tried to add swift build task it created a new tasks.json file. I guess the only problem here is related to CMake build that happens automatically and results in failures as soon as workspace is opened. |
You shouldn't need to add a |
The UI there might be confusing then because if that action is already available why even add tasks.json? |
As I said in the previous comment you don't need to as the extension generates the build tasks for you. |
I am simply trying to explain what happens, I didn’t direct it to create that file, it just does probably because cmake configuration shadows one from package manager, I don’t know. |
Sorry I misunderstood. When you say "I tried to add swift build task", what did you do exactly? |
FWIW you are able to hit the configure (gear) button for the list of provided task presented when running the |
Describe the bug
Attempting to open SwiftPM project in VSCode with both CMake and Swift extensions installed means that the project cannot be built.
To Reproduce
Steps to reproduce the behavior:
git@github.com:apple/swift-package-manager.git
Tasks: Run Task
Resolve Dependencies
Build
comes from cmake extension and pressing it results in failuresExpected behavior
Package manager configuration is preferred over CMake and tasks to build the project are generated correctly after first open.
Environment
The text was updated successfully, but these errors were encountered: