Ptvs: No completions for python-docx

Created on 2 Oct 2018  路  5Comments  路  Source: microsoft/PTVS

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

Code Intelligence Legacy Language Support bug language server

All 5 comments

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.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

cpoyraz picture cpoyraz  路  3Comments

huguesv picture huguesv  路  3Comments

ehoeks picture ehoeks  路  5Comments

sajeebchandan picture sajeebchandan  路  4Comments

jkassies picture jkassies  路  7Comments