-
-
Notifications
You must be signed in to change notification settings - Fork 267
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
exporting selection doesn't work #1199
Comments
Is it only that mode or all export modes (export document or export document page) that don't work with any file ? Could that be a flatpak file permission issue ? |
yes I am able to export documents but not selection and no error message is show in UI it just doesn't do anything...when I eport document by selecting a file a message is shown "exported successfully" but while exporting selection it shows nothing no error message nothing. |
So it says "exported successfully" but there is no file when you do "open in file manager" (though that currently opens the parent folder, not highlight the exported file) ? |
It says "exported successfully" Only when I export document or document pages and I am able to view it generates after "exported sucessfull" Message. But when I try to export a selection of my sketch by selecting the file no message is shown and no file is generated... Basically export selection doesn't work for my sketch. Ran it with command line , when I try to export selection by selecting file a critical warning is given. |
After you clicked on the (this would mean the export.rs:854 line to close the dialog did run, and the issue is the block just after, that actually does the saving part) Did you run it with
with the first command and
for the second one (or any other errors that could be of interest) |
yeah I ran it in command line using "flatpak --env=RUST_LOG=rnote=debug --env=RUST_BACKTRACE=1 run com.github.flxzt.rnote" and it shows this error: (rnote:2): Gtk-CRITICAL **: 18:06:35.641: The layout manager of type GtkBoxLayout 0x55dbce144e10 does not create GtkLayoutChild instances this error is shown when i try to export a selection ,exporting document or document pages works fine ...but when i export selection I select the file then click on export and nothing happens. |
2024-09-02.18-14-21.mp4see in this video I try to export selection but nothing happens no message is shown nothing the application doesnt crash ,but if i Run it from cli it shows this error : I am able to export selection in windows but not in linux. |
There is a minute difference. On the two other modes we have `if let Some(file)` then we call `span_future_local` This was the reverse for the selection export. Trying to see if this fixes flxzt#1199 (will only be a style PR otherwise)
So there was a (seemingly) minor difference between the export selection mode and the other two. I've opened a PR that makes this homogeneous between all three modes. Not sure if this will fix the issue, but I'm at a loss if this doesn't (if this doesn't, this will be a style PR) This might have to do with glib::clone failing for some reason and returning I've added a few |
Thanks, It doesn't work with linux only, in windows I was able export selection. |
@ashish111333 Can you install the nightly flatpak following https://github.com/flxzt/rnote/blob/fbd056cde41a24c1d0b25dbeebc06893611661f5/BUILDING.md#nighties https://github.com/Doublonmousse/rnote/actions/runs/10860824536 And check whether this version works or not ? |
@Doublonmousse hey thanks a lot. It's working now ,now when i export a selection I see a popup and I also get the file |
Describe the bug
made a sketch and tried exporting it to png,svg using selection tool but it fails and doesn't export ...no error is show in the UI like "exporting failed" it just doesn't export.
To Reproduce
Steps to reproduce the behavior:
simply select your sketch using all strokes and try to export it in png,svg it doesn'k work,fails without warning.
Expected behavior
I should be able to export the selected area of my sketch using selection tool to the formats png,svg.
Console Output
(rnote:2): Gtk-WARNING **: 00:31:33.440: No IM module matching GTK_IM_MODULE=cedilla found
(rnote:2): Gtk-CRITICAL **: 00:33:14.868: The layout manager of type GtkBoxLayout 0x5593ecd63090 does not create GtkLayoutChild instances
Screenshots
selected this whole sketch and tried to export it to png,svg it fails.
selected this whole sketch and tried to export it to png,svg it fails.
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: