autoDocstring
autoDocstring copied to clipboard
Doesn't generate doctoring around comments using 3 quotes
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
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
Same problem: VSCode: 1.77.3 ( OS: macOS Monterey autoDocstring: 0.6.1
The context menu solution proposed by ping235 works though.
Same here, it stopped working for me recently. Used to work.
macOS Ventura 13.3.1, VSC 1.77.3, autoDocstring 0.6.1