Couldn't find module for xxxx (Variable) when generating documentation for Spoon
When I try to generate documentation for my Spoon with hs -c "hs.doc.builder.genJSON(\"$(pwd)\")" | grep -v "^--" > docs.json
It errors with:
...oon.app/Contents/Resources/extensions/hs/doc_builder.lua:146: couldn't find module for obj:init() (Method)
And yes, the top of my file is
--- === NetLine ===
---
--- Displays a colored line at the top of the screen indicating network reachability status.
--- Defaults to red for offline, green for online.
--- Fully customizable with sounds, position, and sizing arguments.
---
--- Download: [https://github.com/Hammerspoon/Spoons/raw/master/Spoons/NetLine.spoon.zip](https://github.com/Hammerspoon/Spoons/raw/master/Spoons/NetLine.spoon.zip)
I've also tried without a download line, and with just the example provided in the original issue, nothing seems to work.
I'm aware this is a duplicate of #1737, but GitHub told me to file a new issue.
What do you have in as the docstrings for obj:init()?
--- obj:init()
--- Method
--- Initializes the Spoon by setting the log level and logging an initialization message.
---
--- Returns:
--- * The Spoon object (self).
If I remove it, all that happens is that it will skip to the next object method and print the same "can't find module" error, except with different doc strings. The full spoon is at https://github.com/philocalyst/NetLine