The generated active file is shown in the root of workspace · Issue #6386 · microsoft/vscode-cpptools · GitHub
Skip to content

The generated active file is shown in the root of workspace #6386

Description

@BowenLi1994

Type: General

Describe the bug

  • OS and Version:8.04.5 LTS (Bionic Beaver)
  • VS Code Version:1.50.1
  • C/C++ Extension Version: v1.1.0-insiders3
  • Other extensions you installed (and if the issue persists after disabling them):C++ Intellisense,GitHub Pull Requests and Issues,GitLens
  • A clear and concise description of what the bug is.

To Reproduce
Please include code sample and task.json files.
Steps to reproduce the behavior:

  1. I open the "issue" folder by remote SSH extension as the root path
  2. In the "project" folder, there is a "folder1" subfolder.
  3. In "folder1", there is a "helloworld.cpp"
  4. When I try " run build task ..." by using "g++ build active file", the active file "helloworld" will appear in the root folder of the "issue" folder instead of the current directory "folder1".
  5. In the task.json file, the environmental variable is "fileDirname".
    6.This issue suddenly happens, everything is fine before.

Expected behavior
A clear and concise description of what you expected to happen.
I hope the generated active file can be generated at the current folder instead of the root folder.

Screenshots
If applicable, add screenshots to help explain your problem.
image

Additional context
Add any other context about the problem here including log messages from the Output window.
The task.joson is the default file without any modification:
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugfixedCheck the Milestone for the release in which the fix is or will be available.quick fixregressionA bug that didn't exist in a previous releasetasks/build/debugAn issue relating to tasks.json (e.g. build issues)

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions