Skip to content

Instantly share code, notes, and snippets.

@wilspi
Last active March 16, 2020 15:19
Show Gist options
  • Save wilspi/e8b8f029004ad90d3a50bddc3312a3d4 to your computer and use it in GitHub Desktop.
Save wilspi/e8b8f029004ad90d3a50bddc3312a3d4 to your computer and use it in GitHub Desktop.
Pycharm Setup for Realm

PyCharm Setup

Tested using PyCharm PyCharm 2018.3.7 (Professional Edition).
Note: Commands that are being run, need to be run in nix shell

  • Python:

    1. Run which python and update this in Preferences -> Project: project_name -> Project Interpreter -> Gear Icon -> Add -> Virtual Environment -> Existing Environment -> ... -> Add.
  • Rust:

    1. Ensure [Rust Plugin], tested: v0.2.99.2127-183, is installed.
    2. Optionally install [Pest Plugin], essential if editing [.pest files].
    3. Run echo ${$(which rustc)%rustc} and update this in Preferences -> Languages & Frameworks -> Rust -> Toolchain Location.
    4. Run ls -d -1 /nix/store/*-rust-src$(echo $(which rustc | grep -o 'rust\-.*/bin' | grep -o '\-.*/')lib/rustlib/src/rust/src) and update this in Preferences -> Languages & Frameworks -> Rust -> Standard library.
  • Elm:

    1. Ensure [Elm Plugin], tested: v3.2.1, is installed.
    2. Run which elm and update this in Preferences -> Languages & Frameworks -> Elm -> Elm-Compiler -> location.
    3. Run which elm-format and update this in Preferences -> Languages & Frameworks -> Elm -> elm-format -> location.
    4. Then open any elm file in "frontend", and select corresponding folder's elm.json file after clicking "Attach elm.json (or elm-package.json)".
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment