Closed Sashank999 closed 3 weeks ago
Thank you for your contribution and the effort you’ve put into improving support for Windows users. We genuinely appreciate your initiative to make the tools more accessible. However, after careful consideration, we’ve decided not to merge this pull request at this time.
Our primary recommendation for those who prefer a local environment is to use cs50.dev, which is well-supported and provides a consistent experience across platforms. Additionally, for users seeking an offline solution, cli50 is available via Docker, allowing you to run submit50 and check50 locally.
We recognize the effort you put into making this PR, therefore you can use this PR as your final project.
Thank you for your reply.
I'm a Windows user. I personally don't like using codespaces because my internet connection is unstable and having a cloud instance running seems like an overkill for me.
This PR does a lot of stuff but some highlights are:
pexpect.popen_spawn.PopenSpawn
class directly instead ofpexpect.spawn
. (76f1c92947ef171c42badecbc3fc55b37f28b911)pexpect.spawn
is not available on Windows as pseudo terminals are not available, which thepexpect
library uses.psutil
and replaced with thePopen.poll
from Python which is inproc
attribute ofPopenSpawn
.colorama
package as a Windows-only dependency.ctypes
package and calls Windows API functions which are already available.cmd
is different. Addedoslex
dependency for it. (33aac2e736d843bee70423d83188324dd3286164 and bddcf26ea4dd84861550f2c3081a8199e095d599)git config credential.helper=cache
does not work. Added support for the GCM Core credential manager on Windows along with regex for parsing its output. (fae9f04b4bc455b8f217e6b547f964df9227a4ee)All the tests run fine on both Windows and Linux (except the UTF-8 filename check on Windows). If you want to check with
check50
, only online checks will work ascheck50
has theExit testing temporary directory before removing it.
errors for offline mode. I will fix those once we agree on this PR.P. S. Will any of these contributions count towards my CS50 score ? This is the GitHub account for my course as well. I'm just curious.