MattFlower / organized

Outlining, scheduling, and todos inside of the Atom Editor
MIT License
114 stars 19 forks source link

Uncaught ReferenceError: options is not defined #32

Open herbmaster opened 6 years ago

herbmaster commented 6 years ago

Archiving throws exception.

[Enter steps to reproduce:]

  1. ctrl-i a

Atom: 1.22.1 x64 Electron: 1.6.15 OS: "Arch Linux" Thrown From: organized package 0.8.1

Stack Trace

Uncaught ReferenceError: options is not defined

At /home/herb/.atom/packages/organized/lib/organized.coffee:807

ReferenceError: options is not defined
    at /packages/organized/lib/organized.coffee:807:95
    at FSReqWrap.oncomplete (fs.js:112:15)

Non-Core Packages

autocomplete-haskell 1.0.1 
busy-signal 1.4.3 
git-plus 7.10.0 
haskell-ghc-mod 2.1.3 
ide-haskell 2.2.0 
ide-haskell-cabal 2.0.4 
intentions 1.1.5 
language-haskell 1.14.3 
language-latex 1.1.1 
language-shakespeare 0.2.2 
latex 0.49.0 
linter 2.2.0 
linter-spell 0.15.0 
linter-spell-latex 0.10.0 
linter-ui-default 1.6.10 
open-terminal-here 2.3.1 
organized 0.8.1 
sync-settings 0.8.3 
tool-bar 1.1.0 
vim-mode-plus 1.20.0 
vim-mode-plus-ex-mode 0.10.2 
anaulin commented 6 years ago

A quick reading of the code suggests that somehow Organized is failing to create a new _archive file if one does not exist yet.

I was able to work around this issue by manually creating an empty archive file first myself:

$ touch /path/to/your/notes/filename.org_archive
[now ctrl-i a works for notes file /path/to/your/notes/filename.org]
MattFlower commented 6 years ago

Thanks for the report, I’ll fix it in the next release.