You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[api-extractor] Canonical names are getting suffixed with _2 unnecessarily. #3581
When running the API extractor, my interface StorageManager and interface ImageData get suffixed with a _2 in their canonical names, however, their references remain the right name.
Even after bumping to the new version, it worked right a few times but suddenly started happening a couple of hours before this issue was created.
Repro steps
Fork the repo linked above.
Simply just run the API extractor and when I went to check the extracted json file, it had _2, can be confirmed by running the npm docs:gen script and then seeing the generated docs by running docs:dev.
Standard questions
Please answer these questions to help us investigate your issue more quickly:
I'm unfortunately having a tough time repro-ing this. Here's what I did:
Cloned the repo
Checked out the weird-docs branch
Ran npm install
Ran npm run docs:gen
Only the docs/api/StatPerks.md file seems to be changing for me. No other changes. I've tried running npm run docs:gen about 10 separate times, and still no repro.
OS: macOS Monterey 12.5
Node.js version: v16.14.1
The code that suffixes names to make them unique is at
Since I was using a custom documents generator, I simply added a bypass for this right there as I could not figure this one out here but would definitely appreciate someone else taking a go at this cuz my document generator lookin a little sus rn.
Activity
[-][api-extractor] [/-][+][api-extractor] Canonical names are getting suffixed with `_2` unnecessarily.[/+]zelliott commentedon Aug 13, 2022
I'm unfortunately having a tough time repro-ing this. Here's what I did:
weird-docsbranchnpm installnpm run docs:genOnly the
docs/api/StatPerks.mdfile seems to be changing for me. No other changes. I've tried runningnpm run docs:genabout 10 separate times, and still no repro.The code that suffixes names to make them unique is at
rushstack/apps/api-extractor/src/collector/Collector.ts
Line 479 in 0a38e48
That would be the first place to look for any indeterminism.
TheDrone7 commentedon Aug 24, 2022
Since I was using a custom documents generator, I simply added a bypass for this right there as I could not figure this one out here but would definitely appreciate someone else taking a go at this cuz my document generator lookin a little sus rn.