Skip to content

Unable to pass --target through g:typescript_compiler_options variable #42

@bmenant

Description

@bmenant

Related to #29 and #25.

I’ve defined this compiler option in my .vimrc:

let g:typescript_compiler_options = '--target ES5' 

Then, when I try to :make, the compiler didn’t run and displayed those notices instead:

:!make  2>&1| tee /tmp/jdoe/v5YcHTT/7
make: *** No targets specified and no makefile found.  Stop.
(1 of 1): make: *** No targets specified and no makefile found.  Stop. 

However, when I :set makeprg=tsc\ --target\ ES5\ $*\ %, the :make cmd works as expected.

EDIT: I’m also having those notices after commenting out the g:typescript_compiler_options definition.

N.B.: I’m also using the syntastic checker with let g:syntastic_typescript_tsc_args = '--target ES5' (which works fine). Could it be related?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions