wende / autocomplete-elixir

Intelligent Elixir autocompletion provider for Atom autocomplete-plus
MIT License
42 stars 11 forks source link

Uncaught TypeError: Cannot read property '0' of null #60

Open jakub-zawislak opened 7 years ago

jakub-zawislak commented 7 years ago

I just wrote:

  name_id = name
  |> Atom.to_string
  |> Kernel.

and got this error.

Atom Version: 1.13.0 Electron Version: 1.3.13 System: Mac OS X 10.12.2 Thrown From: autocomplete-elixir package, v1.5.14

Stack Trace

Uncaught TypeError: Cannot read property '0' of null

At /Users/kuba/.atom/packages/autocomplete-elixir/lib/autocomplete-elixir-provider.coffee:53

TypeError: Cannot read property '0' of null
    at RsenseProvider.module.exports.RsenseProvider.findSuggestions (/Users/kuba/.atom/packages/autocomplete-elixir/lib/autocomplete-elixir-provider.coffee:53:14)
    at /Users/kuba/.atom/packages/autocomplete-elixir/lib/autocomplete-elixir-provider.coffee:32:26
    at /Users/kuba/.atom/packages/autocomplete-elixir/lib/autocomplete-elixir-client.coffee:31:7
    at /Users/kuba/.atom/packages/autocomplete-elixir/lib/alchemide/wrapper.coffee:68:5
    at Socket.fn (/Users/kuba/.atom/packages/autocomplete-elixir/lib/alchemide/wrapper.coffee:89:7)
    at emitOne (events.js:101:20)
    at Socket.emit (events.js:188:7)
    at readableAddChunk (_stream_readable.js:176:18)
    at Socket.Readable.push (_stream_readable.js:134:10)
    at Pipe.onread (net.js:543:20)

Commands

     -1:10.4.0 editor:indent (input.hidden-input)
  2x -1:02.8.0 core:backspace (input.hidden-input)
     -1:00.4.0 core:move-left (input.hidden-input)
     -1:00.3.0 intentions:highlight (input.hidden-input)
     -1:00.2.0 editor:move-to-beginning-of-word (input.hidden-input)
     -0:59.6.0 intentions:highlight (input.hidden-input)
     -0:59.5.0 editor:move-to-end-of-word (input.hidden-input)
     -0:59.3.0 refactor:done (input.hidden-input)
     -0:59.3.0 editor:newline (input.hidden-input)
     -0:51.9.0 intentions:highlight (input.hidden-input)
  2x -0:51.8.0 editor:move-to-beginning-of-word (input.hidden-input)
     -0:51.3.0 editor:move-to-end-of-word (input.hidden-input)
     -0:50.9.0 core:move-right (input.hidden-input)
     -0:46.9.0 editor:select-to-end-of-line (input.hidden-input)
     -0:44.4.0 refactor:done (input.hidden-input)
     -0:44.4.0 editor:newline (input.hidden-input)

Config

{
  "core": {
    "audioBeep": false,
    "disabledPackages": [
      "linter-pylint",
      "spell-check",
      "symbols-view",
      "linter-phpcs"
    ],
    "ignoredNames": [
      ".git",
      ".hg",
      ".svn",
      ".DS_Store",
      "._*",
      "Thumbs.db",
      "*~"
    ],
    "openEmptyEditorOnStart": false,
    "telemetryConsent": "limited",
    "themes": [
      "one-light-ui",
      "one-light-syntax"
    ]
  },
  "autocomplete-elixir": {
    "elixirPath": "/usr/local/bin/elixir",
    "erlangHome": "/usr/local/bin"
  }
}

Installed Packages

# User
atom-autocomplete-php, v0.18.9 (active)
atom-beautify, v0.29.12 (active)
atom-ctags, v5.0.0 (active)
auto-detect-indentation, v1.2.0 (active)
autocomplete-elixir, v1.5.14 (active)
autocomplete-plus, v2.31.2 (active)
autocomplete-python, v1.8.6 (active)
color-picker, v2.2.2 (active)
file-icons, v1.7.19 (active)
highlight-selected, v0.11.2 (active)
intentions, v1.1.2 (active)
js-refactor, v0.7.3 (active)
language-elixir, v0.16.0 (active)
language-elm, v1.5.0 (active)
language-elmx, v1.2.7 (active)
language-vue, v0.21.0 (active)
linter, v1.11.21 (active)
linter-elixirc, v1.1.11 (active)
linter-eslint, v8.0.0 (active)
linter-pep8, v1.3.2 (active)
linter-php, v1.2.0 (active)
linter-phpcs, v1.4.1 (inactive)
linter-pylint, v1.2.2 (inactive)
php-integrator-base, v1.2.6 (active)
php-integrator-refactoring, v1.1.1 (active)
php-twig, v4.0.0 (active)
pigments, v0.34.0 (active)
react, v0.14.2 (active)
refactor, v0.9.2 (active)
remote-sync, v4.1.2 (active)
atom-dark-syntax, v0.28.0 (inactive)
atom-dark-ui, v0.53.0 (inactive)
atom-light-syntax, v0.29.0 (inactive)
atom-light-ui, v0.46.0 (inactive)
base16-tomorrow-dark-theme, v1.4.0 (inactive)
base16-tomorrow-light-theme, v1.4.0 (inactive)
one-dark-ui, v1.8.2 (inactive)
one-light-ui, v1.8.2 (active)
one-dark-syntax, v1.6.0 (inactive)
one-light-syntax, v1.6.0 (active)
solarized-dark-syntax, v1.1.1 (inactive)
solarized-light-syntax, v1.1.1 (inactive)
about, v1.7.2 (active)
archive-view, v0.62.0 (active)
autocomplete-atom-api, v0.10.0 (active)
autocomplete-css, v0.14.1 (active)
autocomplete-html, v0.7.2 (active)
autocomplete-plus, v2.31.2 (active)
autocomplete-snippets, v1.11.0 (active)
autoflow, v0.29.0 (inactive)
autosave, v0.23.2 (active)
background-tips, v0.26.1 (active)
bookmarks, v0.43.2 (active)
bracket-matcher, v0.85.1 (active)
command-palette, v0.39.1 (inactive)
deprecation-cop, v0.55.1 (active)
dev-live-reload, v0.47.0 (active)
encoding-selector, v0.22.0 (active)
exception-reporting, v0.40.0 (active)
find-and-replace, v0.204.5 (active)
fuzzy-finder, v1.4.0 (active)
git-diff, v1.2.0 (active)
go-to-line, v0.31.2 (inactive)
grammar-selector, v0.48.2 (active)
image-view, v0.60.0 (active)
incompatible-packages, v0.26.1 (active)
keybinding-resolver, v0.35.0 (active)
line-ending-selector, v0.5.1 (active)
link, v0.31.2 (inactive)
markdown-preview, v0.159.1 (active)
metrics, v1.1.2 (active)
notifications, v0.65.1 (active)
open-on-github, v1.2.1 (inactive)
package-generator, v1.0.2 (inactive)
settings-view, v0.244.0 (active)
snippets, v1.0.4 (active)
spell-check, v0.68.5 (inactive)
status-bar, v1.6.0 (active)
styleguide, v0.48.0 (active)
symbols-view, v0.113.1 (inactive)
tabs, v0.103.1 (active)
timecop, v0.33.2 (active)
tree-view, v0.211.1 (active)
update-package-dependencies, v0.10.0 (active)
welcome, v0.35.1 (active)
whitespace, v0.35.0 (active)
wrap-guide, v0.39.0 (active)
language-c, v0.54.0 (active)
language-clojure, v0.22.1 (active)
language-coffee-script, v0.48.1 (active)
language-csharp, v0.13.0 (active)
language-css, v0.40.1 (active)
language-gfm, v0.88.0 (active)
language-git, v0.15.0 (active)
language-go, v0.43.0 (active)
language-html, v0.47.1 (active)
language-hyperlink, v0.16.1 (active)
language-java, v0.24.0 (active)
language-javascript, v0.122.0 (active)
language-json, v0.18.3 (active)
language-less, v0.29.6 (active)
language-make, v0.22.2 (active)
language-mustache, v0.13.0 (active)
language-objective-c, v0.15.1 (active)
language-perl, v0.37.0 (active)
language-php, v0.37.3 (active)
language-property-list, v0.8.0 (active)
language-python, v0.45.1 (active)
language-ruby, v0.70.2 (active)
language-ruby-on-rails, v0.25.1 (active)
language-sass, v0.57.0 (active)
language-shellscript, v0.23.0 (active)
language-source, v0.9.0 (active)
language-sql, v0.25.0 (active)
language-text, v0.7.1 (active)
language-todo, v0.29.1 (active)
language-toml, v0.18.1 (active)
language-xml, v0.34.12 (active)
language-yaml, v0.27.1 (active)

# Dev
No dev packages