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.

The case-sensitivity of file systems depends OS and make confusing errors

See original GitHub issue

Paths are case-insensitive in Windows and macOS but case-sensitive in Linux and GitHub Actions (which uses Ubuntu).

This problem appears as No such file or directory errors in the phase to analyze dependencies of files, and also users cannot reproduce it on their local environments. As the result, it’s very difficult for users to recognize what is wrong.

INFO:onlinejudge_verify.verify:verify: /home/runner/work/CompetitiveProgramming/CompetitiveProgramming/kyopro/test/unionfind_yosupo-judge.test.cpp
/home/runner/work/CompetitiveProgramming/CompetitiveProgramming/kyopro/test/unionfind_yosupo-judge.test.cpp:5:10: fatal error: ../Library/DataStructure/unionfind.cpp: No such file or directory
 #include "../Library/DataStructure/unionfind.cpp"
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.

被害者1

@kmyk ありがとうございます。

https://github.com/knshnb/competitive_library/runs/618276854?check_suite_focus=true ここに書くべきでは無いかもしれませんが、そもそもこれがコンパイル通っていない原因もわかっていません(テストで落ちるのでとりあえずファイルをignoreしたりファイル名変更して対応しようとした結果が先程のissueです)。

手元のMac環境ではoj-verify runは通っていて、依存関係は特に問題ないように思えるのですが… (問題ファイル: https://github.com/knshnb/competitive_library/blob/e4a8328a5afcafb5a4604fbb9fe781df8b4a9e0c/test/yukicoder/1036_segment_tree.test.cpp)

https://github.com/online-judge-tools/verification-helper/issues/228#issuecomment-619986014

被害者2

https://t.co/ZVJ0vLVLgl
GitHub 難しい

— null🍆🌖 (@null_0124) May 12, 2020

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:10 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
knshnbcommented, May 20, 2020

MacOS (Catalina 10.15.2)でも test.o: test.cpp hoge/fuga/PIYO.h になりました。

1reaction
null0124commented, May 20, 2020

@kmyk 回答ありがとうございます。 deps.txt の中身は test.o: test.cpp hoge/fuga/PIYO.h になってました

Read more comments on GitHub >

github_iconTop Results From Across the Web

Adjust case sensitivity - WSL - Microsoft Learn
Setting this option to false on a case-insensitive file system may lead to confusing errors, false conflicts, or duplicate files. For more ...
Read more >
Are all versions of Windows case insensitive? - Super User
Yes, this is true for all versions of Windows. There is no way to make Windows case sensitive. Keep in mind though that...
Read more >
Understanding MySQL's lower_case_table_names - Skeema
This means the operating system's case-sensitivity (or lack thereof) ... it can be a confusing source of errors which wastes time to debug....
Read more >
Can SVN handle case sensitivity issues? - Stack Overflow
It seems to me that having two files in the same directory differing only by case is bound to cause confusion anyway. Can...
Read more >
[Support Guide] Netlify app builds locally but fails on deploy ...
Errors you might see. Case sensitivity issues can be frustrating to debug because sometimes you'll receive error messages letting you know that files...
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