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

JSDOC_ERROR: There are no input files to process. #137

Closed
usulpro opened this issue Sep 7, 2017 · 9 comments
Closed

JSDOC_ERROR: There are no input files to process. #137

usulpro opened this issue Sep 7, 2017 · 9 comments

Comments

@usulpro
Copy link

usulpro commented Sep 7, 2017

Hi! I tried to figure out how to use this tool. I wanted to parse my src/index.js but without any success:

image

Do I miss some steps which should be done before it?

@75lb
Copy link
Member

75lb commented Sep 7, 2017

you are using the command correctly, it's like this:

$ jsdoc2md -f file1.js file2.js file3.js

Which terminal on which platform are you using? If it's WIndows, try putting quotes around your file expression:

$ jsdoc2md -f "*.js"

@usulpro
Copy link
Author

usulpro commented Sep 7, 2017

I use Gnome terminal on Ubuntu.
I tried both: jsdoc2md -f "example.js" and jsdoc2md -f example.js - it still throws this error
Do I need to setup something else except installing jsdoc-to-markdown as a devDependency? Or it should be installed globally?

@75lb
Copy link
Member

75lb commented Sep 7, 2017

strange, i just tested it successfully on Gnome terminal on Ubuntu.. maybe try reinstalling it.. which version of node and npm do you have?

@usulpro
Copy link
Author

usulpro commented Sep 7, 2017

node 7.10
npm 4.2

@usulpro
Copy link
Author

usulpro commented Sep 7, 2017

@75lb I casually found the cause of the error!
It appears when I add an empty line to jsdoc comments.
Steps to reproduce:

  1. This works:
/**
 * filters messages accordingly to include/exclude settings
 * @param {*} messages 
 * @param {*} exclude 
 * @param {*} include 
 */
  1. This throws an error:
/**
 * filters messages accordingly to include/exclude settings
 *
 * @param {*} messages 
 * @param {*} exclude 
 * @param {*} include 
 */

@75lb
Copy link
Member

75lb commented Sep 7, 2017

I still can't reproduce it.

screen shot 2017-09-07 at 22 46 15

@usulpro
Copy link
Author

usulpro commented Sep 8, 2017

Finally, I dug out that the error appears when you have a folder starting with the underscore in your path. In my case it was _sm-react, but it reproducible with any other names:
x_x works
_xx doesn't work.

To reproduce you can clone https://github.com/sm-react/storybook-addon-console.git to _xx folder and yarn && yarn dev:docs. The first pass works fine, but if you change anything in src/index.js you'll see this error.

For me, it is not so critical to change the name of the folder, so I'm going to close this issue. Still not sure is it reproducible on other machines except the mine.

Thank you for your attention to this issue

@usulpro usulpro closed this as completed Sep 8, 2017
@75lb
Copy link
Member

75lb commented Sep 8, 2017

i tracked it down to jsdoc (which jsdoc2md uses internally).. by default, jsdoc ignores file names beginning with a leading underscore - no idea why..

See the "Default configuration options" section of the config file instructions.

You can pass in a custom jsdoc config using the --configure option of jsdoc2md.

@usulpro
Copy link
Author

usulpro commented Sep 8, 2017

...heh so it's an expected behavior 😅
looks like the reason is to keep private parts of code
Thanks for pointing that!

xenova added a commit to huggingface/transformers.js that referenced this issue May 13, 2023
GitHub actions places files in a folder called `__w`, which causes JSDoc to ignore all source files.

See jsdoc2md/jsdoc-to-markdown#137
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants