GithubHelp home page GithubHelp logo

Comments (5)

weswigham avatar weswigham commented on May 1, 2024 1

Thanks for the repro - looks like we could have triggered this bug before #58085, but that change made it much easier to trigger, since we reuse type nodes so much more. #58165 is up with the fix.

from typescript.

MichaelMitchell-at avatar MichaelMitchell-at commented on May 1, 2024

Ok I have a repro. It actually demonstrates an even more egregious behavior
https://github.com/MichaelMitchell-at/repro_for_typescript_issue_58159

export declare const d: {
    e: {
        f: (foo: import({e};
        ).Foo) => boolean;
    };
};

This is even less syntactically valid!

from typescript.

jakebailey avatar jakebailey commented on May 1, 2024

It's not easy for me to provide a self-contained reproduction, as it involves the composition of a lot of our private code, but I figure since it's already known which PR introduced the regression, it should hopefully be easier for someone on the TS team to spot how an import could possibly be empty. I can patch speculative fixes or add some debug logs if requested.

FWIW https://www.npmjs.com/package/every-ts may be useful in the future if you're already able to use nightly TS (and can bisect instead).

from typescript.

MichaelMitchell-at avatar MichaelMitchell-at commented on May 1, 2024

@jakebailey that's how I found the offending commit :). BTW could I put in a quick feature request for a command to rebuild TS in the current branch? Bisecting took extra work because there was an unrelated bad commit that I had to revert on every commit I was testing, so my flow was like:

every-ts bisect good
git revert ...
# copy the current revision with the revert
git checkout HEAD^  # have to switch otherwise every-ts won't rebuild TypeScript
every-ts switch <copied revision with revert>

What I'd want is something like

every-ts bisect good
git revert ...
every-ts rebuild # or alternatively something like `every-ts switch ... --rebuild`

from typescript.

jakebailey avatar jakebailey commented on May 1, 2024

Oh, oops, I didn't even see that you bisected it; I skipped straight to the end.

BTW could I put in a quick feature request for a command to rebuild TS in the current branch? Bisecting took extra work because there was an unrelated bad commit that I had to revert or every commit I was testing, so my flow was like:

At the moment, I'm not intending for anyone to be modifying the TS repo that every-ts checks out internally.

from typescript.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.