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
npm task detection finds nothing in multi-root workspace #57897
Comments
Also possibly of note: The Tasks output console reports |
@mgabeler-lee-6rs I cannot reproduce this problem. I´ve tried the setup below. I´ve created it as follows:
Both projects contain a tasks.json file. As you can see below the tasks are properly detected. |
Here's a minimal test procedure that repro's the issue for me:
Is there a way to get debug output out of the npm task detection? I rummaged through all the output windows and, unlike my real use case, don't even see the warning(?) messages I mentioned in the original post. |
@mgabeler-lee-6rs thanks for the repro. There is a caching issue when a new root folder is added. The extension should also watch for workspace folder changes. As a work around you can I reload the window, then all the tasks are detected, see below. |
While the workaround addresses the repro case, it doesn't address my real case. Trying to find a better repro that matches my real case. Edit: problem is something about a rush monorepo I have. Working on a minimal repro case for that. |
I was able to bisect-ish my real repo and isolate it to a package.json from a dependency in my monorepo.
https://github.com/mrrama/node-bunyan-prettystream/blob/master/package.json#L26
Minimal test case:
I'm guessing that it's assuming the value of each |
Note: in addition to the "bad" In the |
Issue Type: Bug
Note: tried downgrading to 1.26.0, same problem there. I suspect this is a compatibility issue with some system/environmental update, as it broke for me on ~ Aug 30th. I had installed 1.26.1 on Aug 17th, and this was not broken initially then.
I've tried launching with all extensions disabled and the problem persists.
VS Code version: Code 1.26.1 (493869e, 2018-08-16T18:34:20.517Z)
OS version: Linux x64 4.9.0-8-amd64
System Info
checker_imaging: disabled_off
flash_3d: enabled
flash_stage3d: enabled
flash_stage3d_baseline: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
native_gpu_memory_buffers: disabled_software
rasterization: disabled_software
video_decode: unavailable_software
video_encode: unavailable_software
webgl: enabled
webgl2: enabled
Extensions (13)
(1 theme extensions excluded)
The text was updated successfully, but these errors were encountered: