Skip to content
This repository has been archived by the owner on Sep 20, 2023. It is now read-only.

Typescript cannot use tsconfig.json files #1628

Closed
osdiab opened this issue Dec 5, 2015 · 3 comments
Closed

Typescript cannot use tsconfig.json files #1628

osdiab opened this issue Dec 5, 2015 · 3 comments

Comments

@osdiab
Copy link

osdiab commented Dec 5, 2015

Running tsc against a specific file causes project flags to be ignored, so that can't be added as an argument; but tsconfig.json would be useful to draw from because it contains all the flags relevant to a particular project. Without it i almost always get spurious compiler errors by running tsc syntax checking.

Maybe this is an issue with tsc itself? I don't see a good way to use tsc for the configuration without running checks on all the files in a project.

@lcd047
Copy link
Collaborator

lcd047 commented Dec 5, 2015

Maybe this is an issue with tsc itself?

It certainly isn't an issue with syntastic. Syntastic runs tsc with the arguments you specify.

To tell syntastic not to add a filename, set syntastic_typescript_tsc_fname to an empty string:

let g:syntastic_typescript_tsc_fname = ''

To tell syntastic to show the tsc command line, enable debugging:

let g:syntastic_debug = 1

-- then run the checker and run :mes to see the debug logs.

@lcd047 lcd047 closed this as completed Dec 8, 2015
@adikari
Copy link

adikari commented Mar 29, 2016

This does works. However once set it no longer displays the error marker in the editor. If I do :Errors then only I can see the actual errors. Would be great if you could suggest on that.

@lcd047
Copy link
Collaborator

lcd047 commented Mar 29, 2016

@adikari Please open a new issue. Explain what you did, what did you expect to happen, and what happened instead.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants