Open ujjukumar opened 4 years ago
Hi @ujjukumar. Are you using Jedi or the Microsoft language server? Please provide the content of your workspace settings.json and of the "Python" output panel. Thanks!
Hi @ericsnowcurrently, sorry I had exams so couldn't reply sooner. So, I am using Microsoft language server (default that comes from installing python extension).
And, Output panel has this message :-
AttributeError: 'EmailMessage' object has no attribute 'add_attachement'
And, workspace settings.json is this :-
"python.pythonPath": "C:\\ProgramData\\Anaconda3\\envs\\caffe\\python.exe",
"python.dataScience.jupyterServerURI": "local"
Also, when I change attachement
to attachment
it works fine!
This is code :-
This is it's output :-
@ujjukumar, that's helpful information. I'm going to send this issue over to the language server team for further attention.
Any update?
Requires #1371, as we vendor a copy of typeshed (and it hasn't been updated in a while due to compatibility problems).
Environment data
Version: 1.45.0 (system setup) Commit: d69a79b73808559a91206d73d7717ff5f798f23c Date: 2020-05-07T16:18:48.860Z Electron: 7.2.4 Chrome: 78.0.3904.130 Node.js: 12.8.1 V8: 7.8.279.23-electron.0 OS: Windows_NT x64 10.0.18363
Problem
The autocomplete for Python module EmailMessage (from email.message module) has misspelling for function
add_attachment
. Instead ofadd_attachment
it's completing it toadd_attachement
, which is creating this error when running:-AttributeError: 'EmailMessage' object has no attribute 'add_attachement'
[NOTE: Self-contained, minimal reproducing code samples are extremely helpful and will expedite addressing your issue]
Logs
Output for
Python
in theOutput
panel (View
→Output
, change the drop-down the upper-right of theOutput
panel toPython
)``` XXX ```
Output from
Console
under theDeveloper Tools
panel (toggle Developer Tools on underHelp
; turn on source maps to make any tracebacks be useful by runningEnable source map support for extension debugging
)``` XXXX ```