Skip to content

Add --ignore-unrecognized-flags option #5393

Closed

Description

Now that #5231 I have a hard time using the latest version.
Atom complains that I need the flag to use async/await but the compiler errors if I do.

A --ignore-unrecognized-flags would be nice so one could pass newly removed options until other tools have been updated.

Activity

  1. mhegazy commented on Oct 26, 2015

    @mhegazy
    Contributor

    The behavior is intentional to avoid having misspelled compiler options go unchecked.

    In this specific case, we can put pack the flag as "known", but not require it, for a release or so, until all tools have moved on.

    Before i do this, i would like to know what is the issue here, Basarat Ali Syed (@basarat) any idea why this would be an issue with atom? would that be something fixed by taking latest from master of release-1.7 branch.

  2. basarat commented on Oct 26, 2015

    @basarat
    Contributor

    would that be something fixed by taking latest from master of release-1.7 branch.

    Yes definitely, mostly waiting on two bugs (linked here TypeStrong/atom-typescript#663) : #5278 (labeled as a bug needing fixing) & #5110 (not reproduced cause I don't have the test files ... so will probably update even without this)

  3. Pajn commented on Oct 26, 2015

    @Pajn

    The behavior is intentional to avoid having misspelled compiler options go unchecked.

    The default behaviour yes, but this is a request for a flag to circumvent this behaviour.
    Even if this specific case is fixed, it will probably pop up again when other flags are removed. Having a flag that can be set in those cases would make it easier for everyone. You doesn't need to keep "ghost flags" around and we can workaround this kind of problems instead of rolling back the version.

  4. mhegazy commented on Oct 26, 2015

    @mhegazy
    Contributor

    I understand the issue, but i do not think the proposed solution of a new flag solves it, it just hides the problem. We will get #5278 fixed today, and that will unblock Basarat Ali Syed (@basarat). and moving on will take a a more gradual approach to removing flags to make sure non one runs into this again.

  5. mhegazy commented on Nov 13, 2015

    @mhegazy
    Contributor

    We keep the original issue in mind in the future. we should have a better deprication story for flags. sorry for the trouble. but i believe now migrating to latest atom-typescript safely.

  6. locked and limited conversation to collaborators on Jun 19, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    SuggestionAn idea for TypeScript

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions