-
Notifications
You must be signed in to change notification settings - Fork 158
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
The specified file name or path is too long #967
Comments
Oh this is very weird - that's way down in the compiler itself. The inputs to that are always |
Based on a cursory look you may be hitting this branch of the unix-specific memory-mapped file code: https://github.com/dotnet/runtime/blob/main/src/libraries/System.IO.MemoryMappedFiles/src/System/IO/MemoryMappedFiles/MemoryMappedFile.Unix.cs#L246-L267 Do you have a way of finding what SHM_NAME_MAX is on your system? |
I couldn't find a straight forward way to find that information so I wrote a small c program with shm_open and from trial and error it looks like the max is 31. |
I think the fix for SHM_NAME_MAX on macOS was only fixed for dotnet/7: I don't see the changes getting merged to the 6.0 branch: |
Good call, can you try installing a .net 7 preview and running FSAC with it? It should just work. |
I tried using dotnet 7.0.100 and while it no longer throws exceptions no results are given. Finding reference or definitions returns. Messages
Eglot Events
dotnet 6.0 at least worked with finding the definition so I will be returning to that. Given this is a dotnet issue feel free to close this issue. I recommend adding something in the readme for other mac m1 users tho. Thanks for all the help! |
I can look into if there's something critical we fail with on 7.0.100 previews in the meantime. |
Seems like it was an issue with dotnet runtime and M1 macbooks dotnet/fsharp#14061. |
I just ported my emacs setup to my m1 macbook pro which uses eglot and fsautocomplete for work with fsharp. While trying to find references it errors out and complains about the file path being too long. I'm not sure what file path it's trying but mine is even below the windows file path limit of 260 characters. In case it helps here is a link to the source code I'm trying it on https://seoushi.dynu.net/sean/inulang/-/blob/fsharp/inulang/inulang/Cli.fs . I've also seen this happen on my gentoo machine but it's not 100% as it is on my m1 macbook.
More Information:
dotnet 6.0.302
fsautocomplete version 0.55.0+1fe4bb9fc5a7cedd00d35e34d347de2c74abe8b1
Here is the event log of the error from emacs.
error.txt
The text was updated successfully, but these errors were encountered: