-
Notifications
You must be signed in to change notification settings - Fork 90
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
Rust Analyser + Symlink to Apps on MacOs = 🤯 #13
Comments
The link is used in macOS builds. Mac users can drag and drop the game into their Applications directory (which seems to be standard for installing mac applications). Maybe you can tell rust-analyser to ignore the build directory? You are using VS code, right? In that case, it would be awesome if we could add a configuration preventing this problem in |
If that is not possible, we could try to create the symlink during packaging instead of having it in the repository. |
Ok, so here is what I have tried unsuccessfully :(
{
"rust-analyzer.files.excludeDirs": ["build"],
"files.watcherExclude": {
...
"**/build/macos/**": true
}
} |
Oh, just found out that it may be not our fault ))) rust-lang/rust-analyzer/issues/7755 So... |
This symlink to I added this to my VSCode settings at first: "files.exclude": {
"**/.git": true,
"**/.svn": true,
"**/.hg": true,
"**/CVS": true,
"**/.DS_Store": true,
"**/Thumbs.db": true,
"build/macos/src/Applications": true,
} But still ran into build problems until I removed the symlink (seems to be related to rust-lang/cargo#8183):
I just deleted the symlink and all seems to be working as expected now... |
If this keeps making trouble I guess it's time to look into generating the symlink when packaging a macOS build. |
I just pushed a commit that removes the symlink and instead creates it only during the macOS build. Could you please verify that your issues with the symlink are now gone? Since you have access to a mac: could you please also check if the latest macOS build is still installable via drag and drop to |
Both the original issue seems to be gone, and I can install the test app from the Thanks for this! I think this issue can be closed now. |
Hello, thank you for awesome template.
I encountered issues using it with rust-analyser, it seems that it tried to analyse everything (ok) and even went through symlinks (not ok). Project could not be compiled and everything I got was:
I was able to solve the issue by deleting the symlink to
Applications
.Is this symlink necessary?
The text was updated successfully, but these errors were encountered: