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

interface doesn't open #177

Open
UltraBlackLinux opened this issue Sep 17, 2024 · 8 comments
Open

interface doesn't open #177

UltraBlackLinux opened this issue Sep 17, 2024 · 8 comments

Comments

@UltraBlackLinux
Copy link

Hey there.
When I run gf2 <binary> no GUI opens and I just see some logs in the terminal:

Cannot load font  : 1
VIM - Vi IMproved 9.1 (2024 Jan 02, compiled Aug 31 2024 21:12:10)
Unknown option argument: "--servername"
More info with: "vim -h"

nothing else happens at all. I've tried forcing it to use xwayland, but that didn't help either.
I'm currently on version 40f2ae6
Any ideas?
Thanks!

@iron-udjin
Copy link

I have the same issue under FreeBSD 14 and Sway WM.
swappy-20241002-201337

Is there solution or workaround?

@greg7mdp
Copy link

greg7mdp commented Oct 2, 2024

Did you install libfreetype-dev and build with -lfreetype -D UI_FREETYPE -I /usr/include/freetype2?

@iron-udjin
Copy link

Oh...sorry. I didn't pay attension to warning message:

Warning: Your copy of GDB appears to be non-standard or has been heavily reconfigured with .gdbinit.
If you are using GDB plugins like 'GDB Dashboard' you must remove them,
as otherwise gf will be unable to communicate with GDB.

After removing .gdbinit everything works fine.

Thank you, anyway.

@UltraBlackLinux
Copy link
Author

UltraBlackLinux commented Oct 2, 2024

hmm I don't have such a file, and as per your screenshot, you actually do get a window to open. I don't get a window, I just get a process that does seemingly nothing at all :/

Edit: There are some oddities in the code. What is the GVim part for? As I understand it, gvim - and only gvim will work with the arguments - is used to get PWD, for which that exact environment variable exists ... Why? Or is it trying to open a temporary buffer file like many editors do to keep the changes in case the application crashes? Why is it not handling that itself?
Weirdly, that gvim function just hangs somewhere around the middle. Something about those files being opened is causing weird problems.
No idea how to go from here. This is a great project, just unfortunate that it doesn't work for me...

@iron-udjin
Copy link

gvim

I don't have GVim installed and it somwhow works...

@leg7
Copy link

leg7 commented Oct 20, 2024

The issue is due to my wayland compositor Hyprland. I went as far as 2022 versions and gf still wouldn't open.

I tried opening the latest version in Sway and it worked right away. Also opening it with gamescope worked on hyprland although the resolution is fed.

I still haven't found a way to open it correctly in hyprland.

@bragadzilla
Copy link

This does seem to only happen in Hyprland,I could not find any way to get it to open a window. There doesn't seem to be any incentive to debug this on the Hyprland side - hyprwm/Hyprland#8695

@nakst
Copy link
Owner

nakst commented Jan 13, 2025

gvim doesn't need to be installed to run gf2. You can ignore any messages about it. It's just trying to synchronize the file/line position with gvim if it's running. If it isn't, nothing happens.

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

6 participants