<div dir="ltr">Hi,<br><div class="gmail_extra"><div><div class="gmail_signature"><br></div></div>
<br><div class="gmail_quote">On Thu, Dec 29, 2016 at 4:55 AM, Tudor Barascu <span dir="ltr"><<a href="mailto:tudorbarascu@yahoo.com" target="_blank">tudorbarascu@yahoo.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><div style="color:rgb(0,0,0);background-color:rgb(255,255,255);font-family:helveticaneue,"helvetica neue",helvetica,arial,"lucida grande",sans-serif;font-size:12px"><div id="gmail-m_6911513274618030740yiv0749208478"><div id="gmail-m_6911513274618030740yui_3_16_0_ym19_1_1483012178232_2781"><div id="gmail-m_6911513274618030740yui_3_16_0_ym19_1_1483012178232_2780" style="color:rgb(0,0,0);background-color:rgb(255,255,255);font-family:helveticaneue,"helvetica neue",helvetica,arial,"lucida grande",sans-serif;font-size:12px"><div id="gmail-m_6911513274618030740yiv0749208478"><div id="gmail-m_6911513274618030740yiv0749208478yui_3_16_0_ym19_1_1482999973047_9139"><div id="gmail-m_6911513274618030740yiv0749208478yui_3_16_0_ym19_1_1482999973047_9138" style="color:rgb(0,0,0);background-color:rgb(255,255,255);font-family:helveticaneue,"helvetica neue",helvetica,arial,"lucida grande",sans-serif;font-size:12px"><div id="gmail-m_6911513274618030740yiv0749208478yui_3_16_0_ym19_1_1482999973047_5632">Hi Alexander and thanks for the info.</div><div id="gmail-m_6911513274618030740yiv0749208478yui_3_16_0_ym19_1_1482999973047_6998"><br clear="none"></div><div id="gmail-m_6911513274618030740yiv0749208478yui_3_16_0_ym19_1_1482999973047_6999"><div dir="ltr" id="gmail-m_6911513274618030740yiv0749208478yui_3_16_0_ym19_1_1482999973047_10986"><div id="gmail-m_6911513274618030740yui_3_16_0_ym19_1_1483012178232_5035" dir="ltr">From what I noticed, the PyQgis.api is normally built every time but there's a corresponding pap file which the autocomplete is based on that doesn't get usually created.</div><div id="gmail-m_6911513274618030740yui_3_16_0_ym19_1_1483012178232_5034" dir="ltr"><br></div><div id="gmail-m_6911513274618030740yui_3_16_0_ym19_1_1483012178232_10140" dir="ltr">In order to create that file there's a "make qsci-pap-src" option which seems to be broken on master. <span id="gmail-m_6911513274618030740yui_3_16_0_ym19_1_1483012178232_10191"></span> </div></div><div dir="ltr" id="gmail-m_6911513274618030740yiv0749208478yui_3_16_0_ym19_1_1482999973047_11199"><div id="gmail-m_6911513274618030740yui_3_16_0_ym19_1_1483012178232_10141"><br clear="none"></div><div id="gmail-m_6911513274618030740yui_3_16_0_ym19_1_1483012178232_10142">Think Larry is more familiar with this part.</div></div></div></div></div></div></div></div></div></div></div></blockquote><div><br></div><div>Yeah, looks like the the .api and .pap setup is woefully outdated. The .api files in the source tree need updated, and the .pap script probably needs revamped.</div><div><br></div><div>Since the finished .pap file is large enough (~ 1.3 MB) that is should not be auto-generated and pushed to the master branch upon *every* Travis CI run, could be that we can leverage Travis in the following way:</div><div><br></div><div>* Use the Travis 'cron job' feature [0] to generate the .api (and/or .pap) file, probably once a week, or maybe nightly. If the build cache on Travis is available, then the API files could be referenced without needing to rebuild the Python modules.</div><div><br></div><div>* Deploy the .api or .pap files from Travis to an S3 bucket (or other QGIS server infrastructure). Then, a dev build target can be used to pull the latest, or even an updater function could be added to the console. If that is an API deployed file, then the .pap generation script could be called when making the target or running an updater.</div><div><br></div><div>While such a dev target could also just generate the API file from scratch (as currently exists, albeit apparently broken), leveraging Travis deployment of a generated auto-completion artifact to a centralized download location ensures that what is tested during development is what ends up as part of packaged releases as well. Also, it would cache .api files relative to versioned builds, and the largish .pap doesn't need to pollute the source tree with excessive commits.</div><div><br></div><div>Another solution might be to have the API file(s) be distributed via a project-maintained PyQGIS plugin. Then it would be updatable via normal Plugin Manager channels.</div><div><br></div><div>Side note: the QScintilla2 completion is purely static, with no introspection/completion on assigned variables, etc. (unless there are new QScintilla2 features here). If you are looking for a more robust console, consider the IPyConsole plugin [1].</div><div><br></div><div>[0] <a href="https://docs.travis-ci.com/user/cron-jobs/">https://docs.travis-ci.com/user/cron-jobs/</a></div><div>[1] <a href="https://plugins.qgis.org/plugins/IPyConsole/">https://plugins.qgis.org/plugins/IPyConsole/</a> , <a href="http://www.itopen.it/qgis-and-ipython-the-definitive-interactive-console">http://www.itopen.it/qgis-and-ipython-the-definitive-interactive-console</a></div><div><br></div>Larry Shaffer<br>Dakota Cartography<br><div>Black Hills, South Dakota</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><div style="color:rgb(0,0,0);background-color:rgb(255,255,255);font-family:helveticaneue,"helvetica neue",helvetica,arial,"lucida grande",sans-serif;font-size:12px"><div id="gmail-m_6911513274618030740yiv0749208478"><div id="gmail-m_6911513274618030740yui_3_16_0_ym19_1_1483012178232_2781"><div id="gmail-m_6911513274618030740yui_3_16_0_ym19_1_1483012178232_2780" style="color:rgb(0,0,0);background-color:rgb(255,255,255);font-family:helveticaneue,"helvetica neue",helvetica,arial,"lucida grande",sans-serif;font-size:12px"><div id="gmail-m_6911513274618030740yiv0749208478"><div id="gmail-m_6911513274618030740yiv0749208478yui_3_16_0_ym19_1_1482999973047_9139"><div id="gmail-m_6911513274618030740yiv0749208478yui_3_16_0_ym19_1_1482999973047_9138" style="color:rgb(0,0,0);background-color:rgb(255,255,255);font-family:helveticaneue,"helvetica neue",helvetica,arial,"lucida grande",sans-serif;font-size:12px"><div id="gmail-m_6911513274618030740yiv0749208478yui_3_16_0_ym19_1_1482999973047_6999"><div dir="ltr" id="gmail-m_6911513274618030740yiv0749208478yui_3_16_0_ym19_1_1482999973047_11199"><div id="gmail-m_6911513274618030740yui_3_16_0_ym19_1_1483012178232_10144">All the best,</div><div id="gmail-m_6911513274618030740yui_3_16_0_ym19_1_1483012178232_10145">Tudor<br clear="none"></div></div></div><div class="gmail-m_6911513274618030740yiv0749208478qtdSeparateBR" id="gmail-m_6911513274618030740yiv0749208478yui_3_16_0_ym19_1_1482999973047_7900"><br clear="none"></div><div class="gmail-m_6911513274618030740yiv0749208478yqt4469052951" id="gmail-m_6911513274618030740yiv0749208478yqt06263"></div></div></div></div><span class="gmail-"><div class="gmail-m_6911513274618030740yiv0749208478yqt5464345789" id="gmail-m_6911513274618030740yiv0749208478yqt02288"><div id="gmail-m_6911513274618030740yiv0749208478yui_3_16_0_ym19_1_1482999973047_11015"> <div id="gmail-m_6911513274618030740yiv0749208478yui_3_16_0_ym19_1_1482999973047_7593" style="font-family:helveticaneue,"helvetica neue",helvetica,arial,"lucida grande",sans-serif;font-size:12px"> <div id="gmail-m_6911513274618030740yiv0749208478yui_3_16_0_ym19_1_1482999973047_7592" style="font-family:helveticaneue,"helvetica neue",helvetica,arial,"lucida grande",sans-serif;font-size:16px"> <div dir="ltr" id="gmail-m_6911513274618030740yiv0749208478yui_3_16_0_ym19_1_1482999973047_7899"><font id="gmail-m_6911513274618030740yiv0749208478yui_3_16_0_ym19_1_1482999973047_7984" size="2" face="Arial"> On Thursday, December 29, 2016 10:08 AM, Alexander Bruy <<a href="mailto:alexander.bruy@gmail.com" target="_blank">alexander.bruy@gmail.com</a>> wrote:<br clear="none"></font></div> <br clear="none"><br clear="none"> <div class="gmail-m_6911513274618030740yiv0749208478y_msg_container" id="gmail-m_6911513274618030740yiv0749208478yui_3_16_0_ym19_1_1482999973047_7964">Hi Tudor,<br clear="none"><br clear="none">AFAIK, autocompletion uses pre-generated API-files. Usually they updated<br clear="none">before release and not updated during dev cycle as some signatures may<br clear="none">change.<br clear="none"><div class="gmail-m_6911513274618030740yiv0749208478yqt6769179243" id="gmail-m_6911513274618030740yiv0749208478yqtfd64071"><br clear="none">2016-12-28 20:21 GMT+02:00 Tudor Barascu <<a rel="nofollow" shape="rect" href="mailto:tudorbarascu@yahoo.com" target="_blank">tudorbarascu@yahoo.com</a>>:<br clear="none">> Hello,<br clear="none">><br clear="none">> Just noticed that in the master python console some of the autocomplete<br clear="none">> suggestions are bad.<br clear="none">> For instance, although QgsDataSourceURI has been renamed to QgsDataSourceUri<br clear="none">> and the console suggests the first version which doesn't work.<br clear="none">><br clear="none">> Shouldn't the suggestions be automatic?<br clear="none">><br clear="none">> Thanks,<br clear="none">> Tudor</div><br clear="none">><br clear="none">> ______________________________<wbr>_________________<br clear="none">> Qgis-developer mailing list<br clear="none">> <a rel="nofollow" shape="rect" href="mailto:Qgis-developer@lists.osgeo.org" target="_blank">Qgis-developer@lists.osgeo.org</a><br clear="none">> List info: <a rel="nofollow" shape="rect" id="gmail-m_6911513274618030740yiv0749208478yui_3_16_0_ym19_1_1482999973047_7983" href="http://lists.osgeo.org/mailman/listinfo/qgis-developer" target="_blank">http://lists.osgeo.org/<wbr>mailman/listinfo/qgis-<wbr>developer</a><br clear="none">> Unsubscribe: <a rel="nofollow" shape="rect" id="gmail-m_6911513274618030740yiv0749208478yui_3_16_0_ym19_1_1482999973047_7982" href="http://lists.osgeo.org/mailman/listinfo/qgis-developer" target="_blank">http://lists.osgeo.org/<wbr>mailman/listinfo/qgis-<wbr>developer</a><br clear="none"><br clear="none"><br clear="none"><br clear="none">-- <br clear="none">Alexander Bruy<div class="gmail-m_6911513274618030740yiv0749208478yqt6769179243" id="gmail-m_6911513274618030740yiv0749208478yqtfd86868"><br clear="none"></div><br clear="none"><br clear="none"></div> </div> </div> </div></div></span></div></div></div></div></div><br>______________________________<wbr>_________________<br>
Qgis-developer mailing list<br>
<a href="mailto:Qgis-developer@lists.osgeo.org">Qgis-developer@lists.osgeo.org</a><br>
List info: <a href="http://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer" target="_blank">http://lists.osgeo.org/<wbr>mailman/listinfo/qgis-<wbr>developer</a><br>
Unsubscribe: <a href="http://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer" target="_blank">http://lists.osgeo.org/<wbr>mailman/listinfo/qgis-<wbr>developer</a><br></blockquote></div><br></div></div>