-
-
Notifications
You must be signed in to change notification settings - Fork 414
[FEATURE] class extends class extends another class, I cannot see the properties of the 3rd class when I am viewing the first class #1140
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Works fine for me with development version, i will release 1.1.16 in a few minutes, may be it will works. |
1.1.16 released, could you do a test ? |
I tested it but it's still a no, it only includes 1 level of inheritance |
Can you please reopen this issue as it's not resolved yet @vogloblinsky |
@SDAdham Could you generate a sample project with Angular CLI and add your use-case in it, and push it on Github. When i used your code in https://github.com/compodoc/compodoc-demo-todomvc-angular, i have this result : |
Hi @vogloblinsky , then this means that there is a bug gets triggered when I use compodoc with my project. Hmm |
I cannot replicate the project as it's honestly huge, but I'll dedicate some time on this later today or tomorrow to see if I can find anything interesting from the logs |
Ok thanks |
Sorry for taking long, I don't know if there is a certain debug flag I can use to show more logs, but here is all of the errors i found:
Here is how the file referenced content looked like:
There are several errors similar to above in many other routes files, but I don't think that this could be related, but nothing else. This is how I run it:
The
|
I cannot find a way of debug:
Version:
I'm on Windows 11 though but it doesn't matter, the issue happens on both W11 and during CI. |
I tried serve option but it's no different. |
Ok i will. try to check if the routing parsing error, raise an exception and generate a problem with the link between the three classes. |
I just checked, we have this is working just fine with services but not components. But for services, i do not see the inherited variables, only methods. |
Sorry, i cannot reproduce your context. |
I have the same issue in my project with release 1.1.14 and 1.1.18. I will try to fix the problem and make a PR. |
thanks @philippjenni , that'll be great :) :) |
I have fixed the issue in the branch https://github.com/philippjenni/compodoc/tree/hotfix/1140-property-inheritance @SDAdham can you validate if the bug is fixed for you too? |
@philippjenni Do you have a use-case for reproducing the bug ? |
Ok fixed, thanks @philippjenni for your contribution |
@vogloblinsky Yes, like this ...
The problem is that |
Absolutely, what version do I install to test this? I tried following this https://stackoverflow.com/questions/39732397/install-specific-branch-from-github-using-npm/50734317 but none of the commands helped. I get this error:
package.json: Here is my trials:
Neither https://stackoverflow.com/questions/43411864/how-to-install-package-from-github-repo-in-yarn helps :S |
Try checkout my branch with git and run follow command like this https://github.com/compodoc/compodoc/blob/master/CONTRIBUTING.md#development-process The follow commands should work: open one terminal and run inside compodoc folder : |
I even tried to ignore the error and open the second terminal and run the second command, it achieved no luck. It finished, and the other terminal is sitll hanging on the errors |
Ok, I opened the generated HTML pages manually and I can verify that you are awesome by the look of it. I checked few pages and it seems that I can see the inherited classes. Let me check NestJS project as well. |
@SDAdham just tried that :
|
It's alright, I am already going through the docs as we speak. Luckily HTML files works awesome on their own without a server. Well done! It works perfectly in Angular! |
For NestJS project:
I am assuming your fix doesn't include nestjs, right? |
Give me some code example please to see where i miss to process inheritance for Nestjs use-cases please |
Ok, give me a moment pls, let me try to find a template for nestjs and try to reproduce it for you. |
Thanks |
@vogloblinsky i did an example code, but I couldn't run compodoc, please see https://github.com/SDAdham/typescript-starter to start, |
I added you as collaborator |
Ok, i can see the issue for controllers. I will fix it. |
Nothing is wrong, I just added it just in case you broke something :D 😇 Huge thanks @vogloblinsky ! 👍 |
Ok fixed, re-tried that in your Nestjs project :
|
Nice, many thanks @vogloblinsky & @philippjenni . You guys are honestly awesome. Can you please create the PR and release? 👍 Just because of this missing feature, we were not able to really look at the docs. It was useless for us and bit deceiving. I'm assuming with your fix, this will change in the upcoming future. |
Can you please let me know once it's released so that I can update my |
@vogloblinsky this issue has been opened since Oct 31, 2021, it's been 4 months, any chance that you can please release the fix? |
facing same issue when extending my component from a class |
The coverage shown 0% |
Overview of the feature
In angular, I have class extends class extends another class, I cannot see the properties of the 3rd class when I am viewing the first class, I can only see the properties defined in the second class in the first class
Motivation for or Use Case
Complete the feature? :D
when viewing the doc for
class A
, I'd seeaVar
andbVar
but nocVar
. This issue is also for methods, etc...Related issues
The text was updated successfully, but these errors were encountered: