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

preLaunchTask broken for tasks which take more than 10 seconds #59835

Closed
deitry opened this issue Oct 2, 2018 · 8 comments
Closed

preLaunchTask broken for tasks which take more than 10 seconds #59835

deitry opened this issue Oct 2, 2018 · 8 comments
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug candidate Issue identified as probable candidate for fixing in the next release debug Debug viewlet, configurations, breakpoints, adapter issues verified Verification succeeded

Comments

@deitry
Copy link

deitry commented Oct 2, 2018

I moved recently from stable to insiders version of vscode and start getting this message 10 seconds after I launch debug with "build" preLaunch task. In stable version my configuration works as expected, even if it takes long time to build project.

Version: 1.28.0-insider
Commit: caaa5369cb4d22b7481e6ff97252cf92937709eb
Date: 2018-09-28T05:17:56.394Z
Electron: 2.0.9
Chrome: 61.0.3163.100
Node.js: 8.9.3
V8: 6.1.534.41
Architecture: x64

Build task:

{
    "version": "2.0.0",
    "tasks": [
        {
            "label": "build",
            "type": "shell",
            "group":{
                "kind": "build",
                "isDefault": true
            },
            "command": "cmake",
            "options": {
                "env": {
                    "CMAKE_CXX_FLAGS": "-Wall -Wextra"
                }
            },
            "args": [
                "--build", "/home/user/workspace/project/build",
                "--config", "Debug",
                "--target", "all",
                "--", "-j4"
            ],
        },
    ]
}

Debug task:

{
    "version": "2.0.0",
    "configurations": [
        {
            "name": "(gdb) Build and run",
            "preLaunchTask": "build",
            "type": "cppdbg",
            "request": "launch",
            "program": "${workspaceFolder}/result/a.out",
            "args": [],
            "stopAtEntry": false,
            "cwd": "${workspaceFolder}",
            "environment": [
                {
                    "name": "LD_LIBRARY_PATH",
                    "value": "/opt/Qt/5.9.1/gcc_64/lib:/usr/local/lib"
                }
            ],

            "externalConsole": false,
            "MIMode": "gdb",
            "setupCommands": [
                {
                    "description": "Enable pretty-printing for gdb",
                    "text": "-enable-pretty-printing",
                    "ignoreFailures": true
                }
            ]
        }
    ]
}
@vscodebot vscodebot bot added the tasks Task system issues label Oct 2, 2018
@deitry
Copy link
Author

deitry commented Oct 2, 2018

If it matters, I symlinked .vscode-insiders to .vscode in home directory and "Code - Insiders' to "Code" in ~/.config directory in order to preserve all the extensions and settings when moved to Insiders.

@dbaeumer dbaeumer assigned isidorn and unassigned dbaeumer Oct 3, 2018
@dbaeumer dbaeumer added debug Debug viewlet, configurations, breakpoints, adapter issues and removed tasks Task system issues labels Oct 3, 2018
@dbaeumer
Copy link
Member

dbaeumer commented Oct 3, 2018

@isidorn this sounds like the other bug you investigated. Is this fixed already? Please ping if there is something I need to do.

@isidorn
Copy link
Contributor

isidorn commented Oct 3, 2018

@deitry Hi, there was actually a bug I fixed which changes the behavior for you #57346
To be more precise your task is taking longer than 10s to start and for us that is the fall back mechanism when we think the task can not be started.

For now leaving this open and if more users complain about this I can increase the timeout to 20s for example.

@isidorn isidorn added this to the Backlog milestone Oct 3, 2018
@isidorn isidorn added the feature-request Request for new features or functionality label Oct 3, 2018
@deitry
Copy link
Author

deitry commented Oct 3, 2018

@isidorn Hi, thanks for explanation. If it turns to be a feature request, may I ask you to add option to force wait until task is finished?
Build task can take up to 10-20 minutes. :D

@isidorn
Copy link
Contributor

isidorn commented Oct 3, 2018

@deitry I wrongly classified this. This is a bug which should be fixed in favor of #57346 since that one is not important.

@isidorn isidorn added bug Issue identified by VS Code Team member as probable bug and removed feature-request Request for new features or functionality labels Oct 3, 2018
@isidorn isidorn changed the title "The specified task cannot be tracked" in Insiders version preLaunchTask broken for tasks which take more than 10 seconds Oct 3, 2018
@isidorn isidorn added the candidate Issue identified as probable candidate for fixing in the next release label Oct 3, 2018
@isidorn isidorn modified the milestones: Backlog, September 2018 Oct 3, 2018
isidorn added a commit that referenced this issue Oct 3, 2018
@isidorn
Copy link
Contributor

isidorn commented Oct 3, 2018

@deitry the new insiders will have the fix in 30 minutes. Can you please let us know if this fixes your issue.
I verified this works with my example long running task.

Also thanks a lot for using vscode insiders and for filling issues like this.

@isidorn isidorn closed this as completed Oct 3, 2018
@deitry
Copy link
Author

deitry commented Oct 3, 2018

@isidorn yeah, it's fixed! Thank you so much

@isidorn
Copy link
Contributor

isidorn commented Oct 3, 2018

@deitry thanks for trying it out quickly, adding verified label

@isidorn isidorn added the verified Verification succeeded label Oct 3, 2018
@vscodebot vscodebot bot locked and limited conversation to collaborators Nov 17, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Issue identified by VS Code Team member as probable bug candidate Issue identified as probable candidate for fixing in the next release debug Debug viewlet, configurations, breakpoints, adapter issues verified Verification succeeded
Projects
None yet
Development

No branches or pull requests

3 participants