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

Extension does not create 'tasks.json' unless the '.vscode' directory already exists #4280

Closed
ranolfi opened this issue Sep 19, 2019 · 6 comments
Assignees
Labels
bug fixed Check the Milestone for the release in which the fix is or will be available. help wanted Can be fixed in the public (open source) repo. Language Service tasks/build/debug An issue relating to tasks.json (e.g. build issues)
Milestone

Comments

@ranolfi
Copy link

ranolfi commented Sep 19, 2019

Type: General

  • OS and Version: Arch Linux
  • VS Code Version: Code-OSS 1.37.1
  • C/C++ Extension Version: 0.25.1

When I open a folder in VS Code that does not yet have a .vscode folder in it, and follow the steps to create a configuration file for debugging (as outlined in #4278), the extension creates the file launch.json inside a newly-created .vscode folder, but it does not create the file tasks.json. Because of that, when trying to start debugging, this error appears:

Could not find the task 'g++ build active file'.

But if I go and delete the launch.json file, without deleting the .vscode folder, and perform the same steps again, everything works.

Additional context
The only files I have in the folder (initially) are a couple of .cpp files and their binaries.

@sean-mcmanus sean-mcmanus added bug tasks/build/debug An issue relating to tasks.json (e.g. build issues) help wanted Can be fixed in the public (open source) repo. Language Service labels Sep 19, 2019
@sean-mcmanus
Copy link
Collaborator

Yeah, we should probably do a bug cleanup pass on the build tasks stuff we added a few months ago...I'm not sure yet when we'll have time on our schedule. The build/tasks stuff is in our open source TypeScript if anyone wants to investigate a fix themselves.

@bobbrow bobbrow added this to the On Deck milestone Oct 10, 2019
@herrera-ignacio
Copy link

This is still happening on April 2020. If I remove launch.json without deleting .vscode folder (or just create it from the beginning) everything works perfectly.

@sean-mcmanus
Copy link
Collaborator

@herrera-ignacio Yes, it was never fixed.

@bobbrow bobbrow modified the milestones: On Deck, 1.1.0 Aug 28, 2020
@elahehrashedi elahehrashedi modified the milestones: 1.1.0, 1.0.0 Sep 1, 2020
@elahehrashedi elahehrashedi removed this from the 1.0.0 milestone Sep 1, 2020
@elahehrashedi elahehrashedi added the fixed Check the Milestone for the release in which the fix is or will be available. label Sep 2, 2020
@elahehrashedi
Copy link
Contributor

bugfix: microsoft/vscode#105865

@sean-mcmanus sean-mcmanus added this to the 1.0.0 milestone Sep 3, 2020
@sean-mcmanus
Copy link
Collaborator

Should be fixed with https://github.com/microsoft/vscode-cpptools/releases/tag/0.30.0-insiders5 .

@sean-mcmanus
Copy link
Collaborator

There was a bug on Linux/Mac for 0.30.0-insiders5, but that is fixed with https://github.com/microsoft/vscode-cpptools/releases/tag/1.0.0 .

@github-actions github-actions bot locked and limited conversation to collaborators Oct 11, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug fixed Check the Milestone for the release in which the fix is or will be available. help wanted Can be fixed in the public (open source) repo. Language Service tasks/build/debug An issue relating to tasks.json (e.g. build issues)
Projects
None yet
Development

No branches or pull requests

5 participants