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

TypeError when activated #295

Open
liam-clink opened this issue Dec 19, 2024 · 3 comments
Open

TypeError when activated #295

liam-clink opened this issue Dec 19, 2024 · 3 comments
Labels

Comments

@liam-clink
Copy link

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 liam-clink added the bug label Dec 19, 2024
@Dastfjyv3457
Copy link

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

@Dastfjyv3457
Copy link

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

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

@Dastfjyv3457
Copy link

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

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