-
Notifications
You must be signed in to change notification settings - Fork 15
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
[BUG] Clicking in the table of contents doesn't update the article view sometimes #39
Comments
Hey @ThomasFrans! Upon further testing (I also used the Linux Kernel page) it seems Selecting an item that is higher than the currently selected item also works. The thing that is strange here is that the only thing that doesn't work is selecting an item that is below the current item when you aren't at the top of the page. I'll work on fixing this as soon as possible |
Yes, I honestly don't know why it's not there yet. |
As pointed out in #39 a section for general information (like version and installation method) is missing in the current bug report issue template. This adds the section
This fixes the bug described in #39 and adds mouse support to the article view
I've uploaded a patch that should fix the issue. Until the next version is released, you can use it by installing wiki-tui from the git repo. cargo install --git https://github.com/builditluc/wiki-tui Does this patch fix the issue for you? |
Hm, that's weird. |
Where do I find the crash report when I installed through Cargo? |
When wiki-tui crashes, it creates a crash report in the current working directory |
That's weird. Maybe the problem is with cargo installing it from the git repository (I've never tried |
I have the previous version on my system as I made a AUR package for it (which is in the aur now 😉) and that one works. So it must be something in the new fix... |
Hm that's weird because I cannot reproduce this behaviour |
Would a video showing the problem help? |
Great idea but without the crash report (which wiki-tui somehow doesn't generate? very weird) it wouldn't be much of a help |
I'm guessing it has something to do with the mouse support (that's the only change I made that affects the event system, aka what happens when you press a key). |
Not even that one is working. It also crashes and shows the same behavior as the new commit. I don't know what is causing this, cause the 0.4.8 release is working flawlessly. |
Just tried the 0.4.8 release with a local build (cargo run), and it works, even without installing. I thought maybe it was a problem with the fact that it wasn't installed, but expected to be installed. There must be a commit between that one (d5fabf2) and the current one that causes this... |
Okay, so I've just looked at the diff and the only logical conclusion I've come to is that the keybinding thing (a feature I've added that lets you remap certain actions) is broken on some machines |
I'll look further into this and try to reproduce the bug (because on my machine it works somehow), then I'll work on a fix |
Jup, that fixes it! |
Thanks to you I know what happens, with the keybindings thing you can remap the keys via the configuration file. The problem here is: If you don't remap the key it creates an infinite event loop and this is why it throws a "stack overflow" error |
And because only the "down" action uses this (I forgot the other ones) only down crashes the program |
Until I've fixed this you can "hack" your way around this by remapping the down key in your configuration file: [keybindings]
down.key = "j" |
I'll create a new issue for the keybinding error |
I've linked the PR with the patch to this issue so it'll be closed once merged. Thank you for your bug report and help in finding the issue! |
Describe the bug
When clicking on some parts of the table of contents on the right, the view sometimes doesn't go to that section. I don't see when it works and when it doesn't, but it seems to be pretty random.
To Reproduce
Expected behavior
The view should follow the clicked section on the table of contents.
Additional context
Latest version, installed with Cargo (There should probably be a section in the template for this information :))
Checklist
CONTRIBUTING.md
The text was updated successfully, but these errors were encountered: