Project Euler challenges breaks Windows filename length restrictions
See original GitHub issueDescribe the bug
The Project Euler challenge filenames are larger than the limits specified by Windows 10 on filename lengths. I came across this while trying to get my local repo up to date with master
, and it threw an error -
To Reproduce Steps to reproduce the behavior:
git fetch upstream master
git reset --hard upstream/master
- See error
Expected behavior Filename should be truncated to match the length restrictions on MS Windows.
Screenshots If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
- OS: Windows 10
- Browser: Chrome
- Version: 69
Issue Analytics
- State:
- Created 5 years ago
- Comments:9 (9 by maintainers)
Top Results From Across the Web
Lesser-known effect of path-length limitation in File Explorer in
It turns out that if the length exceeds 260 characters (259 regular characters plus the obligatory <NUL> character), then Windows Explorer ...
Read more >Project Euler 98: Investigating anagrams, which represent ...
Solutions for Project Euler 98: "Investigating words, and their anagrams, which can represent ... Length) break; bool match = true; int square =...
Read more >CCP4 Program Suite: Problems
No error message was given if this limit was exceeded. Instead the output Euler angles and fractional translations became corrupted, due to array...
Read more >In C# check that filename is *possibly* valid (not that it exists)
One thing to keep in mind is that Windows at least prohibits some filenames that otherwise containlegal characters. A few come to mind:...
Read more >Archived Problems - Project Euler
ID Description / Title Solved By
1 Multiples of 3 or 5 969549
2 Even Fibonacci numbers 773794
3 Largest prime factor 557221
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@Manish-Giri The following command helped me get over this issue
I was using Git Bash, so I’m not sure if it will work in cmd.
@Manish-Giri, just took a look at this on my Windows machine and the filename lengths don’t seem to be a problem anymore. Granted, my path is a couple of characters shorter than yours, but it seems safe to close this for now.