<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Python IntelliSense in PyCharm w/ ArcPy Not Working in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/python-intellisense-in-pycharm-w-arcpy-not-working/m-p/1173154#M64540</link>
    <description>&lt;P&gt;Possibly related to &lt;A href="https://youtrack.jetbrains.com/issue/PY-49357" target="_blank"&gt;Autocomplete not working for lazily imported modules : PY-49357 (jetbrains.com)&lt;/A&gt;.&amp;nbsp; The package tested in submitting the defect is similar to ArcPy in that autocomplete works in VS Code but not PyCharm.&lt;/P&gt;</description>
    <pubDate>Thu, 12 May 2022 03:03:45 GMT</pubDate>
    <dc:creator>JoshuaBixby</dc:creator>
    <dc:date>2022-05-12T03:03:45Z</dc:date>
    <item>
      <title>Python IntelliSense in PyCharm w/ ArcPy Not Working</title>
      <link>https://community.esri.com/t5/python-questions/python-intellisense-in-pycharm-w-arcpy-not-working/m-p/1173032#M64533</link>
      <description>&lt;P&gt;I cannot get intellisense to work with ArcPy's newer syntax style in Pycharm&amp;nbsp;2021.3.2 (Community Edition). What's odd is that the older-style syntax DOES work: arcpy.CreateFileGDB_management()&lt;/P&gt;&lt;P&gt;However, this does not: arcpy.management.CreateFileGDB()&lt;/P&gt;&lt;P&gt;To be clear, the code runs fine with the newer style. My interpreter is configured to point to ArcGIS Pro's Anaconda distribution (Python 3.7).&lt;/P&gt;&lt;P&gt;My assumption here is that PyCharm is somehow reading from the ArcGIS Desktop (Python 2.7) documentation, which is also installed on my system, but I can't find any references to that interpreter within PyCharm.&lt;/P&gt;&lt;P&gt;Any help would be greatly appreciated!&lt;/P&gt;</description>
      <pubDate>Wed, 11 May 2022 21:08:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-intellisense-in-pycharm-w-arcpy-not-working/m-p/1173032#M64533</guid>
      <dc:creator>VinceE</dc:creator>
      <dc:date>2022-05-11T21:08:45Z</dc:date>
    </item>
    <item>
      <title>Re: Python IntelliSense in PyCharm w/ ArcPy Not Working</title>
      <link>https://community.esri.com/t5/python-questions/python-intellisense-in-pycharm-w-arcpy-not-working/m-p/1173045#M64534</link>
      <description>&lt;P&gt;The same question was asked and answered over on GIS SE for VS Code:&amp;nbsp; &lt;A href="https://gis.stackexchange.com/questions/419340/vs-code-intellisense-with-modern-arcpy-syntax" target="_blank"&gt;VS Code Intellisense with modern arcpy syntax - Geographic Information Systems Stack Exchange&lt;/A&gt;.&amp;nbsp; I am guessing the answer for VS Code will work for PyCharm too.&lt;/P&gt;</description>
      <pubDate>Wed, 11 May 2022 21:27:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-intellisense-in-pycharm-w-arcpy-not-working/m-p/1173045#M64534</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2022-05-11T21:27:35Z</dc:date>
    </item>
    <item>
      <title>Re: Python IntelliSense in PyCharm w/ ArcPy Not Working</title>
      <link>https://community.esri.com/t5/python-questions/python-intellisense-in-pycharm-w-arcpy-not-working/m-p/1173090#M64535</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/215483"&gt;@VinceE&lt;/a&gt;&amp;nbsp;wrote:&lt;P class=""&gt;&lt;SPAN&gt;My assumption here is that PyCharm is somehow reading from the ArcGIS Desktop (Python 2.7) documentation, which is also installed on my system, but I can't find any references to that interpreter within PyCharm.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;No PyCharm (and VS Code) extract &lt;SPAN&gt;intellisense&amp;nbsp;&lt;/SPAN&gt;info from the code itself. And you only see top level&amp;nbsp;&lt;SPAN&gt;info as the IDEs only look through the package you import, not sub-packages.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Just import arcpy.management and&amp;nbsp;intellisense should work.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 11 May 2022 22:39:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-intellisense-in-pycharm-w-arcpy-not-working/m-p/1173090#M64535</guid>
      <dc:creator>Luke_Pinner</dc:creator>
      <dc:date>2022-05-11T22:39:32Z</dc:date>
    </item>
    <item>
      <title>Re: Python IntelliSense in PyCharm w/ ArcPy Not Working</title>
      <link>https://community.esri.com/t5/python-questions/python-intellisense-in-pycharm-w-arcpy-not-working/m-p/1173135#M64536</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Interesting, thanks for the reply.&lt;/P&gt;&lt;P&gt;I might be misunderstanding you, but this is not my experience (at least in VS Code). Using VS Code, I have never imported arcpy.management, arcpy.analysis, arcpy.cartography, etc. in my tools.&lt;/P&gt;&lt;P&gt;I have also never seen reference to this import syntax in Esri documentation. This and the anecdotal evidence below make me skeptical that I need to "import arcpy.management".&lt;/P&gt;&lt;P&gt;In VS Code, intellisense from base&amp;nbsp;arcpy import:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="FromArcpy.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/41183i5CE5FBE0F125DE8A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="FromArcpy.png" alt="FromArcpy.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;also getting intellisense for management functions with this import style:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="FromManagement.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/41181i96AF568884E3CA5C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="FromManagement.png" alt="FromManagement.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;This is also not how other modules work, at least for me in VS Code. I don't import numpy.random for intellisense regarding "randint".&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Numpy.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/41184iBEF1D882E8CE785B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Numpy.png" alt="Numpy.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;or in PyCharm.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="NumpyPyCharm.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/41187i41401B8EE8E53B31/image-size/medium?v=v2&amp;amp;px=400" role="button" title="NumpyPyCharm.png" alt="NumpyPyCharm.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Would love to hear other ideas, if you have them. This feels like a PyCharm problem/setting, or something to do with the way ArcPy is written and interpreted by PyCharm, not an import style problem.&lt;/P&gt;</description>
      <pubDate>Thu, 12 May 2022 00:27:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-intellisense-in-pycharm-w-arcpy-not-working/m-p/1173135#M64536</guid>
      <dc:creator>VinceE</dc:creator>
      <dc:date>2022-05-12T00:27:16Z</dc:date>
    </item>
    <item>
      <title>Re: Python IntelliSense in PyCharm w/ ArcPy Not Working</title>
      <link>https://community.esri.com/t5/python-questions/python-intellisense-in-pycharm-w-arcpy-not-working/m-p/1173137#M64537</link>
      <description>&lt;P&gt;Thanks, it does, however this is a pretty clunky solution, and one that is not required in VS Code. My response to&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/10780"&gt;@Luke_Pinner&lt;/a&gt;&amp;nbsp;below has a bunch of screenshots from the simple "import arcpy" working in VS Code.&lt;/P&gt;&lt;P&gt;This feels like a problem specific to PyCharm for whatever reason. Would love to hear if you have other ideas.&lt;/P&gt;</description>
      <pubDate>Thu, 12 May 2022 00:24:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-intellisense-in-pycharm-w-arcpy-not-working/m-p/1173137#M64537</guid>
      <dc:creator>VinceE</dc:creator>
      <dc:date>2022-05-12T00:24:35Z</dc:date>
    </item>
    <item>
      <title>Re: Python IntelliSense in PyCharm w/ ArcPy Not Working</title>
      <link>https://community.esri.com/t5/python-questions/python-intellisense-in-pycharm-w-arcpy-not-working/m-p/1173154#M64540</link>
      <description>&lt;P&gt;Possibly related to &lt;A href="https://youtrack.jetbrains.com/issue/PY-49357" target="_blank"&gt;Autocomplete not working for lazily imported modules : PY-49357 (jetbrains.com)&lt;/A&gt;.&amp;nbsp; The package tested in submitting the defect is similar to ArcPy in that autocomplete works in VS Code but not PyCharm.&lt;/P&gt;</description>
      <pubDate>Thu, 12 May 2022 03:03:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-intellisense-in-pycharm-w-arcpy-not-working/m-p/1173154#M64540</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2022-05-12T03:03:45Z</dc:date>
    </item>
  </channel>
</rss>

