autoDocstring icon indicating copy to clipboard operation
autoDocstring copied to clipboard

TypeError when activated

Open liam-clink opened this issue 10 months ago • 3 comments

Describe the bug When trying to generate text in any function, the extension fails.

Versions (please complete the following information):

  • autoDocstring Version: 0.6.1
  • Operating System: Windows 10
  • Vscode Version:1.96.0

Original Code (with line to generate on):

def foo(bar):
    # generate on this line
    return 0

Debug log: Set autoDocstring.logLevel to "Debug", recreate the bug, and then copy the debug logs from the autoDocstring output channel.

[ERROR 19:51:05.873] TypeError: Cannot read properties of undefined (reading 'toString')
	at AutoDocstring.getTemplate <autoDocstring>/out/generate_docstring.js:48:66
	at AutoDocstring.generateDocstringSnippet <autoDocstring>/out/generate_docstring.js:35:80
	at AutoDocstring.generateDocstring <autoDocstring>/out/generate_docstring.js:23:39

liam-clink avatar Dec 19 '24 00:12 liam-clink