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

win32 gui build text selection bug #128

Open
pebble2050 opened this issue Jan 7, 2025 · 10 comments
Open

win32 gui build text selection bug #128

pebble2050 opened this issue Jan 7, 2025 · 10 comments
Labels
bug Something isn't working

Comments

@pebble2050
Copy link

step to produce
1.open flow editor a text with some text with normal window size (don't click the windows maximum button)
2.bug 1 => the first line not displayed
3.select blank line below any line with some text
4.bug 2=> the blank line now displaying the text of above the line

the text:

import sys

class Main:
    __slots__ = ()

    @staticmethod
    def main():
        print("Hello World")

the text displayed:
image

@neurocyte
Copy link
Owner

I can't reproduce this here. Could you please make sure you're on the very latest commit and try again. The win32 gui for flow is still very new and in active development.

@neurocyte neurocyte added question Further information is requested and removed question Further information is requested labels Jan 7, 2025
@pebble2050
Copy link
Author

@neurocyte
Thanks for kindly reply. I double checked source version is latest.
The result is same. I am on windows 10.

d:\other\project\flow>git rev-parse HEAD
388943e

flow_CUrK4JmCpW

@neurocyte
Copy link
Owner

And if you resize the window corrects itself?

@pebble2050
Copy link
Author

When windows is resized, the result is more complicated.
Sometimes ok ,sometimes selection cause rand text copy(eg. display text from above or right)

@neurocyte neurocyte added the bug Something isn't working label Jan 7, 2025
@marler8997
Copy link
Contributor

@pebble2050 can you attach your hello.py file? I'm wondering if there is some sort of BOM or something special about it that could be causing the issue.

@marler8997
Copy link
Contributor

Also @pebble2050 what's your zig build command you're using, and what's your host machine? Maybe you could send the output of systeminfo...I'm concerned about those weird characters in your window title.

@pebble2050
Copy link
Author

@marler8997
I am using zig build -Doptimize=ReleaseFast to build
since github not allow to upload .py file, I change hello.py to hello.txt
hello.txt

@pebble2050
Copy link
Author

pebble2050 commented Jan 8, 2025

I tried zig build -Doptimize=ReleaseSafe, the result is same.
The weird characters maybe because my windows 10 system language is Japanese.
This two bug seems somehow related.
The first line is not rendered maybe because line height is not correct calculated(eg. calculated from line 2?)

@marler8997
Copy link
Contributor

marler8997 commented Jan 8, 2025

You need to provide -Dgui to zig build in order to build the GUI version.
Also, the exe itself has been renamed to flow-gui.exe, so maybe you are just running an old version and not realizing it?

@neurocyte
Copy link
Owner

@pebble2050 it's now possible to configure the fontface and fontsize in the latest master commit. You might want to try configuring different fonts and see if your issue is perhaps related to a specific font.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: No status
Development

No branches or pull requests

3 participants