Peekmo / atom-autocomplete-php

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

Uncaught SyntaxError: Invalid regular expression: /\\)$/: Unmatched ')' #387

Open joelwmale opened 6 years ago

joelwmale commented 6 years ago

[Enter steps to reproduce:]

  1. Add Request $request to laravel class.
  2. Try to automatically add use statements.

Atom: 1.26.1 x64 Electron: 1.7.11 OS: Mac OS X 10.13.4 Thrown From: atom-autocomplete-php package 0.25.6

Stack Trace

Uncaught SyntaxError: Invalid regular expression: /\)$/: Unmatched ')'

At /Users/joelmale/.atom/packages/atom-autocomplete-php/lib/services/use-statement.coffee:15

SyntaxError: Invalid regular expression: /\\)$/: Unmatched ')'
    at RegExp (<anonymous>)
    at Object.importUseStatement (/packages/atom-autocomplete-php/lib/services/use-statement.coffee:15:17)
    at /packages/atom-autocomplete-php/lib/config.coffee:109:26)
    at CommandRegistry.handleCommandEvent (/Applications/Atom.app/Contents/Resources/app/src/command-registry.js:384:49)
    at Object.didConfirmSelection (/Applications/Atom.app/Contents/Resources/app/node_modules/command-palette/lib/command-palette-view.js:152:35)
    at SelectListView.confirmSelection (/Applications/Atom.app/Contents/Resources/app/node_modules/atom-select-list/src/select-list-view.js:401:26)
    at HTMLDivElement.core:confirm (/Applications/Atom.app/Contents/Resources/app/node_modules/atom-select-list/src/select-list-view.js:106:20)
    at CommandRegistry.handleCommandEvent (/Applications/Atom.app/Contents/Resources/app/src/command-registry.js:384:49)
    at KeymapManager.module.exports.KeymapManager.dispatchCommandEvent (/Applications/Atom.app/Contents/Resources/app/node_modules/atom-keymap/lib/keymap-manager.js:621:22)
    at KeymapManager.module.exports.KeymapManager.handleKeyboardEvent (/Applications/Atom.app/Contents/Resources/app/node_modules/atom-keymap/lib/keymap-manager.js:412:28)
    at WindowEventHandler.handleDocumentKeyEvent (/Applications/Atom.app/Contents/Resources/app/src/window-event-handler.js:110:40)

Commands

     -2:01.7.0 editor:newline (input.hidden-input)
     -2:01.5.0 emmet:insert-formatted-line-break-only (input.hidden-input)
     -2:01.5.0 docblockr:parse-enter (input.hidden-input)
     -2:01.5.0 editor:newline (input.hidden-input)
  2x -2:00.1.0 editor:delete-to-beginning-of-line (input.hidden-input)
     -1:59.7.0 core:backspace (input.hidden-input)
     -1:59.1.0 core:save (input.hidden-input)
  4x -1:50.1.0 core:backspace (input.hidden-input)
     -1:47.6.0 editor:select-to-end-of-line (input.hidden-input)
     -1:47.2.0 core:backspace (input.hidden-input)
  2x -1:46.9.0 core:save (input.hidden-input)
     -0:45.1.0 core:confirm (input.hidden-input)
     -0:15.2.0 core:close (div.package-detail.panels-item)
     -0:13.3.0 command-palette:toggle (input.hidden-input)
     -0:12 core:confirm (input.hidden-input)
     -0:12 atom-autocomplete-php:import-use-statement (input.hidden-input)

Non-Core Packages

advanced-open-file 0.16.8 
api-blueprint-preview 0.7.0 
atom-autocomplete-php 0.25.6 
atom-ide-ui 0.11.1 
atom-phpunit 1.3.0 
atom-ternjs 0.18.3 
autocomplete-json 5.5.2 
autocomplete-modules 2.0.0 
busy-signal 1.4.3 
city-lights-syntax 1.1.8 
city-lights-ui 1.3.3 
docblockr 0.13.7 
editorconfig 2.2.2 
emmet 2.4.3 
file-icons 2.1.19 
git-plus 7.10.2 
git-time-machine 1.5.9 
highlight-selected 0.13.1 
hyperclick 0.0.0 
ide-php 0.7.14 
intentions 1.1.5 
language-api-blueprint 1.0.2 
language-babel 2.85.0 
language-blade 0.39.0 
linter 2.2.0 
linter-eslint 8.4.1 
linter-golinter 1.2.2 
linter-php 1.5.1 
linter-ui-default 1.7.1 
merge-conflicts 1.4.5 
minimap 4.29.8 
minimap-highlight-selected 4.6.1 
minimap-pigments 0.2.2 
multi-cursor 2.1.5 
native-ui 0.26.1 
php-cs-fixer 4.1.1 
php-ide-serenata 4.1.1 
php-integrator-symbol-viewer 0.6.4 
pigments 0.40.2 
project-manager 3.3.5 
react-es6-snippets 0.3.0 
sass-autocompile 0.13.5 
sync-settings 0.8.6 
todo-show 2.3.0