hello guys, just tried VS 2017 to wirte python code.
now I have installed docx package for our project.
when I back to editor and start to code.
import docx
document = Document()
document. ## there is nothing happen, no hint to tell you functions or something.
but coding in interactive window, I can see hint for it.
how can I make my VS editors aotu-completion work? I didnt find any solution yet.
thanks
Thanks! I've filed a bug at https://github.com/Microsoft/python-language-server/issues/178
The reason it works in the REPL is that we query the live objects (compared to the editor which doesn't run any code, it just analyzes it).
In this particular case, we may need type hints (added to the library itself or to https://github.com/python/typeshed) in order for completions to work properly.
I am having a wierd autocomplete issue.
if I do:
import wx
then:
wx. (nothing comes up.)
but at the import, import wx, when I do import wx. different submodules under wxpython show up there. This is wierd, as autocomplete was much more robust under the 15.7.x branch... the same is happening with requests, paho-mqtt, etc etc...
@jmh-aira is it a timeout issue? ie does it work after trying again a bit later?
yeah. I've sat there after importing it, nothing happens.
what is funny when I do 'import wx.' after the period is typed it brings up the modules... but when I atempt to use wx, so like btn = wx.Button()... wx. shows nothing. it doesn't show any autocmpletion options at all. its getting super frustrating. I'm thinking of whiping vs2017 off my system and reinstalling. This is on my work computer running p python 3.7, vs 2017 15.8.6...
@huguesv thanks. we are looking for this case resolve.