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

Other plugins are not able to be used correctly #1

Open
tcf909 opened this issue Jul 17, 2019 · 3 comments
Open

Other plugins are not able to be used correctly #1

tcf909 opened this issue Jul 17, 2019 · 3 comments

Comments

@tcf909
Copy link

tcf909 commented Jul 17, 2019

When using this plugin the command:

cli autocomplete

Does not show any of the sub commands to actually use the autocomplete plugin.

I'm investigating why this is, but thought opening an issue would be a good starting point.

@tcf909
Copy link
Author

tcf909 commented Jul 17, 2019

Debug Output:

  @oclif/config reading core plugin /Users/tc.ferguson/Sync/Workspace/MyDigitalSpaces/cli +0ms
  @oclif/config loadJSON /Users/tc.ferguson/Sync/Workspace/MyDigitalSpaces/cli/package.json +0ms
  @oclif/config loadJSON /Users/tc.ferguson/Sync/Workspace/MyDigitalSpaces/cli/oclif.manifest.json +4ms
  @oclif/config loadJSON /Users/tc.ferguson/Sync/Workspace/MyDigitalSpaces/cli/.oclif.manifest.json +0ms
  @oclif/config:@digitalspaces/cli loading IDs from /Users/tc.ferguson/Sync/Workspace/MyDigitalSpaces/cli/src/commands +0ms
  @oclif/config:@digitalspaces/cli found commands [
  'blueprint:init',
  'blueprint:list',
  'blueprint:pull',
  'blueprint:push',
  'blueprint:template',
  'config:get',
  'config:set',
  'user:login',
  'user:refreshToken',
  'user:register',
  'user:update',
  'blueprint:repo:create',
  'blueprint:repo:list'
] +10ms
  @oclif/config:@digitalspaces/cli require /Users/tc.ferguson/Sync/Workspace/MyDigitalSpaces/cli/src/commands/blueprint/init.js +2ms
  @oclif/config:@digitalspaces/cli require /Users/tc.ferguson/Sync/Workspace/MyDigitalSpaces/cli/src/commands/blueprint/list.js +104ms
  @oclif/config:@digitalspaces/cli require /Users/tc.ferguson/Sync/Workspace/MyDigitalSpaces/cli/src/commands/blueprint/pull.js +5ms
  @oclif/config:@digitalspaces/cli require /Users/tc.ferguson/Sync/Workspace/MyDigitalSpaces/cli/src/commands/blueprint/push.js +2ms
  @oclif/config:@digitalspaces/cli require /Users/tc.ferguson/Sync/Workspace/MyDigitalSpaces/cli/src/commands/blueprint/template.js +3ms
  @oclif/config:@digitalspaces/cli require /Users/tc.ferguson/Sync/Workspace/MyDigitalSpaces/cli/src/commands/config/get.js +2ms
  @oclif/config:@digitalspaces/cli require /Users/tc.ferguson/Sync/Workspace/MyDigitalSpaces/cli/src/commands/config/set.js +129ms
  @oclif/config:@digitalspaces/cli require /Users/tc.ferguson/Sync/Workspace/MyDigitalSpaces/cli/src/commands/user/login.js +3ms
  @oclif/config:@digitalspaces/cli require /Users/tc.ferguson/Sync/Workspace/MyDigitalSpaces/cli/src/commands/user/refreshToken.js +2ms
  @oclif/config:@digitalspaces/cli require /Users/tc.ferguson/Sync/Workspace/MyDigitalSpaces/cli/src/commands/user/register.js +3ms
  @oclif/config:@digitalspaces/cli require /Users/tc.ferguson/Sync/Workspace/MyDigitalSpaces/cli/src/commands/user/update.js +3ms
  @oclif/config:@digitalspaces/cli require /Users/tc.ferguson/Sync/Workspace/MyDigitalSpaces/cli/src/commands/blueprint/repo/create.js +2ms
  @oclif/config:@digitalspaces/cli require /Users/tc.ferguson/Sync/Workspace/MyDigitalSpaces/cli/src/commands/blueprint/repo/list.js +2ms
  @oclif/config reading user plugins pjson /Users/tc.ferguson/.local/share/@digitalspaces/cli/package.json +0ms
  @oclif/config loadJSON /Users/tc.ferguson/.local/share/@digitalspaces/cli/package.json +473ms
  @oclif/config loading plugins [
  '@oclif/plugin-help',
  '@oclif/plugin-not-found',
  '@oclif/plugin-warn-if-update-available',
  '@oclif/plugin-autocomplete',
  '@oclif/plugin-spaced-commands',
  '@digitalspaces/cli-plugin-config'
] +1ms
  @oclif/config reading core plugin /Users/tc.ferguson/Sync/Workspace/MyDigitalSpaces/cli/node_modules/@oclif/plugin-help +0ms
  @oclif/config loadJSON /Users/tc.ferguson/Sync/Workspace/MyDigitalSpaces/cli/node_modules/@oclif/plugin-help/package.json +4ms
  @oclif/config reading core plugin /Users/tc.ferguson/Sync/Workspace/MyDigitalSpaces/cli/node_modules/@oclif/plugin-not-found +0ms
  @oclif/config loadJSON /Users/tc.ferguson/Sync/Workspace/MyDigitalSpaces/cli/node_modules/@oclif/plugin-not-found/package.json +0ms
  @oclif/config reading core plugin /Users/tc.ferguson/Sync/Workspace/MyDigitalSpaces/cli/node_modules/@oclif/plugin-warn-if-update-available +0ms
  @oclif/config loadJSON /Users/tc.ferguson/Sync/Workspace/MyDigitalSpaces/cli/node_modules/@oclif/plugin-warn-if-update-available/package.json +1ms
  @oclif/config reading core plugin /Users/tc.ferguson/Sync/Workspace/MyDigitalSpaces/cli/node_modules/@oclif/plugin-autocomplete +0ms
  @oclif/config loadJSON /Users/tc.ferguson/Sync/Workspace/MyDigitalSpaces/cli/node_modules/@oclif/plugin-autocomplete/package.json +0ms
  @oclif/config reading core plugin /Users/tc.ferguson/Sync/Workspace/MyDigitalSpaces/cli/node_modules/@oclif/plugin-spaced-commands +0ms
  @oclif/config loadJSON /Users/tc.ferguson/Sync/Workspace/MyDigitalSpaces/cli/node_modules/@oclif/plugin-spaced-commands/package.json +0ms
  @oclif/config reading core plugin /Users/tc.ferguson/Sync/Workspace/MyDigitalSpaces/cli/node_modules/@digitalspaces/cli-plugin-config +0ms
  @oclif/config loadJSON /Users/tc.ferguson/Sync/Workspace/MyDigitalSpaces/cli/node_modules/@digitalspaces/cli-plugin-config/package.json +0ms
  @oclif/config loadJSON /Users/tc.ferguson/Sync/Workspace/MyDigitalSpaces/cli/node_modules/@oclif/plugin-help/oclif.manifest.json +1ms
  @oclif/config loadJSON /Users/tc.ferguson/Sync/Workspace/MyDigitalSpaces/cli/node_modules/@oclif/plugin-not-found/oclif.manifest.json +1ms
  @oclif/config loadJSON /Users/tc.ferguson/Sync/Workspace/MyDigitalSpaces/cli/node_modules/@oclif/plugin-warn-if-update-available/oclif.manifest.json +0ms
  @oclif/config loadJSON /Users/tc.ferguson/Sync/Workspace/MyDigitalSpaces/cli/node_modules/@oclif/plugin-autocomplete/oclif.manifest.json +0ms
  @oclif/config loadJSON /Users/tc.ferguson/Sync/Workspace/MyDigitalSpaces/cli/node_modules/@oclif/plugin-spaced-commands/oclif.manifest.json +0ms
  @oclif/config loadJSON /Users/tc.ferguson/Sync/Workspace/MyDigitalSpaces/cli/node_modules/@digitalspaces/cli-plugin-config/oclif.manifest.json +1ms
  @oclif/config loadJSON /Users/tc.ferguson/Sync/Workspace/MyDigitalSpaces/cli/node_modules/@oclif/plugin-not-found/.oclif.manifest.json +0ms
  @oclif/config loadJSON /Users/tc.ferguson/Sync/Workspace/MyDigitalSpaces/cli/node_modules/@oclif/plugin-spaced-commands/.oclif.manifest.json +0ms
  @oclif/config loadJSON /Users/tc.ferguson/Sync/Workspace/MyDigitalSpaces/cli/node_modules/@digitalspaces/cli-plugin-config/.oclif.manifest.json +0ms
  @oclif/config:@oclif/plugin-spaced-commands loading IDs from /Users/tc.ferguson/Sync/Workspace/MyDigitalSpaces/cli/node_modules/@oclif/plugin-spaced-commands/lib/commands +0ms
  @oclif/config:@oclif/plugin-spaced-commands found commands [] +6ms
  @oclif/config:@digitalspaces/cli-plugin-config loading IDs from /Users/tc.ferguson/Sync/Workspace/MyDigitalSpaces/cli/node_modules/@digitalspaces/cli-plugin-config/src/commands +0ms
  @oclif/config:@digitalspaces/cli-plugin-config found commands [ 'hello' ] +7ms
  @oclif/config:@digitalspaces/cli-plugin-config require /Users/tc.ferguson/Sync/Workspace/MyDigitalSpaces/cli/node_modules/@digitalspaces/cli-plugin-config/src/commands/hello.js +1ms
  @oclif/config:@oclif/plugin-help using manifest from /Users/tc.ferguson/Sync/Workspace/MyDigitalSpaces/cli/node_modules/@oclif/plugin-help/oclif.manifest.json +0ms
  @oclif/config:@oclif/plugin-warn-if-update-available using manifest from /Users/tc.ferguson/Sync/Workspace/MyDigitalSpaces/cli/node_modules/@oclif/plugin-warn-if-update-available/oclif.manifest.json +0ms
  @oclif/config:@oclif/plugin-autocomplete using manifest from /Users/tc.ferguson/Sync/Workspace/MyDigitalSpaces/cli/node_modules/@oclif/plugin-autocomplete/oclif.manifest.json +0ms
  @oclif/config:@oclif/plugin-not-found using manifest from /Users/tc.ferguson/Sync/Workspace/MyDigitalSpaces/cli/node_modules/@oclif/plugin-not-found/.oclif.manifest.json +0ms
  @oclif/config config done +294ms
  @oclif/config start init hook +1ms
  ds:@oclif/plugin-spaced-commands:hooks:init start /Users/tc.ferguson/Sync/Workspace/MyDigitalSpaces/cli/node_modules/@oclif/plugin-spaced-commands/lib/hooks/init +0ms
  ds:@oclif/plugin-warn-if-update-available:hooks:init start /Users/tc.ferguson/Sync/Workspace/MyDigitalSpaces/cli/node_modules/@oclif/plugin-warn-if-update-available/lib/hooks/init/check-update +0ms
  ds:@oclif/plugin-spaced-commands:hooks:init done +63ms
  ds:@oclif/plugin-warn-if-update-available:hooks:init done +15ms
  @oclif/config init hook done +66ms
  ds init version: @oclif/[email protected] argv: [ 'autocomplete', 'help' ] +0ms
display autocomplete installation instructions

USAGE
  $ ds autocomplete COMMAND

@tcf909
Copy link
Author

tcf909 commented Jul 18, 2019

Looks like plugins run their own "stack" so to say. So the space plugin not being existent in the autocomplete plugin creates a scenario where the calling command is looking for spaces and the autocomplete is speaking in colons.

Did I get that about right? But that would mean there is no real way to handle spaces without modifying the core given that all plugins will carry their own hooks, etc...

Let me know what I'm missing.

@tcf909
Copy link
Author

tcf909 commented Jul 18, 2019

Related oclif/oclif#186

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

No branches or pull requests

1 participant