What to do if atom autocomplete-python doesn't work

When I was building a python environment using atom, packege's autocomplete-python didn't work well Even if I looked it up, it didn't come out suddenly, so I'll leave it in Japanese for the time being.

The content is the same as what is written here. https://stackoverflow.com/questions/44602603/atom-ide-autocomplete-python-not-working/52023811#52023811?newreg=45250004097448b89124410714d158d6

Premise

OS:macOS Catalina 10.15.5 python version: 3.8.5 atom:1.49.0x64 autocomplete-python:1.16.0

What happened

Expected state

If autocomplete-python is working properly For example, when you open a python file and type "i", the python keyword will appear as a candidate as shown in the image below. image.png

reality

However, in reality, only autocomplete-plus was working as shown in the image below. image.png

Solution

~/.atom/packages/autocomplete-python/lib/jedi/parser It seems that it is useless if the same version of grammar3.x.txt as the version of python you are using does not exist under it. Since I was using python3.8, I couldn't do without grammar3.8.txt, but when I checked it, it was only grammar3.7.txt.

So, if you copy grammar3.7.txt and make grammar3.8.txt, it will work safely.

Reference: https://stackoverflow.com/questions/44602603/atom-ide-autocomplete-python-not-working/52023811#52023811?newreg=45250004097448b89124410714d158d6

Recommended Posts

What to do if atom autocomplete-python doesn't work
What to do if rails s doesn't work
What to do if Python doesn't work on Git for Windows
What to do if intellisense doesn't work with Anaconda + VSCode + Tensorflow2.1
What to do if yum breaks
Let's Encrypt updated! What to do if the certbot renew command doesn't work
What to do to get tensorflow-gpu to work
What to do if you can't pipenv shell
Note: What to do if pip install fails
What to do if mod_fcgid cannot resolve UnicodeEncodeError
What to do if the server doesn't start with python manage.py runserver
What to do if pip cannot be installed
What to do if Docker-sync suddenly stops working
What to do if "amazon-linux-extras" → "No module named amazon_linux_extras"
What to do if the latest Jupyter Notebook and nb extensions don't work
What to do if pip install fails in Xcode 5.1
What to do if you can't pip install mysqlclient
No module named What to do if you get'libs.resources'
ModuleNotFoundError: No module What to do if you get'tensorflow.contrib'
What to do if SciPy installation fails on CentOS
What to do if a UnicodeDecodeError occurs in pip
What to do if pip install fails to install dependent libraries
What to do if sys / cdefs.h does not exist
What to do if pyenv is not enabled (zsh)
What to do if ʻarguments [0] .scrollIntoView ();` fails in python selenium
What to do if the package dependency cannot be repaired
What to do if you are addicted to Windows character code
What to do if pip gives a DistributionError in Homebrew
What to do if you get "coverage unknown" in Coveralls
What to do if you can't sort files with subscripts
What to do if a 0xC0000005 error occurs in tf.train.start_queue_runners ()
What to do if package installation fails when deploying to heroku
What to do if `pip install matplotlib` fails on Mac
What to do if you can't log in as root
What to do if you can't use WiFi on Linux
What to do if Linux VLC can no longer rotate
What to do if pip install mysqlclient fails on MacOS
What to do if you lose your EC2 key pair
What to do with Magics install
module install if pip install doesn't work
What to do with PYTHON release?
What to do if you can't install pyaudio with pip #Python
What to do if python says "fatal error:'stdio.h' file not found"
What to do if you get a UnicodeDecodeError with pip install
What to do if Insecure Platform Warning appears when running Python
What to do if "Unnamed: 0" is added in to_csv-> read_csv in pandas
What to do if you can't build your project with Maven
What to do if PyAudio cannot be installed on Python 3.7, 3.8, 3.9 on Windows
What to do if you can't use the trash in Lubuntu 18.04.
Django: What to do if TemplateDoesNotExist at / admin / after setting templates
What to do if grep: empty (sub) expression appears on Mac grep
What to do if you can't find well with grep's -f option
What to do if there is a decimal in python json .dumps
What to do if you can't find PDO in Laravel or CakePHP
What to do if the Pipenv environment is corrupted by updating Homebrew
What to do if you couldn't send an email to Yahoo with Python.
What to do if you can't use scikit grid search in Python
What to do if ipython and python start up with different versions
What to do if you have installed PyCharm but shortcut keys such as `control + e` do not work
What to do if your disk runs out due to MySQL binary logs
What to do if you forget your login password on Manjaro Linux