vctfence / scrapbee

Mozilla Public License 2.0
39 stars 23 forks source link

Scrapbee stoped loading scrapbook's rdf #44

Closed balbirthomas closed 3 years ago

balbirthomas commented 3 years ago

Hi

I have my scrapbee files and the old scrapbook files in separate directories (including their corresponding rdf files). In the scrapbee drop down menu I could select between the two . I am currently using scrapbee 2.1.0 with backend (from git) 1.7.3. I find the scrapbook option is no longer present in the dropdown menu. Nothing else has changed the scrapbee configuration is stil the same and both the paths (to rdf files) are valid. I see no errors in the log. How can I debug this ?

Oddly enough. I do see "scrapbook" in the node mover tool but not in the dropdown menu. So I can trying moving nodes from old scrapbook to scrapbee but can not read the old scrapbook content.

is there any way to merge my old scrapbook.rdf content into the new scrapbee.rdf and just move all the folders under "scrapbook/data/" into "scrapbee/data". ? I am hesitant to use the "node mover" tool because of the warnings listed on its page.

vctfence commented 3 years ago

Hi, so you have 2 rdf(s) set, and only 1 showed in sidebar dropdown list right?

If possible, can you show me your rdf setting?

Please feel free to use Node mover if you have backed up your rdf file and data folder.

vctfence commented 3 years ago

Hi, also, you can try to remove "scrapbook rdf" from settings and save. Then add it back and save to see if it appears.

You can even have repeated items in rdf settings.

balbirthomas commented 3 years ago

Hi ,

Yes I have 2 RDFs set and only 1 showed up in the sidebar drop down list !

Shown below is a screenshot of the RDF settings. The paths are correct since I copied and pasted them and rechecked them. rdf

I did remove the "scrapbook.rdf" clicked "save", shutdown the browser. After restarting the browser I added the "scrapbook.rdf" again clicked save and then shutdown the browser. After restarting i still see a single item in the drop down list.

Here is what the log looks like with both the RDF files set


[info] version = 2.1.3
[info] browser = Firefox 78.3.0
[info] platform = Linux x86-64
[info] start web server: port = '9900'. pwd = ''
[info] connect web server: connected, version = 1.7.3
[info] show rdf list
[info] switch to rdf "/home/bt/docs/scrapbee/scrapbee.rdf"
[info] rdf loaded in 135ms
[info] tools initiated successfully.
[info] tools initiated successfully.

The contents of .mozilla/native-messaging-hosts/scrapbee_backend.json is

{
  "allowed_extensions": [
    "scrapbee@scrapbee.org"
  ],
  "description": "ScrapBee backend",
  "name": "scrapbee_backend",
  "path": "/home/bt/docs/scrapbee/scrapbee_backend",
  "type": "stdio"
}

The path to the scrapbee backend is correct.

The only other thing I have noticed is that in /home/bt/docs/scrapbook this is a cache.rdf . I do not know what it is and why it is there . Removing it made no difference though.

Let me know if you need any further information.

vctfence commented 3 years ago

Hi, can you export configuration (will be file named scrapbee_configure.json) and show me the content? You can find the export button beside save button.

And, please try to set more than 2 rdf(s) to see if there is still single item showed in the dropdown,

thanks.

vctfence commented 3 years ago

Also, please try to set 2 rdfs without /home/bt/docs/scrapbook/scrapbook.rdf to see what happens.

balbirthomas commented 3 years ago

Hi, Here are the results -

  1. scrapbee_configure.json with scrapbee and scrapbook RDFs.

  2. scrapbee_configure.json with two scrapbee RDFs and one scrapbook RDF. The second and third items (scrapbook and test) were not shown in the drop down menu. Configuration shown below

threerdf

  1. After removing scrapbook.rdf and adding a second scrapbee.rdf(as shown below), I still did not see the second item (test) in the drop down menu.

without_scrapbook

I always shutdown and restarted the browser after saving each configuration change. After starting I always checked that the new configuration was in effect.

vctfence commented 3 years ago

Hi, sorry for I can not reproduce the problem so far.

uuu

To know what causes the problem, I pushed new commit with "debug log" to get more clue.

Please try Scrapbee from code with this new feature. Refer to https://github.com/vctfence/scrapbee/wiki/Debug for loading add-on from code.

Turn on debug in Configure->Behavior, reload the add-on, then you'll see some debug info in log window, below is what I see:

vvv

Please show your outputs, thanks.

touwys commented 3 years ago

Hi Victor

Thanks for your email.

Please read my notes on the attached screenshot which I took when I tried to figure out how to install the debug code. I am afraid I am not capable of doing that. I could also not interpret the two screenshots you published.

Thank you for trying. Hopefully, there is another way of doing this?

Pierre

-----Original Message----- From: vctfence notifications@github.com To: vctfence/scrapbee scrapbee@noreply.github.com Cc: Subscribed subscribed@noreply.github.com Sent: Thu, 05 Nov 2020 2:11 Subject: Re: [vctfence/scrapbee] Scrapbee stoped loading scrapbook's rdf (#44)

Hi, sorry for I can not reproduce the problem so far.

To know what causes the problem, I pushed new version with "debug log" to get more clue.

Please try Scrapbee from code with this new feature. Please refer https://github.com/vctfence/scrapbee/wiki/Debug for loading add-on from code.

This is what I see:

vvv uuu

-- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/vctfence/scrapbee/issues/44#issuecomment-722042868

vctfence commented 3 years ago

Hi Pierre, The message is not for you, Please click "New issue" to create another issue for your topic, and create new issue for each problem or wish. I'll show you the steps in your new issue.

touwys commented 3 years ago

Yes, thank you, I saw that posted my reply in error. I also have no issues other than those we have already discussed via email.

balbirthomas commented 3 years ago

Hi Victor,

I am not sure if I have understood what you need. But I did select the "debug" checkbox in Scrapbee -> Settings -> tool, then restarted the browser and opened the Scrapbee menu. Then I browsed to about:debugging#/runtime/this-firefox and clicked on "inspect" button beside the Scrapbee item. It brought up Firefox developer tools. I took a screenshot of the errors shown in the developer console window and am pasting it below. Is this what you needed ? If not please clarify what are the steps to capture a full debug log and I will gladly provide them.

debug

vctfence commented 3 years ago

Hi Balbir, please just make sure Configure->Behavior->Debug is on. Then go to log (Scrapbee's own log) to see debug log about the drop down like below:

You may need to refresh the log page (press F5) to show debug logs if debug was off.

balbirthomas commented 3 years ago

Hi Victor, Thank you for clarifying. Attached is Scrabee log.

debug

The paths in the log are correct and those RDF files exists at those paths. However the drop down menu only shows me "Scrapbee" but not "Scrapbook".

balbirthomas commented 3 years ago

Victor I think I have made a mistake. I just realized I am able to access scrapbook using the smaller dropdown (lower right corner of the screenshot below). All this while I was trying to use the drop down in the upper left corner. I do remember always using the dropdown in the upper left corner (beside the the Scrapbee icon) to switch between the two RDFs. My sincere apologies. However no matter which I select "Scrapbook" or "Scrapbee" the drop down in the upper left corner always show a tick mark beside Scrapbee and does not show "Scrapbook" at all. scrapbook If the behavior is as intended then kindly accept my apology and close this bug or permit me to do so.

vctfence commented 3 years ago

Hi Balbir, no problem, any questions are welcome.

The upper left dropdown is "sys" dropdown used to switch between addons and some sys functions.

The lower is Scrapbee's own dropdown "button". A list(menu) will be showed when you click on the button, and you can switch between RDFs there. Once you select an item, the list(menu) hides just like a traditional dropdown:

dropdown

Let me know if you still have problems, thanks.