Closed 0thernet closed 8 years ago
This happens when we have an empty note undeleted (so if you want to avoid this problem right now, remove empty notes). Thanks for reporting it.
looks like that worked, thanks!
Ah that was a hack to avoid the bug. I'll reopen the issue and fix it in a right way. Thanks!
When "Enable Lunr Pipeline" is off, and when the body is empty, the error occurs.
lunr.js.
this._fields.forEach(function (field) {
var fieldTokens = this.pipeline.run(lunr.tokenizer(doc[field.name]))
console.log(fieldTokens); // when body is empty, it gives [""], not [].
docTokens[field.name] = fieldTokens
lunr.SortedSet.prototype.add.apply(allDocumentTokens, fieldTokens)
}, this)
This errors pops up when searching regardless of whether "Enable Lunr Pipeline" is on.
Atom Version: 1.0.13 System: Mac OS X 10.10.5 Thrown From: nvatom package, v0.8.1
Stack Trace
Uncaught TypeError: Cannot read property 'tf' of undefined
Commands
Config
Installed Packages