vscode-terosHDL icon indicating copy to clipboard operation
vscode-terosHDL copied to clipboard

Recommended flow for standalone CLI documenter?

Open davidgussler opened this issue 1 year ago • 6 comments

I came across the teroshdl-documenter-demo repo, which has some examples for generating documentation on the CLI for a CI pipeline. I would like to set up something like this, but I noticed that the standalone cloibri project, which is used by the documenter demo, has been archived and that there is a colibri directory in the main vscode-terosHDL repo. The documentor demo repo has also not been touched in 3 years.

Has the colibri project been merged with the main terosHDL project? Is there new recommended way to use the documentor on the CLI?

Thanks for your support! The documenter is a remarkable tool and I would love to be able to automate it without needing to open up VSCode to click a button.

davidgussler avatar Oct 15 '24 13:10 davidgussler

I think that right now CLI is not supported.

$ ./bin/dev teroshdl
(node:3361844) Error Plugin: teroshdl: files attribute must be specified in /home/jcada/Downloads/teros/vscode-terosHDL/package.json
module: @oclif/[email protected]
plugin: teroshdl
root: /home/jcada/Downloads/teros/vscode-terosHDL
See more details with DEBUG=*
(Use `node --trace-warnings ...` to show where the warning was created)
Error: command teroshdl not found
    at Config.runCommand (/home/jcada/Downloads/teros/vscode-terosHDL/node_modules/@oclif/core/lib/config/config.js:271:19)

In the colibri repo, just formatter, linter and template are usable.

 ./bin/dev teroshdl
Check errors in HDL files.

USAGE
  $ teroshdl teroshdl:COMMAND

COMMANDS
  teroshdl:formatter  Check errors in HDL files.
  teroshdl:linter     Check errors in HDL files.
  teroshdl:template   Generate HDL template from a file.

So unfortunately, it seems like documentation generation via CLI is not supported right now at all.

monkey265 avatar Nov 12 '24 08:11 monkey265

As an alternative you can use following tools:

https://kevinpt.github.io/symbolator/ https://github.com/kevinpt/hdlparse

monkey265 avatar Nov 12 '24 14:11 monkey265

We have interest in contributing to the project to re-enable command line documentation generation. Would one of the existing devs be willing to give a quick overview of the commandline system and what needs to be fixed to re-enable this?

eric-hologic avatar Mar 07 '25 21:03 eric-hologic

@eric-hologic send me an email and we can discuss it: [email protected]

qarlosalberto avatar Mar 07 '25 21:03 qarlosalberto

@qarlosalberto does this mean the cli for the documenter will be enabled in the next release?

Giftkekschen avatar Sep 22 '25 10:09 Giftkekschen

No. I closed it accidentally.

qarlosalberto avatar Sep 22 '25 10:09 qarlosalberto