intellij: Invalid Python SDK error on Clion 2024.2
Description of the bug:
Whenever I press Sync button on Clion:
Which category does this issue belong to?
Intellij
What’s the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.
- git clone https://github.com/cloudflare/workerd
- install bazelisk using brew install bazelisk
- install bazel clion plugin
- open project in clion
- sync
Which Intellij IDE are you using? Please provide the specific version.
Clion 2024.2
What programming languages and tools are you using? Please provide specific versions.
python, js, ts, c++
What Bazel plugin version are you using?
latest
Have you found anything relevant by searching the web?
No response
Any other information, logs, or outputs that you want to share?
No response
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 15 (5 by maintainers)
Fixing the
/usr/bin/indentInterpreter Issue in Clion/PyCharmSteps to Resolve the Issue
Close IDE
Ensure IDE is completely closed before making changes.
Navigate to the Config Directory
Go to the “options” Folder
Within the configuration directory, open the folder named
options.Open the
jdk.table.xmlFilejdk.table.xmlin theoptionsfolder.Edit the Interpreter Path
Reopen IDE
Launch IDE and verify the interpreter path now correctly points to Python (
/usr/bin/python3) instead of/usr/bin/indent.This should resolve the issue, allowing you to use PyCharm with the correct Python interpreter without any
indenterrors.If the incorrect interpreter is still set, replace /usr/bin/indent with /usr/bin/python3 in the .idea directory files, or consider removing this folder entirely.
Hello there, This problem is related to this bug. As a temporary workaround please do the following: