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

Error: Unknown Puppet subcommand 'strings' #389

Open
dungpa45 opened this issue Mar 4, 2024 · 2 comments
Open

Error: Unknown Puppet subcommand 'strings' #389

dungpa45 opened this issue Mar 4, 2024 · 2 comments
Labels

Comments

@dungpa45
Copy link

dungpa45 commented Mar 4, 2024

Describe the Bug

I have installed puppet and puppet-strings with gem
image

But it is not have strings subcommand in puppet
image

Environment

  • Gem [v. 3.5.6]
  • Ruby [v. 3.1.4p223]
  • rvm [v. 1.29.12]
  • Puppet [v. 8.5.0]
  • Platform [Ubuntu 20.04.6 LTS]
@dungpa45 dungpa45 added the bug label Mar 4, 2024
@0x08
Copy link

0x08 commented Jul 10, 2024

I can confirm, same problem:

11:36 $ rvm --version
rvm 1.29.12-next (master) by Michal Papis, Piotr Kuczynski, Wayne E. Seguin [https://rvm.io]

11:36 $ ruby -v
ruby 3.1.2p20 (2022-04-12 revision 4491bb740a) [x86_64-linux]

11:36 $ gem list |grep puppet
puppet (8.7.0, 8.6.0)
puppet-resource_api (1.9.0)
puppet-strings (4.1.2)
semantic_puppet (1.1.0)

11:37 $ puppet help strings


USAGE: puppet strings <action> 

Generate Puppet documentation with YARD.

OPTIONS:
  --render-as FORMAT             - The rendering format to use.
  --verbose                      - Whether to log verbosely.
  --debug                        - Whether to log debug information.

ACTIONS:
  describe    undocumented action
  generate    Generate documentation from files.
  server      Runs a local documentation server for the modules in the current
              Puppet environment.

See 'puppet help strings' or 'man puppet-strings' for full help.

11:36 $ puppet strings
Error: Unknown Puppet subcommand 'strings'
See 'puppet help' for help on available puppet subcommands

@0x08
Copy link

0x08 commented Jul 10, 2024

To add here: the problem only seems to occur when not using the system ruby. Executing rvm use system, installing the required gems and then executing puppet strings does work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants