searleser97 / cpbooster

Competitive Programming Booster
GNU General Public License v3.0
144 stars 30 forks source link

cpbooster keeps waiting for competitive companion on WSL #67

Closed MickyOR closed 1 year ago

MickyOR commented 1 year ago

cpbooster version: 2.6.4 OS: Windows, Ubuntu on WSL Using Vim? : no Using Neovim? : no Terminal Name: Windows Terminal

After running cpb clone, cpbooster stays on 'server waiting for "Competitive Companion Plugin" to send problems...' after parsing a contest with competitive companion

Steps To Reproduce it

  1. Open Windows Terminal on WSL
  2. run cpb clone
  3. parse contest with competitive companion on firefox

Could this be because WSL can't listen directly to the host system's ports? I haven't seen other WSL users have this problem with cpbooster though.

Here's my config file:

{
  "contestsDirectory": "/mnt/m/CompetitiveProgramming/Contests",
  "port": 1327,
  "editor": "code",
  "closeAfterClone": false,
  "showStatusPageOnSubmit": true,
  "useUserDefaultBrowser": true,
  "preferredLang": "cpp",
  "hideTestCaseInput": false,
  "maxLinesToShowFromInput": 50,
  "cloneInCurrentDir": false,
  "languages": {
    "cpp": {
      "template": "/mnt/m/CompetitiveProgramming/cp-template/template.cpp",
      "command": "g++.exe -O2 -std=gnu++20 -o executable.exe",
      "debugCommand": "g++.exe -std=gnu++20 -DDEBUG -Wshadow -Wall",
      "aliases": {
        "codeforces": "73",
        "atcoder": "4003",
        "omegaup": "cpp17-gcc",
        "szkopul": "C++",
        "yandex": "gcc7_3"
      },
      "type": "compiled",
      "commentString": "//"
    }
  }
}
MickyOR commented 1 year ago

I changed the port to 27121 and it is working now. I'm now having the same problem where cpb clone only gets the first problem of a contest as issue #66.