-
Notifications
You must be signed in to change notification settings - Fork 8
Add Java solutions to existing problems #5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hi, I am looking to contribute to this project and I tried to run your program locally on my computer. I was able to build the project but afterwards, when I try to run the test for TwoSum, I am getting this error: |
run it with -v option and it should print out all the folders that it's using. Also, can you tell me with what args you're running it? |
Im running the default args as specified in README. Running -v tells me that the bin folder is missing. Am I supposed to build the project in the folder that I cloned the source code? |
Are you running it on windows? |
When you call If you specify -v option to openleetcode you might have more info about the failure. My guess is that it's failing to build because you're missing some dependency like the compiler.... |
I am running it on macOs. This is my terminal output: |
cmake is supposed to create the This is the case for Windows. It seems that the bin directory wasn't created in your case. Can you check and find where the executable was built? It should be somewhere in one of the subfolder in Anyways, as of now I haven't tested it for iOS because I don't have a Mac. i can try to help you but you might need to do some digging. If you look at |
Actually, I found a small typo in the cmake file. Can refresh your repo and try again? |
I have found out the error. It stems from the difference in behavior of the operating system's subprocess.run() function in the openleetcode.py file. In macOS, the command should be passed in as command instead of command.split(). I have also made a bit of other changes. Can I commit the changes on another branch so that you could verify the changes and commit if everything looks good? |
Yes please do. Also, I am making some big changes to openleetcode.py. I need to standardize how the openleetcode.py will interact with the language-specific binaries. I will document it all so that it's easy to add support for a new language. Should land the changes today. |
I am unable to push my changes to a new branch I name dev. I got the error: styleys@ThomasdeMacBook-Pro openleetcode % git push -u origin dev |
You're trying to push directly to the main repository. However, the typical workflow on GitHub involves working on your own fork of the repository and then submitting a pull request when you're ready to merge your changes. |
👌
Miro Bucko ***@***.***>于2024年2月25日 周日下午6:57写道:
… You're trying to push directly to the main repository. However, the
typical workflow on GitHub involves working on your own fork of the
repository and then submitting a pull request when you're ready to merge
your changes.
—
Reply to this email directly, view it on GitHub
<#5 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AZOAZSXOT73ZQVDNZFMFVFTYVNGOHAVCNFSM6AAAAABDUM2QMWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNRSHE3DMMBSHE>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
No description provided.
The text was updated successfully, but these errors were encountered: