-
Notifications
You must be signed in to change notification settings - Fork 81
KeyError: 'id' processing TypeDoc #154
Comments
Just off the top of my head, I wonder if we're hitting one of the cases I lopped off index_by_id() in 3d24151. I took them off because they either didn't make sense or I couldn't get the branches to be taken in any of the TS code I had to hand. Edit: Nope, I don't think that's it at all. The class node, it seems, just lacks an |
If one of us can get it reduced, we can doubtless find a fix. I won't have time until at least next week. |
Looks like this is enough to reproduce it: diff --git a/tests/test_build_ts/source/class.ts b/tests/test_build_ts/source/class.ts
index f700886..b5fe2cc 100644
--- a/tests/test_build_ts/source/class.ts
+++ b/tests/test_build_ts/source/class.ts
@@ -53,3 +53,9 @@ interface OptionalThings {
foop?(): void;
boop?: boolean;
}
+
+class Foo implements Iterable<string> {
+ [Symbol.iterator](): IterableIterator<string> {
+ return ""[Symbol.iterator]();
+ }
+} Likewise I don't think I'llt have time to try to find a fix soon. |
Got a couple failing test cases written. The root of the problem is that there's no good way to represent intrinsics—in your case, interfaces made solely out of intrinsics—in the IR, because the field for |
More correctly, there's no way to represent types that cannot be expressed solely by a Pathname, like types that are built in or types that are parametrized (by |
Got the same error, is there a workaround to it in the meantime? |
If TS will let you break your type off and give it a name, like |
@erikrose thank you for the suggested workaround. How can I find where in the TS project the issue occurs? Because typedoc alone runs without errors. |
The problem is, as I explained in more depth above, a choice I made in our |
Hello @erikrose just wanted to know if this issue is currently looked into. I am facing the same error as well. |
Just tried out sphinx-js 3.1 on https://github.com/microsoft/bistring. I'm getting the following error:
I patched sphinx up a bit to get this trace:
Which points here.
The variable
type
looks like this:So I expect the relevant code is this line.
The text was updated successfully, but these errors were encountered: