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

Windows support #26

Open
xobs opened this issue Sep 10, 2023 · 1 comment
Open

Windows support #26

xobs opened this issue Sep 10, 2023 · 1 comment

Comments

@xobs
Copy link

xobs commented Sep 10, 2023

This project is an excellent example of how to do graphical programs in Rust. Thank you for putting it together.

I'm running it under Windows, and have experienced a few issues:

  1. valens config creates invalid paths: DATABASE = 'sqlite:///C:\Users\Sean\.local\share\valens\valens.db' -- the path separators should be double-escaped, or use forward slashes
  2. Every time I try to do something, I get an error: Mismatch between frontend and backend version (, 0.1.dev303+gab3e487). This may lead to unexpected errors. Please close and restart the app.

I can open separate issues for these if you like, or if Windows is not a desirable target I can close this issue.

@treiher
Copy link
Owner

treiher commented Sep 19, 2023

Thanks for your report!

  1. valens config creates invalid paths: DATABASE = 'sqlite:///C:\Users\Sean\.local\share\valens\valens.db' -- the path separators should be double-escaped, or use forward slashes

The problem should be easy to fix. I will try to extend the CI tests to ensure the compatibility with Windows in the future.

  1. Every time I try to do something, I get an error: Mismatch between frontend and backend version (, 0.1.dev303+gab3e487). This may lead to unexpected errors. Please close and restart the app.

The error message indicates that the version could not be determined correctly. In this project setuptools-scm is used for this purpose. setuptools-scm extracts the versions from the git metadata. If you are building the project from source only, this would explain the issue. The problem should not occur if you are building the project from the cloned repository.

@treiher treiher changed the title Issues building under Windows Windows support Jan 2, 2024
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

2 participants