autocomplete fails
plambert opened this issue · 2 comments
plambert commented
I am unable to get any autocomplete commands to work, with or without a shell argument.
Any idea what I should try, what might be wrong?
Paul
$ kaput autocomplete
Building the autocomplete cache... !
TypeError: Cannot read property 'replace' of null
at sanitizeDescription (/usr/local/lib/node_modules/kaput-cli/node_modules/@oclif/plugin-autocomplete/lib/commands/autocomplete/create.js:12:10)
at /usr/local/lib/node_modules/kaput-cli/node_modules/@oclif/plugin-autocomplete/lib/commands/autocomplete/create.js:113:45
at Array.map (<anonymous>)
at Create.genZshFlagSpecs (/usr/local/lib/node_modules/kaput-cli/node_modules/@oclif/plugin-autocomplete/lib/commands/autocomplete/create.js:108:14)
at /usr/local/lib/node_modules/kaput-cli/node_modules/@oclif/plugin-autocomplete/lib/commands/autocomplete/create.js:135:12
at Array.map (<anonymous>)
at Create.get genCaseStatementForFlagsMetaString [as genCaseStatementForFlagsMetaString] (/usr/local/lib/node_modules/kaput-cli/node_modules/@oclif/plugin-autocomplete/lib/commands/autocomplete/create.js:132:30)
at Create.get zshCompletionFunction [as zshCompletionFunction] (/usr/local/lib/node_modules/kaput-cli/node_modules/@oclif/plugin-autocomplete/lib/commands/autocomplete/create.js:209:48)
at Create.createFiles (/usr/local/lib/node_modules/kaput-cli/node_modules/@oclif/plugin-autocomplete/lib/commands/autocomplete/create.js:37:65)
at async Create.run (/usr/local/lib/node_modules/kaput-cli/node_modules/@oclif/plugin-autocomplete/lib/commands/autocomplete/create.js:23:9)
davidchalifoux commented
Yeah I’m aware of this. Just kinda threw it in right before releasing without testing it thoroughly.
I’ll look into resolving it.
davidchalifoux commented
In 76ce9a2 I just decided to remove the plugin as I feel like the support isn't good enough to leave in.
I might revisit adding autocomplete in at a later date.