varkor / quiver

A modern commutative diagram editor for the web.
https://q.uiver.app
MIT License
2.4k stars 79 forks source link

Url too long (project is gone and can't retrieve using the shared url) #163

Closed NimaJafariComp closed 1 year ago

NimaJafariComp commented 1 year ago

Hi, quiver is a wonderful website i use for doing research and olog diagrams but recently i had an issue with it, i had somewhat large horizontal diagram and it was fine until saving and getting URL. I tried to save it and open it again, but it didn't open and said url to long, so the project was gone and I had to redo it. since I'm going to make other diagrams, could u add the feature or a solution for this long urls? the more information on ologs will cause longer url, please add support for it. thanks

varkor commented 1 year ago

Could you share the URL for which there's a problem? There's no length limit on URLs in quiver, so I suspect there's some other issue.

NimaJafariComp commented 1 year ago

Could you share the URL for which there's a problem? There's no length limit on URLs in quiver, so I suspect there's some other issue.

https://tinyurl.com/557mzx9d This was a somewhat bigger project compared to other ones but as I saved it and tried to send it for my professor I faced that issue. Its like I create the diagram and as long as I haven't closed the browser tab it would fine but if I save it and take the sharable link there is no way to go back to it. Thanks for checking this issue out.

varkor commented 1 year ago

I had no idea this error was possible – thank you for bringing it to my attention. It looks like it's a restriction imposed by GitHub Pages, which is where https://q.uiver.app/ is hosted.

For now, if you download the source to quiver, you should be able to run it locally, where you won't have these URL length restrictions. You should be able to open the diagram that's too long by copying and pasting the ?q=CODE part of the broken URL into the local URL. (Your diagram should not be lost.)

I'll try to find a way to fix the issue on https://q.uiver.app/ itself, too, but I'm not sure yet how long this will take me.

NimaJafariComp commented 1 year ago

I had no idea this error was possible – thank you for bringing it to my attention. It looks like it's a restriction imposed by GitHub Pages, which is where https://q.uiver.app/ is hosted.

For now, if you download the source to quiver, you should be able to run it locally, where you won't have these URL length restrictions. You should be able to open the diagram that's too long by copying and pasting the ?q=CODE part of the broken URL into the local URL. (Your diagram should not be lost.)

I'll try to find a way to fix the issue on https://q.uiver.app/ itself, too, but I'm not sure yet how long this will take me.

I need ur help again, so i cloned the repo and I'm using quiver on my local desktop, i tried to retrieve the diagram that was giving me that url too long problem and it opened but there is an issue if u can help me with that, i used "double \" in my text for newlines and for some reason in the local version of quiver \newline or "double \" don't work, i tried to find a way but none of them work; it just shows the text box in red. thanks

varkor commented 1 year ago

Yes, newlines with \\ were never supposed to work in quiver, since it's not valid syntax in tikz-cd. This bug has been fixed in the latest version of quiver, which is not yet live. You'll have to find some other solution, e.g. one of those suggested here.

NimaJafariComp commented 1 year ago

Yes, newlines with \\ were never supposed to work in quiver, since it's not valid syntax in tikz-cd. This bug has been fixed in the latest version of quiver, which is not yet live. You'll have to find some other solution, e.g. one of those suggested here.

yes but even those suggestions, they are using \\ to go to the next line, It works on the online quiver version but not on the local version, I tried copying the same thing suggested in stack overflow and it didnt work; check the attached picture please. image

NimaJafariComp commented 1 year ago

I want the box to go the next line but it doesn't work on local quiver

varkor commented 1 year ago

@NimaJ2003: oh, I see, I hadn't realised that was broken. I shall look into both these issues this week.

varkor commented 1 year ago

This has been fixed in https://github.com/varkor/quiver/commit/6c8e0503578d1844ed5dea7acd352491e41335d4. It will be pushed to the live version of quiver soon. You should be able to load your old diagrams that were too long by replacing the ? in the URL with #.

varkor commented 1 year ago

@NimaJ2003: the update is now live.