Skip to main content

'Online judge aware Rust IDE'

Project description

Rujaion : Rust / C++ / Python IDE specialized in online judge

Code style: black

Travis PyPI screen_cast

Introduction

Lightweight Rust IDE based on PyQt. (C++ and Python support is experimental)

This IDE is simplified and specialized to competitive programming, user can concentrate on programming and can achieve best performance.

When you open the contest problem page, input and output example of the problem is downloaded automatically in the background.

Then testing with sample cases, debugging with test cases, and submission can be by one click.

Feature

  • Rust / C++ / Python
  • GUI debug
  • Online judge testcases downloading and testing. (based on online-judge-tools)
  • Debug with online judge testcases
  • Do online judge submission
  • Completer and jumper (based on racer)
  • Auto Formatting (based on rustfmt)
  • Rust REPL (based on evcxr_repl)
  • Live Templates (IntelliJ style)
  • Contest Task Browsing
  • Display graph structure

Software Requirements

  • Linux OS (I only tested with Ubuntu 16.04 / 18.04)
  • Python (3.5 or later)

If you want to develop with rust-lang, you need

If you want to develop with C++, you need

  • clang (8.0.0 or later)
  • clang-format
  • g++

If you want to develop with Python 3.x, you need

  • jedi (pip install jedi)
  • autopep8 (pip install autopep8)

Usage

If you want to use Rujaion please read and agree with our cookie policy.

Install to Linux

Install Qt5. If you use Ubuntu 16.04,

$ apt update && apt install -y qt5-default libxcb-xinerama0-dev libnss3 libasound2

will work. Or please see official document (https://www.qt.io/download).

Install Rujaion

$ pip3 install Rujaion
$ rujaion

Use on Docker

See https://github.com/fukatani/rust-gui-debugger/blob/master/docker/Readme.md

KeyBinds

  • Open File (Ctrl + o)
  • Save File (Ctrl + s)
  • Delete current line (Ctrl + k)
  • Set or unset brake point (F5)
  • Start Debug or continue (F9)
  • Start Debug with downloaded testcase (F4)
  • Download sample testcases (Input url in browser and Press Enter)
  • Focus on URL (F6)
  • Run (Ctrl + F9)
  • Next (F8)
  • Step in (F7)
  • Step out (Shift + F8)
  • Go to definition (Ctrl + b)
  • Go to first compile error (F2)
  • Terminate debug process (Esc)
  • display value (editting display widget "Name" columns)
  • Comment out (Ctrl + /)
  • Toggle Show / Hide Browser Widget (F12)
  • Toggle Full Screen Browsing / or not (Ctrl + F12)
  • Toggle Show / Hide Console Widget (F11)

Contest Task Browsing

browse

You can browse contest task by Browser Widget. You can hide (or show) browser, press F11 key. If page URL is contest task page, contest task is downloaded automatically by online-judge-tools.

Login to Programming Contest

Some online-judge-tools features (ex. submit) needs login session information.

You can login by

  1. Login with Browser Widget
  2. Tool bar -> Contest -> Login

Cookie and Security Policy

Rujaion only use cookies for programming contest pages which is supported by online-judge-tools.

Though you can access any page by browser widget, cookies in other page will not be handled in rujaion explicitly. (QtWebEngine may use it.)

Cookies are only used for online-judge-tools features that require login. (Excepts QtWebEngine inner use.)

We are not liable for damages arising from any user with using rujaion.

Display Graph (Powered by Graph x Graph)

In contest, you often draw graph structure.

Select graph elements and do "View Graph" in browser right click menu, you can draw graph structure easily.

screen_cast_graph

Display Table

In contest, you often want to display table data. (ex. Debugging DP table.)

Select graph elements and do "Visualize Table" in console right click menu, you can draw table data.

screen_cast_table

Blog Entry

https://codeforces.com/blog/entry/69975

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

Rujaion-0.15.0.tar.gz (33.0 kB view details)

Uploaded Source

File details

Details for the file Rujaion-0.15.0.tar.gz.

File metadata

  • Download URL: Rujaion-0.15.0.tar.gz
  • Upload date:
  • Size: 33.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.25.1 setuptools/58.0.4 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.7.2

File hashes

Hashes for Rujaion-0.15.0.tar.gz
Algorithm Hash digest
SHA256 b4cdb2ff4bf84c37ddf6b4a66aaf42ad72fd5076feb104f2ea486ce9a7f12ce3
MD5 2440848b676a3b34b450d0f718a1a043
BLAKE2b-256 c4447d89bcb4e8f9361e3f8bb4262ba33ab7aea0580ccc327dffa8eefa2f0c04

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page