Closed wrigleyster closed 6 years ago
To temporarily solve this just copy the file from /home/user/.config/sublime-text-3/Packages/Settings/orgmode_store.bin.gz
into /opt/sublime_text_3/Settings/orgmode-store.bin.gz
.
Also, give it permissions so that the user you're running Sublime with can access it.
LE: If the folder doesn't exist, just do this:
sudo mkdir /opt/sublime-text-3/Settings
sudo touch /opt/sublime-text-3/Settings/orgmode_store.bin.gz
sudo chown user: /opt/sublime-text-3/Settings/orgmode_store.bin.gz
and restart Sublime.
That's all.
This commands as workaround for this bug.
sudo cp ./orgmode-store.bin.gz /opt/sublime_text/Settings/orgmode-store.bin.gz
sudo chown -R user:user_main_group /opt/sublime_text/Settings/orgmode-store.bin.gz
But how about "right" method of this bug correction? Maybe rewrote this piece of code from orgmode_store.py:
def __init__(self, *args, **kwargs):
self.debug = False
self.db = {}
self.store = join(
abspath(sublime.packages_path()),
'Settings',
'orgmode-store.bin.gz')
try:
makedirs(dirname(self.store))
except:
pass
try:
with GzipFile(self.store, 'rb') as f:
self.db = load(f)
except:
self.db = {}
With kind regards.
Think we got a fix here: fa487b1a493afcaabae4a640671b66170b814fb4
This is really quick and good job. Thank you.
I run Linux w/ sublime text v3099 I get this error message every time I launch Sublime Text since I installed orgmode.
The gz it is trying to find I believe is located at:
/home/user/.config/sublime-text-3/Packages/Settings/orgmode_store.bin.gz