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

error[E0599]: no variant or associated item named get_mouse_position found for enum mouse_position::mouse_position::Mouse in the current scope #335

Closed
yurivict opened this issue May 19, 2024 · 7 comments

Comments

@yurivict
Copy link

Describe the bug
Build fails with options "--no-default-features notan/shaderc":

error[E0599]: no variant or associated item named `get_mouse_position` found for enum `mouse_position::mouse_position::Mouse` in the current scope
    --> src/ui.rs:2181:35
     |
2181 |             let position = Mouse::get_mouse_position();
     |                                   ^^^^^^^^^^^^^^^^^^ variant or associated item not found in `Mouse`

Desktop (please complete the following information):

  • OS: FreeBSD 14.0
  • Version 0.8.22
@woelper
Copy link
Owner

woelper commented May 19, 2024

Oh, thanks! These are libraries that do not work on NetBSD. I've excluded certain features such as borderless mode for those operating systems. In this case, I've used #[cfg(not(target_os = "netbsd"))]. But apparently, FreeBSD is not equal to NetBSD!

@yurivict
Copy link
Author

Everything that is related to mouse position should work the same way on FreeBSD as it works on Linux.

@woelper
Copy link
Owner

woelper commented May 20, 2024

Unfortunately, it does not. I've added an issue here to ask for support:
fayez-nazzal/mouse_position#3

@yurivict
Copy link
Author

FYI:

fayez-nazzal/mouse_position actually works fine on FreeBSD if the OS limitations are removed in its code.

I've added these patches and Oculante has successfully built on FreeBSD.

Now Oculante is available as a FreeBSD port.

@woelper
Copy link
Owner

woelper commented May 27, 2024

Sorry for the late reply! You are amazing. Good to hear that!
Would you think that adding these patches as a PR to mouse_position makes sense? If they accept that we could get rid of the requirement to patch your port.

Great work and exciting to see it added as a port!

@woelper
Copy link
Owner

woelper commented May 27, 2024

Can I close this issue now?

@yurivict
Copy link
Author

Thank you!

I'll add the PR for fayez-nazzal/mouse_position.

Closing this issue.

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