Skip to content
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

tauri_bindgen_host: unwrap() on Err; generate! with relative path #124

Open
SenojLuap opened this issue May 23, 2023 · 4 comments
Open

tauri_bindgen_host: unwrap() on Err; generate! with relative path #124

SenojLuap opened this issue May 23, 2023 · 4 comments

Comments

@SenojLuap
Copy link

Trying out the v0.2.0 release, and I'm getting: message: called `Result::unwrap()` on an `Err` value: × unexpected character when I use a relative path ( '../' in my case) to specify the location of the .wit file.

tauri_bindgen_host::generate!(
  {
    path: "../edit-ui.wit"
  }
);
@JonasKruckenberg
Copy link
Contributor

JonasKruckenberg commented May 31, 2023

Can you share the wit file you're pointing to? It seems to be a lexing error (not an issue with finding the file)

Edit: Or does it work when specifying an absolute path?

@Zercerium
Copy link
Contributor

Do you are using windows / CRLF line ending in the .wit file?
issue is mentioned here: #145 and potential fix #146

If I set the line ending from LF to CRLF I get the same error as you mentioned.

@SenojLuap
Copy link
Author

Sorry, I ended up going with another approach, so it will probably take some doing for me to dig up my .wit file. But I'll try.
However, I can tell you that I'm working on Windows. When I created that file, I didn't haven't any special extensions (I'm working in VSCode) for .wit files, so I just told it to create a plain UTF-8 text file.

@JonasKruckenberg
Copy link
Contributor

I think this might be a duplicate of the CRLF bug good call @Zercerium I still would appreciate if you have the time to check @SenojLuap though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants