ldoc icon indicating copy to clipboard operation
ldoc copied to clipboard

'file.exclude' Not Working

Open AntumDeluge opened this issue 8 years ago • 2 comments

I have tried using the exclude table from within config.ld to ignore a directory:

file = {
	'init.lua',
	'api.lua',
	exclude = {'engine'},
}

But it continues to parse the files within:

.../engine/mobf/api.lua:30: ?: 'class' cannot have multiple values; {function,module}

I tried explicitly using the file name with no success:

file = {
	'init.lua',
	'api.lua',
	exclude = {'engine/mobf/api.lua'},
}

Also, file itself does not seem to be working, which is probably why file.exclude doesn't. The only working options seems to be to append "./" or a single filename to the command line. I am using LDoc 1.4.6 at commit f91c318.

AntumDeluge avatar Aug 10 '17 22:08 AntumDeluge

For people with a similar problem: For me the file configuration without the exclude worked with this command ldoc.lua . and the following confing:

project="bla"
add_language_extension("lc", "c")
file = {
    './some/path',
    './another/longer/path/,
}

I used the self-compiled ldoc at commit f91c318

joclement avatar Mar 27 '18 15:03 joclement

It turns out that my issue is that LDoc only recognizes file from the config if the file command line parameter is .. I created a pull request to fix this: #356

Related: #351

AntumDeluge avatar Jul 12 '21 18:07 AntumDeluge