autoDocstring icon indicating copy to clipboard operation
autoDocstring copied to clipboard

ENOENT error with `autoDocstring.docstringFormat`

Open damian-romero opened this issue 4 years ago • 0 comments
trafficstars

Describe the bug autoDocstring fails to generate any docstrings a MacBook Pro 2017 with BigSur 11.2.2 with ENOENT error:

AutoDocstring encountered an error. Please view details in the 'autoDocstring' output window

Versions (please complete the following information):

  • autoDocstring Version: v0.5.4
  • Operating System: BigSur 11.2.2
  • Vscode Version: Version: 1.53.2

Original Code (with line to generate on):

def myfunc():
# generate on this line
    my = 1
    func = 'abc'
    return None

Expected Result:

   """Sphinx-type docstring"""
# generate on this line
    my = 1
    func = 'abc'
    return None

Actual Result:

def myfunc():

    my = 1
    func = 'abc'
    return None

Stack trace: If an error was reported by autodocstring please copy the stack trace from the autoDocstring output channel.

[INFO 12:34:43.945] autoDocstring was activated
[INFO 12:35:57.593] Generating Docstring at line: 15
[ERROR 12:35:57.595] Error: ENOENT: no such file or directory, open '/<Path-to-repo>/autoDocstring.docstringFormat'
	at Object.getCustomTemplate <autoDocstring>/out/docstring/get_template.js:19:17
	at AutoDocstring.getTemplate <autoDocstring>/out/generate_docstring.js:50:31
	at AutoDocstring.generateDocstringSnippet <autoDocstring>/out/generate_docstring.js:33:80
	at AutoDocstring.generateDocstring <autoDocstring>/out/generate_docstring.js:21:39
	at  <autoDocstring>/out/extension.js:15:34

Additional context Add any other context about the problem here.

damian-romero avatar Mar 02 '21 19:03 damian-romero