Aerijo / autocomplete-latex

A LaTeX autocomplete provider for Atom
MIT License
10 stars 2 forks source link

Uncaught TypeError: Cannot read property 'push' of undefined #21

Closed Slaitroc closed 3 years ago

Slaitroc commented 3 years ago

Hi I tried finding someone who have had the same issue but nothing came out. I'm new to atom and coding, i have just few basic concepts. I'm trying to create my own snippets on atom through autocomplete-latex because the "canon" way to do seems to be incompatible with latex math-mode. Can anyone help me to solve this packages' error?

update: Autocomplete-latex seems to work normally and snippets work. But atom still shows up this error.

Atom: 1.58.0 x64 Electron: 9.4.4 OS: Mac OS X 10.14.6 Thrown From: autocomplete-latex package 1.0.0

Stack Trace

Uncaught TypeError: Cannot read property 'push' of undefined

At /Users/slaitroc/.atom/packages/autocomplete-latex/lib/completions-package.js:46

TypeError: Cannot read property 'push' of undefined
    at Package.addFiles (/packages/autocomplete-latex/lib/completions-package.js:46:63)
    at PackageRegistry.registerFiles (/packages/autocomplete-latex/lib/completions-package.js:74:9)
    at /packages/autocomplete-latex/lib/completions-package.js:242:21
    at Function.simpleDispatch (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:1186925)
    at Emitter.emit (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:1188366)
    at TlmgrPackageFiles.emitPackage (/packages/autocomplete-latex/lib/completions-package.js:306:20)
    at TlmgrPackageFiles.appendChunk (/packages/autocomplete-latex/lib/completions-package.js:327:14)
    at /packages/autocomplete-latex/lib/completions-package.js:290:14)
    at Socket.emit (events.js:223:5)
    at addChunk (_stream_readable.js:309:12)
    at readableAddChunk (_stream_readable.js:286:13)
    at Socket.Readable.push (_stream_readable.js:224:10)
    at Pipe.onStreamRead (internal/stream_base_commons.js:181:23)

Commands

     -2:25.6.0 settings-view:open (input.hidden-input)

Non-Core Packages

autocomplete-latex 1.0.0 
language-latex 1.2.0 
latex 0.50.2 
latex-autocomplete 1.1.1 
pdf-view 0.73.0