question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[BUG] Error genering documentation

See original GitHub issue

Hello I am having this issue:

The files path are:

C:/Users/lazaro.garcia/Desktop/Work/webapp.git/client-ng/angular/src/app/app.routes.observer.ts C:/Users/lazaro.garcia/Desktop/Work/webapp.git/client-ng/angular/src/app/app.routes.ts

But compodoc internally it is transforming those paths like this:

C:/Users/lazaro.garcia/Desktop/Work/pwc-webapp.routes.ts

This happens with version 1.1.18, version 1.1.11 works fine

Error Details:

[12:29:13] parsing        : C:/Users/lazaro.garcia/Desktop/Work/webapp.git/client-ng/angular/src/app/app.routes.observer.ts
[12:29:13] Analysing routes definitions and clean them if necessary
[12:29:13] parsing        : C:/Users/lazaro.garcia/Desktop/Work/webapp.git/client-ng/angular/src/app/app.routes.ts
[12:29:13] Analysing routes definitions and clean them if necessary
[12:29:13] parsing        : C:/Users/lazaro.garcia/Desktop/Work/webapp.git/client-ng/angular/src/app/app.routing.module.ts
[12:29:13] Analysing routes definitions and clean them if necessary
Unhandled Rejection at: Promise {
  <rejected> FileNotFoundError: File not found: C:/Users/lazaro.garcia/Desktop/Work/pwc-webapp.routes.ts
      at DirectoryCoordinator.addSourceFileAtPath (C:\Users\lazaro.garcia\Desktop\Work\webapp.git\client-ng\angular\node_modules\ts-morph\dist\ts-morph.js:18643:19)
      at Project.addSourceFileAtPath (C:\Users\lazaro.garcia\Desktop\Work\webapp.git\client-ng\angular\node_modules\ts-morph\dist\ts-morph.js:20088:51)
      at _loop_3 (C:\Users\lazaro.garcia\Desktop\Work\webapp.git\client-ng\angular\node_modules\@compodoc\compodoc\dist\index-cli-a4b7f403.js:6506:33)
      at RouterParserUtil.cleanFileSpreads (C:\Users\lazaro.garcia\Desktop\Work\webapp.git\client-ng\angular\node_modules\@compodoc\compodoc\dist\index-cli-a4b7f403.js:6536:17)
      at AngularDependencies.getSourceFileDecorators (C:\Users\lazaro.garcia\Desktop\Work\webapp.git\client-ng\angular\node_modules\@compodoc\compodoc\dist\index-cli-a4b7f403.js:9503:32)
      at C:\Users\lazaro.garcia\Desktop\Work\webapp.git\client-ng\angular\node_modules\@compodoc\compodoc\dist\index-cli-a4b7f403.js:9313:31
      at Array.map (<anonymous>)
      at AngularDependencies.getDependencies (C:\Users\lazaro.garcia\Desktop\Work\webapp.git\client-ng\angular\node_modules\@compodoc\compodoc\dist\index-cli-a4b7f403.js:9302:21)
      at CliApplication.Application.getDependenciesData (C:\Users\lazaro.garcia\Desktop\Work\webapp.git\client-ng\angular\node_modules\@compodoc\compodoc\dist\index-cli-a4b7f403.js:11046:40)
      at C:\Users\lazaro.garcia\Desktop\Work\webapp.git\client-ng\angular\node_modules\@compodoc\compodoc\dist\index-cli-a4b7f403.js:10855:23 {
    path: 'C:/Users/lazaro.garcia/Desktop/Work/pwc-webapp.routes.ts',
    code: 'ENOENT'
  }
} reason: FileNotFoundError: File not found: C:/Users/lazaro.garcia/Desktop/Work/pwc-webapp.routes.ts
    at DirectoryCoordinator.addSourceFileAtPath (C:\Users\lazaro.garcia\Desktop\Work\webapp.git\client-ng\angular\node_modules\ts-morph\dist\ts-morph.js:18643:19)
    at Project.addSourceFileAtPath (C:\Users\lazaro.garcia\Desktop\Work\webapp.git\client-ng\angular\node_modules\ts-morph\dist\ts-morph.js:20088:51)
    at _loop_3 (C:\Users\lazaro.garcia\Desktop\Work\webapp.git\client-ng\angular\node_modules\@compodoc\compodoc\dist\index-cli-a4b7f403.js:6506:33)
    at RouterParserUtil.cleanFileSpreads (C:\Users\lazaro.garcia\Desktop\Work\webapp.git\client-ng\angular\node_modules\@compodoc\compodoc\dist\index-cli-a4b7f403.js:6536:17)
    at AngularDependencies.getSourceFileDecorators (C:\Users\lazaro.garcia\Desktop\Work\webapp.git\client-ng\angular\node_modules\@compodoc\compodoc\dist\index-cli-a4b7f403.js:9503:32)
    at C:\Users\lazaro.garcia\Desktop\Work\webapp.git\client-ng\angular\node_modules\@compodoc\compodoc\dist\index-cli-a4b7f403.js:9313:31
    at Array.map (<anonymous>)
    at AngularDependencies.getDependencies (C:\Users\lazaro.garcia\Desktop\Work\webapp.git\client-ng\angular\node_modules\@compodoc\compodoc\dist\index-cli-a4b7f403.js:9302:21)
    at CliApplication.Application.getDependenciesData (C:\Users\lazaro.garcia\Desktop\Work\webapp.git\client-ng\angular\node_modules\@compodoc\compodoc\dist\index-cli-a4b7f403.js:11046:40)
    at C:\Users\lazaro.garcia\Desktop\Work\webapp.git\client-ng\angular\node_modules\@compodoc\compodoc\dist\index-cli-a4b7f403.js:10855:23 {
  path: 'C:/Users/lazaro.garcia/Desktop/Work/pwc-webapp.routes.ts',
  code: 'ENOENT'
}

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
lazaro3487commented, Feb 28, 2022

Yes, the same happens to me. Version 1.1.15 works fine and 1.1.16 introduced this problem.

0reactions
mhombachcommented, Feb 28, 2022

@mhombach Fixed 😉

Thanks so much 😃 Will be looking forward to the 1.1.20 release^^ Also, since I was interested in the fix, I had a look through the commit and made a comment for hopefully improve, I hope you don’t mind =)

Read more comments on GitHub >

github_iconTop Results From Across the Web

[BUG] Generating the documentation with doxygen causes an ...
Describe the bug Generating the documentation with doxygen causes the following output in the error list of Visual Studio: After the error ......
Read more >
Bug #320253 “Error while generating the documentation” : Bugs ...
After running ./playground docu I get the following error: Generating C++ examples for /home/nirangor/project/myOpenWNS/tests/system/wifimac-tests
Read more >
Error when generating a document - Sparx Systems
Hi, I am getting an error when trying to generate documentation for a project. When I press generate is says: "Error creating output...
Read more >
OBIEE export error: "Error generating document" — oracle-tech
Hi, I have a dashboard with prompts. In one of the prompts I am using grouped variables as the value of the prompts....
Read more >
Unable to build Maven project due to Javadoc error?
UPDATE FOR THOSE WHO GOOGLED THIS BUG: If the project uses source/target 8, ... This will stop the javadoc jar from being generated...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found