-
Notifications
You must be signed in to change notification settings - Fork 337
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
Handle case-insensitive file systems in a better way #5719
Comments
A random guess: since you are on a case-insensitive system, does your module name agree exactly with your file name (including case)? See #5508 |
I failed to reproduce the error on Linux, so it could be something platform-related indeed. Can someone on Apple try if they can reproduce this? |
Yes, @andrejbauer :
|
The is likely no MWE coming. Closing. |
Sorry for the delay. Using Agda 2.6.2 on MacOS, I can confirm that the problem is caused by case-insensitive file names. When I make sure that the file name matches, I get a reasonable error (about termination checking). Is there a way for Agda to fail more graciously, or should we just blame Apple for this bug? |
Looks like agda/src/full/Agda/Utils/FileName.hs Lines 107 to 114 in 798be60
also be activated for mac? |
No, sorry @andrejbauer, this it totally Agda's fault. I am on macOS myself, so I would be curious to reproduce the issue, but I was lacking information (i.e., the spelling of the filename of the module). Issue #5508 could be related, which is fixed on Agda 2.6.2.1. Could you please try to reproduce the issue on 2.6.2.1 (or complete the information so I can reproduce it)? |
Trying to remember my thought process here. OK:
It would be optimal if there was a function that would tell you the case-sensitivity of a location (like Lines 93 to 106 in 719ba66
|
Apparently some recent Linux kernel supports file systems for which What is the goal with Agda's support for case-insensitive file systems? One goal is presumably to avoid making users confused. Should we also aim to ensure maximum portability? In that case we should perhaps refuse having (say) both |
Yes! I definitely support this.
That sounds too complicated. I'd stick to the common case of upper/lowercase confusions. |
|
Perhaps one should first normalise:
|
This suggests that |
Ping @andrejbauer for a self-contained reproducer. |
1 similar comment
Ping @andrejbauer for a self-contained reproducer. |
Where do I report bugs?
System info:
Do you need anything else?
The text was updated successfully, but these errors were encountered: