cesarParra / apexdocs

Node.js tool to generate documentation for your Salesforce Apex Classes.
https://www.npmjs.com/package/@cparra/apexdocs
MIT License
109 stars 18 forks source link

Failed to parse .cls files on MacOS #49

Closed PrzemoZiemo closed 2 years ago

PrzemoZiemo commented 2 years ago

Seems not working on MacOS:

npm run apexdocs-generate

> salesforce-app@1.0.0 apexdocs-generate
> apexdocs-generate -s ./force-app/main/promoengine/selectors -r true -t ./docs

5/17/2022, 9:38:44 AM: Parsed 0 files
5/17/2022, 9:38:44 AM: index processed.

% ls ./force-app/main/promoengine/selectors
WebCartSelector.cls     WebCartSelector.cls-meta.xml
cesarParra commented 2 years ago

Thanks @PrzemoZiemo .

Is the WebCartSelector file global? If it isn't then you will also need to specify the --scope argument with any additional scope you want to be included (public, private, etc.), for example

apexdocs-generate -s ./force-app/main/promoengine/selectors -r true -t ./docs --scope public
PrzemoZiemo commented 2 years ago

Working fine. Thanks @cesarParra !