pakhandi's blog

By pakhandi, 4 years ago, In English,

Hey programmers,
I have been working on a project lately and finally, after lots of testing and stuff (it's difficult to manage college, semester exams and also work on a project alone here in India) I would like to share with you people, Buggy.

Buggy is a Sublime-Text plugin for CodeForces (for Windows). It can parse all the test-cases for a single round in nice folder system and allows you to run your code on all the test cases. It also allows you to run your program on custom-test-cases. The plug-in has been developed as a personal project, so it is not as refined as you may find some better plug-ins, but since I couldn't find any plug-in for Sublime-Text, I developed one.

Windows :

Here is the download link : Buggy — V.2.2
Here is the release : Buggy Release and ReadMe File

Linux :

Here is the download link : Buggy — V.2.2
Here is the release : Buggy Release and ReadMe File


Please read the installation and usage very carefully before using this plug-in to avoid any in-contest confusions.

EDIT : Installation video for windows && Demo Video

Also you can contribute to the project here (It's completely open source) :
Buggy Repository(Win).
Buggy Repository(Linux)

Linux version is up now. Please drop a message or comment for feedbacks

PS : This has been developed as a personal project so constructive suggestions are welcome. Please don't put harsh comments which may not help us grow together.

Following are few important components of ReadMe file(Win)

Requisites

  • Windows OS
  • Internet Connection (it should be working on cmd and should be allowed for all the applications)
  • A little space in C: drive
  • Sublime Text-3 (make sure it's included in the PATH-variables)
      • To check Sublime Text-3 is included to PATH-variables
      • Open a cmd window._
      • Run "subl" in the cmd._
      • If Sublime opens up, everything is perfect
  • A default browser
  • Working g++
      • To check g++ is working
      • Open a cmd window.
      • Run "g++" in the cmd.
      • If it throws an error of missing file, everything is perfect

Installation

  • Download all the files from given link above..
  • Shift the CF folder to "C:". This is very important for the application to work. The CF folder should be directly in C: drive
  • Shift the Buggy---Windows folder to C:\Users\User\AppData\Roaming\Sublime Text 3\Packages.
      • For me, the path looks like : C:\Users\DELL\AppData\Roaming\Sublime Text 3\Packages
  • Open Sublime-Text-3 (referred as Sublime here after), and change your build system
  • GoTo "Tools -> Build System" and select CF
  • Your Sublime is now configured

Usage

  • After the installation, you should see a new menu in the menu bar, Buggy.
  • Click on the Buggy menu and you'll be able to see all the options there.
  • Make sure Sublime Side-Bar is visible (View -> Side Bar -> Show Side Bar).
  • To start parsing test-cases for a round, (Buggy -> Start)
  • Compile the code before running it on test-cases.
  • For parsing the test-cases, provide the round-number you see in the url of the contest.
  • Copy the code before going to submit the code.
  • If you want you can change the key-bindings too.
  • If you are working behind proxy
      • Open dist/proxy.txt
      • Delete all the contents of the file and add your proxy with the following format

Following are few important components of ReadMe file(Linux)

Requisites

  • Linux (Tested on Ubuntu-14.04)
  • Internet Connection (it should be working on terminal)
  • Sublime Text-3
      • To check Sublime is installed correctly
      • Open a terminal window.
      • Run "subl".
      • If Sublime opens up, everything is perfect.
  • A default browser
  • Working g++
      • To check g++ is working
      • Open a terminal window.
      • Run "g++".
      • If it identifies the command, everything is perfect.
  • NOTE : xdg-open command is used. Make suitable replacements/installations (in zx.sh and start.sh).

Installation

  • Download all the files from here : V.2.2.
  • Shift the Buggy---Linux and CF folder to ~/.config/sublime-text-3/Packages/User/
  • Make sure proper execution permission is given to ini and shell scripts.
  • Open sublime. GoTo "Tools -> Build System" and select CF
  • If you see Buggy menu in the menu-bar, installation is complete
  • Change the template code in CF/dist/template.cpp as it suits you. (Let the end-comment be there to show support :) ).

Usage

  • After the installation, you should see a new menu in the menu bar, Buggy.
  • Click on the Buggy menu and you'll be able to see all the options there.
      • If you are not able to see all the options, "Tools -> Build System" and select CF.
  • Make sure Sublime Side-Bar is visible (View -> Side Bar -> Show Side Bar).
  • To start parsing the test-cases, (Buggy -> Start).
  • For parsing the test-cases, provide the round-number you see in the url of the contest.
  • Compile the code before running it on test-cases (Ctrl+B or Buggy -> Compile)
  • Copy the code before going to submit the code.
  • If you want you can change the key-bindings too.
  • If you are working behind proxy
      • Open dist/proxy.txt
      • Delete all the contents of the file and add your proxy with the following format
  • If you want the problem-set to open in your default browser, uncomment the last two lines of CF/dist/start.sh


UPD 1 : Description of Linux version added

Hope you like it
Have fun

 
 
 
 
  • Vote: I like it  
  • +35
  • Vote: I do not like it  

»
4 years ago, # |
  Vote: I like it +1 Vote: I do not like it

I am using Linux version for myself from quite a long time. It's working fine, tested on various contests, problems. Here is some results/how to use. If some one needs it, I can give the source and installation instructions.

»
4 years ago, # |
  Vote: I like it 0 Vote: I do not like it

pakhandi For Linux version, it's showing "Not Found".

»
4 years ago, # |
  Vote: I like it 0 Vote: I do not like it

can anyone please provide me the packages for c++ for error detector and autocomplition in sublime text 3 Thanks in advance

»
2 years ago, # |
  Vote: I like it 0 Vote: I do not like it

Hi pakhandi, I like Buggy very much. I'd like to know two things: 1. How can I customise the code template ? 2. How should I close my editor effectively so that it does not show contest round on the title bar ? I am using a linux machine.

  • »
    »
    2 years ago, # ^ |
      Vote: I like it 0 Vote: I do not like it

    Thanks :)
    Change the code template from "Buggy -> Template-C++"

»
2 years ago, # |
  Vote: I like it 0 Vote: I do not like it

I've just installed Buggy on linux. I'll test it on a virtual contest.

»
4 months ago, # |
Rev. 3   Vote: I like it 0 Vote: I do not like it

I am using this plugin on windows 10. Buggy plugin was successfully setup and all the desired options are available in buggy menu of sublime text 3 but when I go to batch test my file it shows that "aprog.exe" is not found as an internal or external command. also when I go for compile the start batch window opens automatically instead of compiling. Help me out from this.

  • »
    »
    7 days ago, # ^ |
      Vote: I like it 0 Vote: I do not like it

    I also have a same problem on checking the required directory i found out that in my case output file is saved with name a.exe and that is why this file (aprog.exe) doesn't exist. Is there any way to solve this issue, please let us know..