cpbooster
cpbooster copied to clipboard
cpb clone only cloning the first problem of the contest
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
- open ubuntu on windows
- run 'cpb clone'
- 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.
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
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.
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
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
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