Desktop: Extensions Broken on Linux

Created on 9 Nov 2020  Â·  6Comments  Â·  Source: standardnotes/desktop

Hi I have been using the Snap version of the app for a while now and recently we had that change where we had to put in this command:

snap connect standard-notes:password-manager-service

I don't think it was right after that entered that, but within a day or so all of my extensions on my Linux computers have broken. I only receive this message:

The extension was not found on your system, possibly because it is still downloading. If the extension doesn't load, try uninstalling then reinstalling the extension.

I've uninstalled, reinstalled and completely removed the snap and reinstalled that too. Nothing seems to fix the issue. I also downloaded the AppImage and receive the same issue.

From running the AppImage it via the terminal I receive this in the terminal when trying to enable an extension:

PackageManager: received sync event for: Bold Editor (1.1.0) (deleted: undefined)
PackageManager: received sync event for: Bold Editor (1.1.0) (deleted: undefined)
PackageManager: Checking for update for Bold Editor
Latest: 1.1.0 | Installed: 1.1.0
PackageManager: Checking for update for Bold Editor
Latest: 1.1.0 | Installed: 1.1.0

On the snap version, I run the web developer console and receive this:

Failed to load resource: the server responded with a status of 404 (Not Found)
http://127.0.0.1:45653/Extensions/org.standardnotes.bold-editor/dist/index.html

This only seems to be happening on Linux. I have an Ubuntu 20.04 and Fedora 33 install and both are exhibiting this behavior. When on my Mac, everything seems fine and normal.

Let me know if I can help get you any other logs, info, etc.

Most helpful comment

This seemed to resolve itself today. Not sure why. Could be that I restarted Ubuntu for the first time in a week or so after applying updates daily. Doesn't make sense to me why my Fedora install was messed up too though.

All 6 comments

Hey @davedew, from your log it looks like the app is assuming you have the Bold Editor installed, which would not track with your experience.

http://127.0.0.1:45653/Extensions maps to the app's _Extensions_ folder, located inside the data directory. Inside that folder is also a mapping.json file, which is what the app refers to when tracking what extensions are installed on your system. My suspicion is that for whatever reason there's a desync between that file and the actual state of your filesystem.

Could you go to the app menu > Help > Open Data Directory, then look at the contents of the _Extensions_ folder there, see if you find org.standardnotes.bold-editor, or other similar folders? Do you also see a mapping.json file?
There's no personal info in that file aside from which extensions you have installed, but you don't need to share it if you don't want to.

Hi @baptiste-grob, thanks for your message. I found the folder and there are extension directories (including the Bold Editor) and a mapping.json file. I've included a screenshot and the mapping.json contents. Thanks for any help!

extensions

{
  "b4dba62d-aabe-4e36-aa12-059701e36f87": {
    "location": "Extensions/org.standardnotes.theme-titanium",
    "version": "1.2.2"
  },
  "063682f8-5ab0-4296-bd5d-4a1a56c36ed0": {
    "location": "Extensions/org.standardnotes.simple-task-editor",
    "version": "1.3.5"
  },
  "f5b0ef6c-fde6-4bfd-b0d4-72f68984c074": {
    "location": "Extensions/org.standardnotes.advanced-markdown-editor",
    "version": "1.3.9"
  },
  "8966043d-14f0-4dac-9ccd-b9112575e0d1": {
    "location": "Extensions/org.standardnotes.simple-markdown-editor",
    "version": "1.3.6"
  },
  "19e06307-d041-49a3-a91e-edb285ce86eb": {
    "location": "Extensions/org.standardnotes.fancy-markdown-editor",
    "version": "1.3.4"
  },
  "52d25eda-4934-4d25-80ca-2f3ff407ae5a": {
    "location": "Extensions/org.standardnotes.bold-editor",
    "version": "1.1.0"
  },
  "fabdd23e-ea75-4cf6-9b33-0d545a2e12b7": {
    "location": "Extensions/org.standardnotes.folders",
    "version": "1.3.5"
  },
  "841a29d7-b2f5-4ccc-a3c7-df0c61f3f286": {
    "location": "Extensions/org.standardnotes.code-editor",
    "version": "1.3.5"
  }
}

The fact that this only doesn't work on your Linux machines is really strange to me… In any case, here's something you can try:

  1. Quit the app
  2. Delete everything in the Extensions folder
  3. Open the app

This will make the desktop app reinstall every extension you had. Let me know if that solves it.

Thanks, tried this. The folder filled back up as it was, but no extension will load. They indicate as installed and activated in the app, but I still get the same issue.
extensions-in-app

This seemed to resolve itself today. Not sure why. Could be that I restarted Ubuntu for the first time in a week or so after applying updates daily. Doesn't make sense to me why my Fedora install was messed up too though.

Sorry for not getting back to you sooner. I'm puzzled as well but am glad that you found a solution 🙂

Was this page helpful?
0 / 5 - 0 ratings

Related issues

JSkier21 picture JSkier21  Â·  6Comments

quirkyheadband picture quirkyheadband  Â·  3Comments

MorgothSauron picture MorgothSauron  Â·  5Comments

dymdipi picture dymdipi  Â·  5Comments

popey picture popey  Â·  3Comments