<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Hi Larry,<br>
    <br>
    Thanks for the tips! At the moment I'm using a symlink for my
    project but will test your Make shortcut suggestion.<br>
    <br>
    Yes, I'm using the Kyngchaos.com QGIS install, and PyCharm 3.0.<br>
    <br>
    Unfortunately code completion still doesn't work, and I've tried
    different things:<br>
    - restart Pycharm remove/add QGIS python path and reload the path
    list<br>
    - remove/add the Python interpreter then add the QGIS path<br>
    - in the File menu clicked on 'Invalidate caches' then restarted
    PyCharm<br>
    <br>
    I'll live with that for the moment, but will keep looking for a
    solution, and if I find it will post it here.<br>
    <br>
    Regards,<br>
    Jorge<br>
    <br>
    <br>
    <div class="moz-cite-prefix">On 09/10/2013 16:44, Larry Shaffer
      wrote:<br>
    </div>
    <blockquote
cite="mid:CA+nQOR-ypVDt4OT2eug=WtYeKAgJC0Mc1faFZ7hMVvmGayxyHQ@mail.gmail.com"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html;
        charset=ISO-8859-1">
      <div dir="ltr">Hi Jorge,<br>
        <div>
          <div class="gmail_extra"><br>
            <div class="gmail_quote">On Wed, Oct 9, 2013 at 5:44 AM,
              Jorge Gil <span dir="ltr"><<a moz-do-not-send="true"
                  href="mailto:jorge.gil@ucl.ac.uk" target="_blank">jorge.gil@ucl.ac.uk</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">Hi everyone,<br>
                <br>
                I'm new to QGIS plug-in developemtn and I'm setting up a
                development environment on Mac OS X.<br>
                <br>
                At the moment I'm going with PyCharm and got the remote
                debugging to work. Thanks to this list!<br>
              </blockquote>
              <div><br>
              </div>
              <div>Welcome to developing with QGIS. PyCharm is an
                excellent choice for IDE, especially now that 3.0 has a
                free community version and more support for PyQt.<br>
              </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">
                One thing I can't get to work is code completion for the
                PyQGIS API.<br>
                <br>
                I've added '/Applications/QGIS.app/Contents/Resources/python/qgis/'
                and '/Applications/QGIS.app/Contents/Resources/python/'
                to the interpreter's path. PyCharm can find PyQGIS and
                ads it to the external libraries. This way I can import
                the qgis modules without errors, in the Python console
                for example.<br>
                However, code completion doesn't work in the editor nor
                in the console.<br>
              </blockquote>
              <div><br>
              </div>
              You only need the
              '/Applications/QGIS.app/Contents/Resources/python' path
              added (assuming you are using a Kyngchaos.com QGIS
              install), so I recommend removing the other path .
              However, I have noticed that sometimes PyCharm on Mac does
              not properly rebuild the 'skeletons' for code completion
              (I'm using PyCharm 2.7.3). Try relaunching the app and
              removing/re-adding the path, then clicking the reload
              button. You should see a progress bar and eventually
              notice the qgis.* modules being parsed. If not there may
              be an issue.<br>
              <br>
              For plugin development, I add external commands, several
              of which are for running my plugin's Makefile [0]. While
              the new PyCharm 3.0 has an embedded terminal, I find
              assigning a key shortcut (say Ctrl-M) to the make
              <prompt> command to be very quick for deploying the
              plugin to ~/.qgis2/python/plugins/. Deploying is the
              best-practice means of testing your plugin, instead of
              symlinking it, but that also works.<br>
              <div>
                <br>
              </div>
              Also, I recommend using the Plugin Reloader PyQGIS plugin
              to reload your plugin within QGIS, so you do not have to
              relaunch QGIS every time you propagate a change in your
              plugin.<br>
              <br>
              [0] <a moz-do-not-send="true"
                href="http://drive.dakotacarto.com/qgis/pycharm-ext-cmd_make.png">http://drive.dakotacarto.com/qgis/pycharm-ext-cmd_make.png</a><br>
              <br>
            </div>
            <div class="gmail_quote">Regards,<br>
              <br>
            </div>
            <div class="gmail_quote">Larry<br>
            </div>
            <div class="gmail_quote">
              <div><br>
              </div>
              <blockquote class="gmail_quote" style="margin:0px 0px 0px
                0.8ex;border-left:1px solid
                rgb(204,204,204);padding-left:1ex">
                Thanks in advance for your help,<br>
                Jorge<br>
                <br>
                <br>
                _______________________________________________<br>
                Qgis-developer mailing list<br>
                <a moz-do-not-send="true"
                  href="mailto:Qgis-developer@lists.osgeo.org"
                  target="_blank">Qgis-developer@lists.osgeo.org</a><br>
                <a moz-do-not-send="true"
                  href="http://lists.osgeo.org/mailman/listinfo/qgis-developer"
                  target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br>
              </blockquote>
            </div>
            <br>
          </div>
        </div>
      </div>
    </blockquote>
    <br>
    <pre class="moz-signature" cols="72">-- 
Jorge Gil
Research Associate
The Bartlett School of Graduate Studies
University College London (UCL)

Central House,
14 Upper Woburn Place
London WC1H 0NN
UK

E: <a class="moz-txt-link-abbreviated" href="mailto:jorge.gil@ucl.ac.uk">jorge.gil@ucl.ac.uk</a>
T: +44 (0)20 3108 9031</pre>
  </body>
</html>