autoDocstring icon indicating copy to clipboard operation
autoDocstring copied to clipboard

Doesn't generate doctoring around comments using 3 quotes

Open Anthony-Eid opened this issue 2 years ago • 3 comments

It didn't auto generate a docstring for the sign_up function until I moved it to the bottom of the file.

from config import config_mysql
import mysql.connector

cnx = mysql.connector.connect(**config_mysql)


""" need username, email, and password to make an account"""

def sign_up(username: str, password: str, email: str) -> bool:
    """"""

"""
CREATE TABLE IF NOT EXISTS test_usernames (
idUser INT NOT NULL AUTO_INCREMENT PRIMARY KEY,
username VARCHAR(30) NOT NULL,
password VARCHAR(30) NOT NULL,
email VARCHAR(30) NOT NULL);
"""

cnx.close()

Versions

  • autoDocstring Version: v0.6.1
  • Operating System: using remote ssh into an ubuntu server from my computer running macOS
  • Vscode Version: 1.74.3

Anthony-Eid avatar Jan 25 '23 06:01 Anthony-Eid

I have the same issue, Ctrl+Shift+2 and menu item generate docstring works. Versions autoDocstring Version: v0.6.1 Operating System: windows Vscode Version: 1.75.0

ping235 avatar Feb 03 '23 05:02 ping235

Same problem: VSCode: 1.77.3 ( OS: macOS Monterey autoDocstring: 0.6.1

The context menu solution proposed by ping235 works though.

CsatiZoltan avatar Apr 26 '23 09:04 CsatiZoltan

Same here, it stopped working for me recently. Used to work.

macOS Ventura 13.3.1, VSC 1.77.3, autoDocstring 0.6.1

lethefrost avatar May 03 '23 01:05 lethefrost