aspnet / Tooling

Issue tracker and info on Visual Studio tooling for ASP.NET
Other
256 stars 124 forks source link

Task Runner Explorer: task output being truncated #893

Open scottaddie opened 7 years ago

scottaddie commented 7 years ago

In both VS 2015 and VS 2017 RC, Task Runner Explorer truncates the output produced when verbose mode is enabled in extensions like NPM Task Runner. I'm certain this behavior can be replicated with Grunt or Gulp in Task Runner Explorer; however, I was able to reproduce it with these steps:

  1. Install the NPM Task Runner extension.
  2. Install the Yarn npm package as follows:
    npm i -g yarn
  3. Create a new ASP.NET Core project with a package.json file containing the following:
    {
    "name": "webapplication1",
    "version": "1.0.0",
    "description": "",
    "dependencies": {
    "lodash": "4.17.2",
    "moment": "2.17.1",
    "react": "15.4.1",
    "react-router": "3.0.0",
    "redux": "3.6.0"
    },
    "devDependencies": {
    "webpack": "1.14.0"
    }
    }
  4. Add a .yarnrc file to the project root which contains the following:
    save-prefix ""
  5. Enable "Verbose" mode by clicking the icon in Task Runner Explorer, and run the install task found under the "package.json/Defaults" node: trx_defect
  6. Look at the resulting "install" tab in Task Runner Explorer, and note that only a small portion of the output is present.

I've encountered this same limitation when using the Webpack Task Runner extension. Task Runner Explorer either needs to display the output in its entirety, or there needs to be a mechanism for piping the output to a text file for analysis. For example, from a command shell, I could pipe output to a text file with yarn install as follows:

yarn install > yarn_install_output.txt
mlorbetske commented 7 years ago

/cc @jodavis @madskristensen