Closed alexhagen closed 6 years ago
I have exactly the same issue. Autocomplete-Bibtex used to work just fine, but when I changed the location of my bib-file and added more entries it stopped working
I have absolutely no idea why, but after updating a couple of packages, autocomplete-bibtext works again without a problem. Thx for the awesome package by the way!
Sry, I was to quick with the second comment: when I try to change the location of the bibtex file I get the same error as described above. For some reason, autocomplete-bibtex seems to cached some old bibtex file. I replaced the bibtex file with a newer version containing more entries, but those are not loaded
It does cache the file to speed up loading, however it should detect if the new file has a more recent modified date. Check the modification date of your files. Are they maybe stored on a network drive?
On 27 Mar 2017 18:41, "Harlecin" notifications@github.com wrote:
Sry, I was to quick with the second comment: when I try to change the location of the bibtex file I get the same error as described above. For some reason, autocomplete-bibtex seems to cached some old bibtex file. I replaced the bibtex file with a newer version containing more entries, but those are not loaded
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/apcshields/autocomplete-bibtex/issues/75#issuecomment-289413624, or mute the thread https://github.com/notifications/unsubscribe-auth/AAtYVP4b3iRoJncWFuezvwV_NojQ8WlSks5rp43_gaJpZM4Lx3Pu .
Hey, the file is stored in a dropbox folder on my local drive. Strangely, when I change the path, to a different file, I get the 'undefined' length error. When I ignore it and restart Atom, it loads my old bibtex file. My bibtex file is generated by Mendeley, same as your test example. Thx for any help!
Here is the error message I get:
[Enter steps to reproduce:]
Atom: 1.14.1 x64 Electron: 1.3.13 OS: Mac OS X 10.11.6 Thrown From: autocomplete-bibtex package 0.7.0
Uncaught TypeError: Cannot read property 'length' of undefined
At /Users/username/.atom/packages/autocomplete-bibtex/lib/provider.coffee:101
TypeError: Cannot read property 'length' of undefined
at ReferenceProvider.module.exports.ReferenceProvider.buildWordList (/packages/autocomplete-bibtex/lib/provider.coffee:101:5)
at ReferenceProvider.buildWordList (/packages/autocomplete-bibtex/lib/provider.coffee:1:1)
at ReferenceProvider.module.exports.ReferenceProvider.buildWordListFromFiles (/packages/autocomplete-bibtex/lib/provider.coffee:146:23)
at ReferenceProvider.buildWordListFromFiles (/packages/autocomplete-bibtex/lib/provider.coffee:1:1)
at /packages/autocomplete-bibtex/lib/provider.coffee:27:8
at /app.asar/src/config.js:635:20
at Function.module.exports.Emitter.simpleDispatch (/app.asar/node_modules/event-kit/lib/emitter.js:25:14)
at Emitter.module.exports.Emitter.emit (/app.asar/node_modules/event-kit/lib/emitter.js:129:28)
at Config.module.exports.Config.emitChangeEvent (/app.asar/src/config.js:826:29)
at Config.module.exports.Config.setRawValue (/app.asar/src/config.js:612:19)
at Config.module.exports.Config.set (/app.asar/src/config.js:227:14)
at SettingsPanel.module.exports.SettingsPanel.set (/app.asar/node_modules/settings-view/lib/settings-panel.js:200:28)
at /app.asar/node_modules/settings-view/lib/settings-panel.js:262:26
at Function.module.exports.Emitter.simpleDispatch (/app.asar/node_modules/event-kit/lib/emitter.js:25:14)
at Emitter.module.exports.Emitter.emit (/app.asar/node_modules/event-kit/lib/emitter.js:129:28)
at /app.asar/node_modules/text-buffer/lib/text-buffer.js:1368:25
advanced-open-file 0.16.6
atom-runner 2.7.1
autocomplete-bibtex 0.7.0
autocomplete-python 1.8.62
busy-signal 1.3.0
file-icons 2.1.1
Hydrogen 1.7.0
intentions 1.1.2
language-latex 1.0.0
latex 0.42.4
latexer 0.3.0
lazy-motion 0.7.0
linter 2.1.2
linter-chktex 1.3.0
linter-flake8 2.1.5
linter-python-pep8 0.2.0
linter-ui-default 1.2.1
markdown-folder 0.5.0
markdown-preview-plus 2.4.9
pdf-view 0.57.0
platformio-ide-terminal 2.5.0
project-manager 3.3.4
vim-mode-plus 0.84.1
should be fixed in development version, testing is welcome
[Enter steps to reproduce below:]
Atom Version: 1.13.1 Electron Version: 1.3.13 System: Ubuntu 16.04.1 Thrown From: autocomplete-bibtex package, v0.7.0
Stack Trace
Uncaught TypeError: Cannot read property 'length' of undefined
Commands
Config
Installed Packages