searleser97 / cpbooster

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

cpb clone only cloning the first problem of the contest #66

Open schrodingersca8 opened 1 year ago

schrodingersca8 commented 1 year ago

Please complete the following information: cpbooster version: 2.6.4 OS: Ubuntu on WSL Using Vim? : no Using Neovim? : yes

Describe the bug The command cpb clone is only cloning the first problem of the contest in the directory and skipping the rest.

Steps To Reproduce it

  1. open ubuntu on windows
  2. run 'cpb clone'
  3. Go to the contest website, click on the extension icon and 'click on competitive-companion'

Expected behavior It should clone all the problems in the contest in a flat file structure.

schrodingersca8 commented 1 year ago
screenshot

I am trying to clone the whole contest but only first problem is being cloned. This is my extension configuration in browser

extension config in browser
searleser97 commented 1 year ago

could you share the URL where you are clicking the "competitive companion" button?

It should be in the page where all the problems of the contest are listed, not on the page where the first problem is shown

schrodingersca8 commented 1 year ago

yes, the url is 'https://codeforces.com/contest/1714' I have used this awesome tool in my ubuntu environment and it was working wonderful there,but since i have shifted to wsl, i am facing this issue.

searleser97 commented 1 year ago

okay, makes sense, so for some weird reason, in Windows data transfer between chrome and terminal is toooo slooow, and although I put a timeout of 10 seconds between each problem, it looks like your computer is even taking more than those 10 seconds for each problem.

I haven't found the solution for that yet

Timkak commented 11 months ago

Describe the bug The command cpb clone is only cloning the first problem of the contest in the directory and skipping the rest.

Open a file ~/.nvm/versions/node/v19.6.0/lib/node_modules/cpbooster/src/Clone/CCServer.ts

Then find const tolerance = isWindows ? 10 : 1; now try to change 10 to another number

searleser97 commented 11 months ago

Actually now I believe that Competitive Companion sends the count of problems that will be parsed, so if someone volunteers to refactor the code to wait until all problems have been received, tha will be great