-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
[bug] OUT_DIR env var is not set, do you have a build script? #8442
Comments
Well, do you have a build script? If you used create-tauri-app or tauri init it should have created a fn main() {
tauri_build::build();
} |
same problem on win10 and v2.0 alpha, and I have the build script: build.rs |
Can you upload your app to github? Or try a fresh app create via create-tauri-app and compare that with your own app if it works? |
I encountered the same behavior on win11 and tried to create a new app as @FabianLars suggested using the create-Tauri command. The error is also present in the new project. There is a build.rs file present in both of my projects. Besides the error message in my IDE, the build/app functions as expected. If you still need an example app, https://github.com/BitsAndDroids/FlightConnector-Rust I've added a pr with a possible fix |
So, are both of you encountering it just in an jetbrains ide? Because if so i'd assume they'll fix it in the next update. Or i really hope so because i'm not a fan of the PR tbh since it's really not our responsibility to set it (otherwise cargo build and rust-analyzer would fail too). |
I'm trying another IDE, but I believe you found the culprit. I've just checked VSCode and the "bug" is gone. At least I've learned how to sign a pr from this. Will close the PR. |
@BitsAndDroids Same here. It just only shows error sign in intellij. vscode is fine. |
Hi folks, we'll see what we can do on the RustRover's side: https://youtrack.jetbrains.com/issue/RUST-13238/Suspicious-macro-expansion-results-in-Tauri-apps |
I meet the same problem in RustRover, I fix this by delete |
Closing as the RustRover version that fixes this issue should be available now :) |
same with rust analyser think deleting targets worked |
Still having the issue on Ubuntu (24.04) with VS Code (1.94.4). Any suggestions please? |
Restarting the VS code fixed the issue for me |
Describe the bug
Reproduction
No response
Expected behavior
No response
Full
tauri info
outputStack trace
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: