kotlin-graphics / imgui

Bloat-free Immediate Mode Graphical User interface for JVM with minimal dependencies (rewrite of dear imgui)
MIT License
594 stars 37 forks source link

A lot of bugs and exceptions when cloning #160

Open s15n opened 3 years ago

s15n commented 3 years ago

I cloned the repository into IntelliJ and ran it. At first it seemed to work well, but then I ran into a lot of things that didn't work. To enumerate those bugs I found:

elect86 commented 3 years ago

Thanks for reporting, you can clone the repo and PR some fixes, otherwise I'll go through the list in the next days

s15n commented 3 years ago

I fixed the first two bugs and created a pull request. Perhaps what I did is not intended, so it's just my approach. And for the first one I actually just commented out the problematic byte. So I think there are better solutions for that one. Apart from that I have one question: How do I change the font?

elect86 commented 3 years ago

I fixed the first two bugs and created a pull request.

Thanks

Perhaps what I did is not intended, so it's just my approach.

It's absolutely fine

And for the first one I actually just commented out the problematic byte. So I think there are better solutions for that one.

We can stay like this for the moment till some other has a better solution or some other problems rise

Apart from that I have one question: How do I change the font?

ImGui.io.fonts.addFontFromFileTTF("fonts/ArialUni.ttf", 16f, glyphRanges = imgui.font.glyphRanges.japanese)

s15n commented 3 years ago

@elect86 Do you have these bugs, too?

elect86 commented 3 years ago

@elect86 Do you have these bugs, too?

Going through.

I already fixed a couple regarding typing in colorEdit widgets

What do you mean by "Dropdown menus"?

All the sliders appear to work, was it your fix I guess?

Also, resizeCallback now doesnt crash anymore, although it needs some additional fixing

s15n commented 3 years ago

I fixed the bug regarding the dropdown menus, too (e.g. the "examples" tab in the menu bar). I think I fixed all bugs with the sliders. Also, there is one bug I forgot: The Font tab in the style editor crashes the program. But I think I can fix this

elect86 commented 3 years ago

Unsigned sliders are also fixed

Edit: and drag&drop as well

s15n commented 3 years ago

Could you please fix these bugs in the docking branch as well

elect86 commented 3 years ago

yeah, I'll merge them back there

elect86 commented 3 years ago

Edit: it looks like I've already done this yesterday, have you pulled?

s15n commented 3 years ago

I pulled it now and it's working Is it possible to make the windows undecorated when using viewports?

elect86 commented 3 years ago

yeah, that's a bug I still have to fix..

s15n commented 3 years ago

I think there are lots of bugs with docking and viewports. How do I dock a window without using the dockspace of the demo-window?

elect86 commented 3 years ago

I think there are lots of bugs with docking and viewports. How do I dock a window without using the dockspace of the demo-window?

Hi @FauxKiwi,

sorry for the delay, I was kept busy by other stuff

Can you list me some bugs and elaborate what did you mean exactly by that?

s15n commented 3 years ago
elect86 commented 3 years ago
* Normally, you can't even open the dockspace: NoSuchElemtException: List is empty. This is related to the menu bar. When I comment out the menu bar, there are more bugs:

* You can't resize docked windows

* When you docked a window and are using an imgui.ini, restarting the program throws an NumberFormatException

* When you dock one window onto another, they begin to move (?)

table branch has been finally merged on the original repo, I need to finish to sync that first so that it doesn't lag much behind, then I'll come back to these (master/1.80 wip have higher priority than docking). Also there are the tests, but there I'm having issue with coroutine implementation, I'll see if I can fit these bug fixing in between first

elect86 commented 3 years ago

Also, if you want step in and try to fix them yourself, do not hesitate

I'll offer you a pizza at the end :d

s15n commented 3 years ago

Also, there is a bug with imgui.ini: NumberFormatException: For input string: "Space ID=0x3bc79352 Window=0x4647b76e Pos=0"
I will see what bugs I can fix but I'm not so much into the project than you are. So often I don't exactly know the problem

elect86 commented 3 years ago

which branch?

s15n commented 3 years ago

docking, when you docked a window