ctix icon indicating copy to clipboard operation
ctix copied to clipboard

Incorrect warning about name collisions

Open dhilgarth opened this issue 1 year ago • 2 comments

In my StackNetwork.ts, I have this code:

interface Options {
    stackName: string;
    config: NetworkConfig;
}
export { Options as StackNetworkOptions };

In my StackService.ts, I have this code:

interface Options {
    stackName: string;
    config: ServiceConfig;
}

export { Options as StackServiceOptions };

But I still get these warnings:

   WARN     StackNetwork.ts:6:1
   > P:/modular/infrastructure-services/src/constructs/docker-stack/StackNetwork.ts:6:1
   > detect same name of export statement: "Options"

   WARN     StackService.ts:7:1
   > P:/modular/infrastructure-services/src/constructs/docker-stack/StackService.ts:7:1
   > detect same name of export statement: "Options"

dhilgarth avatar Apr 28 '24 18:04 dhilgarth

Thank you for your report. I suspect this is caused by the symbol table not recognising aliases. You can either fix it yourself and send me a PR, or you can give me some time(I've been busy with work recently, so this may take a while) to fix it. Thank you.

imjuni avatar May 01 '24 07:05 imjuni

Unfortunately, I can't provide a PR at this time.

dhilgarth avatar May 01 '24 10:05 dhilgarth

@dhilgarth I'm busy with other things right now, so it'll be a while before I can fix this, thank you.

imjuni avatar May 21 '24 12:05 imjuni

Sure, don't worry!

dhilgarth avatar May 21 '24 12:05 dhilgarth

@dhilgarth This issue was fixed in v2.4.5, thank you!

imjuni avatar Jun 02 '24 15:06 imjuni

I can confirm it works now, thanks!

dhilgarth avatar Aug 14 '24 07:08 dhilgarth