Skip to content
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

TypeError: Path must be a string. Received undefined #67

Open
martindsouza opened this issue Jul 29, 2017 · 3 comments
Open

TypeError: Path must be a string. Received undefined #67

martindsouza opened this issue Jul 29, 2017 · 3 comments
Assignees
Labels

Comments

@martindsouza
Copy link
Member

Getting the following error:

Created TOC
path.js:7
    throw new TypeError('Path must be a string. Received ' + inspect(path));
    ^

TypeError: Path must be a string. Received undefined
    at assertPath (path.js:7:11)
    at Object.resolve (path.js:1146:7)
    at Object.pmd.generateToc (/Users/giffy/Documents/GitHub/oraopensource/plsql-md-doc/lib/pmd.js:711:62)
    at Object.<anonymous> (/Users/giffy/Documents/GitHub/oraopensource/plsql-md-doc/app.js:91:5)
    at Module._compile (module.js:570:32)
    at Object.Module._extensions..js (module.js:579:10)
    at Module.load (module.js:487:32)
    at tryModuleLoad (module.js:446:12)
    at Function.Module._load (module.js:438:3)
    at Module.runMain (module.js:604:10)
@martindsouza martindsouza self-assigned this Jul 29, 2017
@rimblas
Copy link
Contributor

rimblas commented Jul 29, 2017

Could this be related to config.toc.menuTemplate ? Is it being checked in app.js and does it need to be in config.json?

@martindsouza
Copy link
Member Author

@rimblas yes looking at cleaning it up now. Will need @RamonEsteveCuevas to document it.

@martindsouza
Copy link
Member Author

martindsouza commented Jul 29, 2017

@RamonEsteveCuevas it turns out there was more too it than just uncommenting one feature. I've reverted the past two PRs (git revert -m 1 -n e902a5010..master).

@rimblas and I were looking at the code and it looks like some testing needs to be done to support backwards compatibility (I think around this TOC search function). So some if statements will be required but also had issues with the list in Handlebars.

To help this is my current configuration that should work / be supported:

"oos-utils" : {
    "debug" : true,
    "folders" : {
      "output" : {
        "delete" : true,
        "path" : "/Users/giffy/Documents/GitHub/oraopensource/oos-utils/docs"
      },
      "source" : {
        "path" : "/Users/giffy/Documents/GitHub/oraopensource/oos-utils/source/packages",
        "fileFilterRegexp" : "\\.pk(b|s)$"
      },
      "template" : "/Users/giffy/Documents/GitHub/oraopensource/plsql-md-doc/templates/package.md"
    },
    "toc" : {
      "fileName" : "README.md",
      "template" : "/Users/giffy/Documents/GitHub/oraopensource/plsql-md-doc/templates/toc.md"
    }
  }

martindsouza added a commit that referenced this issue Jul 29, 2017
barsema added a commit to barsema/plsql-md-doc that referenced this issue Jan 18, 2018
OraOpenSource#67 revert changes that caused this issue to stable verison. (ran: gi…
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants