Typedoc: Typedoc hangs in Linux

Created on 18 Jul 2017  路  9Comments  路  Source: TypeStrong/typedoc

Hi,

I am currently using typedoc 0.7.1. It's working great on my dev machine(windows 7) but on the linux server it just hangs and does nothing. The server I am using has SUSE installed:

SUSE Linux Enterprise Server 12 (x86_64)
VERSION = 12
PATCHLEVEL = 1

It just outputs this message and does nothing furher.

Using TypeScript 2.3.2 from /data/devops/jenkins/workspace/cia-pipeline/node_modules/typedoc/node_modules/typescript/lib

What could be the reason for this?

Thanks.

help wanted

Most helpful comment

ON further investigation I have found that it is the git rev-parse --show-toplevel call that the github extension does. As detailed here it seems that for me an incorrectly typed path is returned from this call so that when the github plugin is comparing the cached repository paths with the path returned from this git call they do not match. It then looks up the repo path for every single file.

I will submit a PR to fix this.

All 9 comments

I get this on windows (but it does occasionally work) but on linux (our CI jenkins server) it seems fine

The issue for me seems to be that the github plugin takes over 2 seconds per file and fails each time (this is running in a corporate environment where we have no access to github. I assume that some request timesout each time so for over 1000 files this appears to hang.

How can I disable the GithubPlugin?

That explanation doesn't make sense to me, I just took a look at the GitHub plugin and all it does is run a few git commands, none of which try to reach github.com. I also disconnected all internet access and was able to run TypeDoc without an issue.

I don't believe it's currently possible to disable built in plugins with configuration (looks like #254 can be used to track this), but you can remove the component if you are working with a script:

// @ts-check

const td = require('typedoc');
const app = new td.Application({
    tsconfig: 'tsconfig.json'
});

const converter = /** @type {import('typedoc/dist/lib/utils/component').ChildableComponent<any>} */ (app.getComponent('converter'));
converter.removeComponent('git-hub');

app.generateDocs(app.expandInputFiles(['src']), 'docs');

ON further investigation I have found that it is the git rev-parse --show-toplevel call that the github extension does. As detailed here it seems that for me an incorrectly typed path is returned from this call so that when the github plugin is comparing the cached repository paths with the path returned from this git call they do not match. It then looks up the repo path for every single file.

I will submit a PR to fix this.

@Roaders, can this be closed? Can you try checking against master?

Well I had the problem on Windows and my pr fix hasn't been released yet (and I didn't create the issue) so no, I don't think the issue should be closed

Just seen that or had been merged to master. Thanks for that.

Unfortunately the machine that had the issue had no access to GitHub. When the changes are released I will have to request that the new version is made available internally (which should be quick) before I can test it.

I will let you know once I have tested 馃檪

@Roaders 0.14.x has been out for a while with your merged changes. Has it fixed your issue?


The OPs issue is too vague for us to really do anything about. TypeDoc certainly has some performance issues with large projects taking a few minutes to document (under investigation, haven't found the solution yet) but this is being tracked in other issues.

It was only ever an intermittent problem but since updating I have not seen the issue. I think it's safe to assume that it is fixed.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

goodmind picture goodmind  路  3Comments

Rycochet picture Rycochet  路  4Comments

woppa684 picture woppa684  路  3Comments

euberdeveloper picture euberdeveloper  路  3Comments

KevinEady picture KevinEady  路  3Comments