agrawal-d / cph Goto Github PK
View Code? Open in Web Editor NEWMakes judging, compiling, and downloading problems for competitive programming easy.
Home Page: https://agrawal-d.github.io/cph
License: GNU General Public License v3.0
Makes judging, compiling, and downloading problems for competitive programming easy.
Home Page: https://agrawal-d.github.io/cph
License: GNU General Public License v3.0
Is your feature request related to a problem? Please describe.
Whenever I run test cases the focus gets shifted from my code to the extension window!
Describe the solution you'd like
There should be a flag to run the test case and keep the focus in the code window.
Describe alternatives you've considered
A saw this feature implemented in Code Runner!
Many times we work on predefined template for competitive coding. Also there is not much time to copy paste very time .
There can be a way of creating a file called template.cpp and we can always create new prblem.cpp file with the same template already written in it,
Issue Type: Bug
When i copy paste testcases from codeforces/codechef it gets copied twice. I have checked and its not my pc's/codeforces issue. It would be great if its fixed asap. Thanks.
Extension version: 4.1.0
VS Code version: Code 1.47.0 (d5e9aa0227e057a60c82568bf31c04730dc15dcd, 2020-07-09T08:02:06.629Z)
OS version: Windows_NT x64 10.0.18363
Item | Value |
---|---|
CPUs | Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz (12 x 2592) |
GPU Status | 2d_canvas: enabled flash_3d: enabled flash_stage3d: enabled flash_stage3d_baseline: enabled gpu_compositing: enabled multiple_raster_threads: enabled_on oop_rasterization: disabled_off protected_video_decode: unavailable_off rasterization: enabled skia_renderer: disabled_off_ok video_decode: enabled viz_display_compositor: enabled_on viz_hit_test_surface_layer: disabled_off_ok webgl: enabled webgl2: enabled |
Load (avg) | undefined |
Memory (System) | 15.92GB (9.94GB free) |
Process Argv | |
Screen Reader | no |
VM | 50% |
Recently @karan221 had suggested in an issue to add Python support into competitive-programming-helper
. Many people use Python to solve their daily programming challenges. I also needed to solve some problems in recent CodeForces contest using Python.
So I think add Python support is an awesome suggestion.
as i press + button it creates file and when i run test case it runs for python but in c++ if i click on run test case nothing happens .
crtl+c/ctrl+v is duplicating the text.
For example if I ctrl+c in the text:
5 1 2000 8
Then I paste the text (ctrl+v) in any input box for a new test case is duplicating to:
5 1 2000 85 1 2000 8
Is your feature request related to a problem? Please describe.
Sometimes we need to refer back to the problem for which we wrote the solutions to go back and
read the problem statement
Additional info like the problem link, name, contest name are beneficial
Describe the solution you'd like
// Problem : Life, the Universe, and Everything
// Contest : CodeChef - DSA Learning Series - Contest 1
// URL : https://www.codechef.com/LRNDSA01/problems/TEST
// Memory Limit : 256 MB
// Time Limit : 10000 ms
Something like this is appreciated
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
Add any other context or screenshots about the feature request here.
Please add support for golang
A option to execute a test case in debug mode so I can take advantage of the breakpoints and others debug stuffs.
Describe the bug
Extension is stuck on "Running Next Testcase" on MinGW g++ with Windows 10
To Reproduce
Steps to reproduce the behavior:
.tcs
file gets generated correctly.Expected behavior
The extension should tell if the test cases were passed or not.
Desktop:
Smartphone:
Additional context
If it helps this is the codeforces problem I have added in the screenshot.
I believe it has something to do with the operating system or the compiler itself (The compiler is added to PATH), since this extension works with Ubuntu 19.10 & GNU g++ on same hardware.
I have tested this tool on my files, it works really well. But I am getting some weird issue with this program.
Extension Version:
VS Code Version:
I have tested a code. Output matches the Result but still it is showing Wrong/Failed.
I have also evaluated the code on codeforces and it gets AC.
I get an error when i use vector<vector> instead of vector<vector >. I know it's due to old version of g++ being used as a compiler, starting g++-11 would solve the issue. Is there a way to control that? I see on the README screenshots that you declare vectors in the same way.
It will be good if after clicking on the competitive companion button it will redirect to the VSCode directly.
There should be a verdict which shows all test passed. It can be like All test Passed in visible green font. And if not it should show 1, 3 passed 2, 4 failed.
There should be the visible green color for passed and visible red color for failed and visible yellow color.
After clicking ctrl+alt+b it should make object file of that file name like It the file name is main.cpp, It should make object file of main so that we can externally run the code by the command ./main < input.txt
Most important make color visible. Green color should be like the Welcome button color on this repo homepage.
I am getting random expected result and hence random passed and failed verdicts with my code. I have checked that the output should pass for the given test case.
For no change in code I got these different outputs just by running testcases again.
Though I know there should not be any relation to what the code is yet I link it here
C_Adding_Powers.txt
Judging by the lack of issues, I believe there is some problem on my end so help me with that.
have you updated this extension ? today , parse problem using competitive companion is not working properly . for example , it's create file like this => G_Secure_Password.undefined . here file extension should be .cpp but it's undefine now. and i can't select the language .
i am using vs code in ubuntu dde 20.04
Extension Version: 4.0.0
VS Code Version: 10.1.1
Describe the bug
A clear and concise description of what the bug is.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
Smartphone (please complete the following information):
Additional context
Add any other context about the problem here.
I have both python2 and python3 installed on my Mac. The python
command directs to python2 and not python3. The extension picks up python2 by default. How to configure it to use python3
as the interpreter?
It'd be great if when a task is parsed and new file is created, instead of a blank file, an existing user specified template appears.
sir after 10 seconds my programme stops.how to increase maximum time of execution
Extension Version:
VS Code Version:
Codeforces (and probably others) has APIs for authorization and submitting solutions.
Can you, please, add a submit
button?
Thanks.
I use competitive companion along with competitive programming helper. Whenever I parse a question, it creates a .cpp and a .tcs in the same directory, which doesn't looks good. Is there a way in which only the .cpp files are created in the main directory and .tcs files somewhere else?
When solving codeforces problems I personally use the Question ID like 1234C, and I am very sure many people do it that way. So I think the Question's Url can be detected by the file name itself.
Maybe you can add another settings option to ask the user if they want automatic detection and in the Description you can tell them how they need to save the file.
You can even have users input a path format and then extract the url using this info. This would be very versatile and useful as Many users use custom paths and have their own preference about the path. For example in my case when I give actual contest the path to my solution are like ~/Documents/Compi/Forces/1234/C.cpp
. So I can specify in settings in some way that my path is something like ~/Documents/Compi/Forces/XXXX/Z.cpp
where XXXX is contest ID and Z is question .
Also maybe you can change by which name your extension saves the new file when it creates a source code (like when we use the green plus sign on the browser).
Extension Version: <4.0.2>
VS Code Version: <Version: 1.45.1
OS: Linux x64 5.4.45-1-lts snap>
Extension Version: 4.10
VS Code Version: 1.47.2
There are some performance issues with this version. It has become slower than previous versions.
Pasting large test cases of about 1e6 lines takes about 20 seconds. It wasn't this large in previous versions.
Judge Results tab takes longer time to load. With small test cases it can be observed but it's not significant. But with large test cases, it takes almost similar time as pasting. If there are multiple such testcases the loading time adds up. e.g If there are two large testcases it takes 2x time to load.
Again, on clicking Run All or the run again button there is a similar loading time more than the actual execution time of program.
While working with multiple files at the same time, outputs and verdicts disappear for the test cases when you open another file. If you open a file which is not associated with test cases, the Judge tab closes and on switching back it loads again without outputs. That is unwanted.
Frequently switching between files makes small load times significant.
Most online judges ignore the following lines written below :-
#ifndef ONLINE_JUDGE
freopen("input.txt", "r", stdin) ;
freopen("output.txt", "w", stdout) ;
#endif
Currently "cph" throws an error when the following lines are present.
It would be really nice and convenient to have it fixed.
Thanks!
Describe the bug
After adding 2nd Test Case, if I a new Test Case is created then the previous test Case disappears.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Previous Testcases disappear
Desktop (please complete the following information):
Really a great tool, saves up lots of time. Thanks!
Can there be a way to generate testcases randomly as per the constraints given in the problem.
It will be very useful because sometimes there is not much time to generate manually and hence can save valuable time,
Also there can be a option to generate boundary conditions like n=0 or n is at extreme points,
This is kind of a basic question:
I've taken a fork and I'm making changes to the code in my local repository. But right now VSCode is running the version of Competitive Programming Helper that I installed from the VSCode Extensions store; how do I build and run the extension from my local repository?
When I click run tests after parsing task, I get the error "in function _start undefined reference to main"
Extension Version: 2.17.0
VS Code Version: cd9ea648
Is your feature request related to a problem? Please describe.
When I have multiple tests and specially when I add some, the window becomes full of sometimes lengthy outputs, when I'm only interested in the verdict; Passed/Failed.
I tried many dark themes on vscode, and on every one of them the words "Passed" and "Failed" are not very clear, although they are colored in red and green.
Describe the solution you'd like
An option to always collapse passed tests so they will only take one line of space would be nice.
Having green and red background-colors behind the verdict will be much clearer.
I wish it was like the other OJs, ignoring the line end blank characters and not ignoring the line breaks.
If the correct answer is.
1 1 2 3 5
The output is.
1
1
2
3
5
The judger will think it's right.
When I press "Run Testcases" It asks me to create new test cases or download from URL. If I choose URL option. It asks for URL, I entered the URL and hit Enter. Process Stops here, I have to press "Run Testcase" again to make it work and check for testcases and show result. Can you make this flow continuous, so that I don't have to press "Run Testcases" 2 times.
You can use https://github.com/jmerle/competitive-companion to parse testcases automatically. It also supports many websites.
Is your feature request related to a problem? Please describe.
Currently, with Competitive Companion, it generates a new empty .cpp
file.
However, I would like to populate it with my default template for cp.
Describe the solution you'd like
I would expect settings variable, where I will give the path of my .cpp
file from which you can take contents and paste every time a new file is created.
Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
Describe the solution you'd like
A clear and concise description of what you want to happen.
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
Add any other context or screenshots about the feature request here.
Description
After updating VSCode from version 1.42 to 1.43 the test case are not fetched via the Competitive Companion extension. Test case can be generated manually or by codeforces problem link.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Test cases not fetched from the browser
Desktop :
Add some more verdicts instead of Success and Failed
-> AC: Accepted
-> WA: Wrong Answer
-> TLE: Time Limit Exceed
-> MLE: Memory Limit Exceed
-> ILE: Idleness Limit Exceed
-> CPE: Compile Error
-> RTE: Run Time Error
-> Skipped: Don’t verdict for some reason
Can you limit the time of a testcase ? Give them TLE with extra timer
Add "Time limit", "Extra time" to each testcase that
If it pass the limit, use the extra for continue output, but still give the result TLE
Sometimes in the contest, it is allow to output with anycase but the extension isnt :<, can you add "Secondary Expected Output"
Sometimes I slipped my hand or something and it delete a testcase, can you add "Undo Button"
Sometimes I dont want to play a testcase. can you add "Skip Button"
Sometimes I want to change the order of the testcase, can you add "Move up button", "Move down button", "Move first button", "Move last button", "Move to XXX button"
Sometimes I want to compare 2 programs with the same testcase, can you add "Compare Button"
Sometimes I want to save an output, are there any way to do that, or can you add "Save this output as default button ?"
Before update it was working fine but after the latest update it's not parsing task idk why?
Hey everyone,
Thanks a lot for creating the issues. I'm going to be busy for the next few months, and won't be able to work on this extension during this time. Please be rest assured that I will get to every issue filed when I have time again.
Thanks
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.