I have been trying to get autocompletion to work in first Eclipse and afterwards tried with Visual Studio. I have been following these guidelines / Stack Questions
IDE settings for writing and debugging plugins
Setting up a QGIS Plugin Development Environment in Visual Studio and PTVS
In both environments I managed to be able to debug the python code step by step, but iI was not able to get any code completion.
I suspect that its the same issue in both cases. I have been trying to add all possible paths to the PYTHONPATH
. Both in Eclipse and in windows environment variables.
According to the guideline I did open Eclipse using a bat script to init windows specific things for QGIS.
call "C:\Program Files\QGIS 2.18\bin\o4w_env.bat"
set PATH=%PATH%;C:\Program Files\QGIS
2.18\apps\qgis\bin;C:\ProgramData\Oracle\Java\javapath
C:\software\eclipse\java-oxygen\eclipse\eclipse.exe
I made a similar script for VS without success.
The configuration I have been setting up for the python env. looks like the following.
What could I be missing that causes Eclipse not to recognize libs such as qgis.core
?
Could it be the same reason that causes VS to not recognize it?