question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Project Euler challenges breaks Windows filename length restrictions

See original GitHub issue

Describe 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 -

err

To Reproduce Steps to reproduce the behavior:

  1. git fetch upstream master
  2. git reset --hard upstream/master
  3. 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.

err1

Desktop (please complete the following information):

  • OS: Windows 10
  • Browser: Chrome
  • Version: 69

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:9 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
Nirajn2311commented, Oct 25, 2018

@Manish-Giri The following command helped me get over this issue

git config --system core.longpaths true

I was using Git Bash, so I’m not sure if it will work in cmd.

0reactions
scissorsneedfoodtoocommented, Nov 16, 2018

@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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found