Roam-Research / issues

Roam Research - A note-taking tool for networked thought.
https://roamresearch.com/
304 stars 7 forks source link

Sidebar won't open and crashes Roam #595

Open martinweston333 opened 3 years ago

martinweston333 commented 3 years ago

Describe the bug

A clear and concise description of what the bug is.

Every time I shift-click a page to open it in the sidebar I get this error message:

image

This has been going on for around 5 days now.

I have tried closing all tabs, logging in and out, clearing my chrome cache etc. If applicable, add screenshots to help explain your problem. You can paste them in here and they will be uploaded automatically.

If you have a video of you experiencing the bug, that is also super helpful!

To Reproduce

Steps to reproduce the behavior:

  1. Go to '...' Daily note or any page
  2. Click on '....' Shift click on a page to open in sidebar
  3. Scroll down to '....'
  4. See bug Error screen seen above

System Information:

Additional context

Add any other context about the problem here.

richardlm commented 3 years ago

I have exactly the same problem. Raised with Roam Support by email on Friday 6th Nov. No fix yet. I've exported my graph as EDN and thinking of importing to a new graph to see if that fixes it... UPDATE: Restoring EDN to a new graph did not work - trying to open a sidebar still crashes Roam.

roamresearch commented 3 years ago

I'm experiencing the same problem for a couple of days now

jmohsenin commented 3 years ago

I have the same problem, reproducible across all browsers, even after clearing all website data/etc. On MacOS 10.15.7, latest Chrome/Safari/Firefox, Roam version 0.7.5-41613cc4

martinweston333 commented 3 years ago

Still no response from Roam...

Jerryliang123 commented 3 years ago

Hello, I find a solution for this

  1. export edn
  2. use editor to open edn file
  3. find words ":right-sidebar-pinned"
  4. delete relevent contents then works.😁😁
richardlm commented 3 years ago

UPDATE The edit I describe below did not work for me. Resulted in a Roam parsing error when I restored the EDN..

Hi @Jerryliang123 - This is good news! I've found ":right-sidebar-pinned" in my EDN but the structure of EDN isn't clear so I'm not sure how much after it I can delete. The phrase is followed by an open curly bracket so I'm guessing I can delete everything between that curly bracket and its matching close bracket. This is the code I have: :right-sidebar-pinned {"block-LE5ysnbit" {:window-id "block-LE5ysnbit", :block-uid "LE5ysnbit", :type :block, :pinned? true, :collapsed? true, :order 1, :content-id :log}} So do I delete: "block-LE5ysnbit" ... :log} Thanks.

jmohsenin commented 3 years ago

@Jerryliang123's solution is right, but took me a few tries to get right:

  1. ... menu → ExportEDN format
  2. Open EDN file in a text editor
  3. Find the right-sidebar-pinned block and delete the entire block including the preceding commma, for me that looked like deleting , :right-sidebar-pinned {"uuidc55321ee-b8cd-484c-839c-83486e5e110d" {:mentions-uid "2vgNhcn0R", :type :mentions, :pinned? true, :collapsed? false, :window-id "uuidc55321ee-b8cd-484c-839c-83486e5e110d", :order 0, :content-id "2_efUMfx1"}
  4. Start a new Roam graph → Graph SettingsRestore graph → Restore with EDN file
  5. Confirm that the sidebar is working again with the new graph.
  6. If so, go back and restore original graph.

I would strongly recommend testing restore on a new graph, the first couple times I tried this I messed it up and couldn't load my graph properly.

@richardlm I think you need to edit a slightly different block then the one you edited, see # 4.

richardlm commented 3 years ago

@jmohsenin Thanks for the clarification, but I've got three instances of 'right-sidebar-pinned in my EDN file. One of these has a comma preceding it, the other 2 do not. But without knowing how to parse an EDN file it is difficult to know what should be deleted and what left. Looks like I'm left waiting for a fix from Roam.

jmohsenin commented 3 years ago

@richardlm I had multiple instances too, I just deleted them all, and deleted the preceding period only when it was going to be trailing (e.g. would leave ,] after deleting).

martinweston333 commented 3 years ago

Thanks for your work on this, guys. How do I edit an .edn file on Windows? I have opened it as a text file but I am unable to save it as a .edn file and only as a text file.

Thanks!

martinweston333 commented 3 years ago

AHAH worked it out. THANK YOU!!!