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

Optionally provide path/link to file with transpilation error #32488

Open
ORESoftware opened this issue Jul 19, 2019 · 2 comments
Open

Optionally provide path/link to file with transpilation error #32488

ORESoftware opened this issue Jul 19, 2019 · 2 comments
Labels
Awaiting More Feedback This means we'd like to hear from more people who would be helped by this feature Suggestion An idea for TypeScript

Comments

@ORESoftware
Copy link

ORESoftware commented Jul 19, 2019

I see this in my terminal:

Screen Shot 2019-07-19 at 1 04 27 PM

I have two feature requests:

  1. for us hard of seeing people, it's really hard to read the cyan and yellow color in a light terminal.
    Is there some way to turn on darker colors - by passing a dark/light option to pretty?

  2. It would be awesome if the transpiler could include the path to the file in the terminal. My editor is cool and if I click the file path in the terminal it will open the file.

My tsconfig.json is:


    {
      "compilerOptions": {
        "outDir": "dist",
        "allowJs": false,
        "pretty": true,   // << makes it pretty, but I can't read in a light-colored terminal
        "resolveJsonModule": true,
        "sourceMap": false,
        "skipLibCheck": true,
        "rootDir": "src",
        "declaration": false,
        "baseUrl": ".",
        "target": "es2018",
        "module": "commonjs",
        "noImplicitAny": true,
        "removeComments": true,
        "allowUnreachableCode": true,
        "lib": [
          "es2017",
          "es2018"
        ]
      },
      "compileOnSave": false,
      "include": [
        "src"
      ]
    }
@RyanCavanaugh
Copy link
Member

The path is right there in the error message?

@RyanCavanaugh RyanCavanaugh added Awaiting More Feedback This means we'd like to hear from more people who would be helped by this feature Suggestion An idea for TypeScript labels Jul 23, 2019
@ORESoftware
Copy link
Author

yeah, maybe webstorm/intellij can only work with an absolute path. but the color thing I suppose is more important, I assume jetbrains products could be made to interpret the relative path.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Awaiting More Feedback This means we'd like to hear from more people who would be helped by this feature Suggestion An idea for TypeScript
Projects
None yet
Development

No branches or pull requests

2 participants