Peekmo / atom-autocomplete-php

Autocomplete for PHP in atom editor
MIT License
136 stars 34 forks source link

Uncaught TypeError: editor.getWordUnderCursor is not a function #382

Open fbaham opened 6 years ago

fbaham commented 6 years ago

[Enter steps to reproduce:]

  1. ... In the commit message I tiped ALT Gr + 'u' to 'ú' and not appear, with " ' " + 'u' it works

Atom: 1.25.0 x64 Electron: 1.7.11 OS: Unknown Windows version Thrown From: atom-autocomplete-php package 0.25.6

Stack Trace

Uncaught TypeError: editor.getWordUnderCursor is not a function

At C:\Users\franc\.atom\packages\atom-autocomplete-php\lib\services\use-statement.coffee:14

TypeError: editor.getWordUnderCursor is not a function
    at Object.importUseStatement (/packages/atom-autocomplete-php/lib/services/use-statement.coffee:14:23)
    at /packages/atom-autocomplete-php/lib/config.coffee:109:26)
    at CommandRegistry.handleCommandEvent (~/AppData/Local/atom/app-1.25.0/resources/app/src/command-registry.js:384:49)
    at KeymapManager.module.exports.KeymapManager.dispatchCommandEvent (~/AppData/Local/atom/app-1.25.0/resources/app/node_modules/atom-keymap/lib/keymap-manager.js:621:22)
    at KeymapManager.module.exports.KeymapManager.handleKeyboardEvent (~/AppData/Local/atom/app-1.25.0/resources/app/node_modules/atom-keymap/lib/keymap-manager.js:412:28)
    at WindowEventHandler.handleDocumentKeyEvent (~/AppData/Local/atom/app-1.25.0/resources/app/src/window-event-handler.js:110:40)

Commands

     -4:29.5.0 atom-autocomplete-php:import-use-statement (input.hidden-input)
  5x -4:27.9.0 core:backspace (input.hidden-input)
     -4:05.1.0 core:focus-next (input.input-text.github-CredentialDialog-Username)
  6x -0:38.4.0 atom-autocomplete-php:import-use-statement (input.hidden-input)

Non-Core Packages

atom-autocomplete-php 0.25.6 
emmet 2.4.3