3

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

import qgis.core problem with QgsFeature and QgsGeometry ImportError: DLL load failed: The specified procedure could not be found

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.

enter image description here

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.

enter image description here

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?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.