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

Task.ja=son for build #45

Closed
KingLebron opened this issue May 12, 2016 · 4 comments
Closed

Task.ja=son for build #45

KingLebron opened this issue May 12, 2016 · 4 comments
Assignees

Comments

@KingLebron
Copy link

Task.json is created as the followings:

{
    "version": "0.1.0",
    "command": "g++",
    "args": ["-g", "*.cpp", "-o", "a.out"],
    "problemMatcher": {
        "owner": "cpp",
        "fileLocation": ["relative", "${workspaceRoot}"],
        "pattern": {
            "regexp": "^(.*):(\\d+):(\\d+):\\s+(warning|error):\\s+(.*)$",
            "file": 1,
            "line": 2,
            "column": 3,
            "severity": 4,
            "message": 5
        }
    }
}

However it report the following error, though there are MergeSort.cpp and test.cpp in the working dicrectory:

clang: error: no such file or directory: '*.cpp'
clang: error: no input files
@delmyers
Copy link
Contributor

@sridmad

@KingLebron
Copy link
Author

Additional Information:
OS: OS X 10.11.4
VSCode: 1.1.0
C/C++ Extension: 0.5.0

@sridmad
Copy link
Member

sridmad commented Jun 25, 2016

The extension is not involved in dealing with tasks. The only reason I can think of for the files not to be found due to current directory not being set correctly.

  • does invoking pwd as command show the correct directory?

  • current working directory for the invoked tool should be the workspace root. You can also try explicitly setting the directory for the tool through options

    "options": {
    "cwd": "/path/to/directory"
    },

@pieandcakes
Copy link
Contributor

@KingLebron Tasks are provided by VSCode. If this isn't resolved, can you try and file an issue on the VSCode repo?

@github-actions github-actions bot locked and limited conversation to collaborators Oct 19, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants