Skip to content
This repository was archived by the owner on Sep 8, 2020. It is now read-only.
This repository was archived by the owner on Sep 8, 2020. It is now read-only.

Uncaught TypeError: Cannot read property 'toLowerCase' of undefined #82

Closed
@aghArdeshir

Description

@aghArdeshir

HI! I just opened atom and saw an update is available to abgularJS package. I updated it. I restarted atom . and on (almost) every change to file, I get an error toaster:

screenshot from 2017-12-02 20-39-44

Forget about the syntatic mistakes in screenshot. the errors and toasters appear even if no error exists.

[Enter steps to reproduce:]

  1. Not Sure ... Just editing normal .js fiels would cause the issue
  2. Mostly ', ,, {} and other special characters would cause the issue and a toaster appear

Atom: 1.22.1 x64 (the issue existed on 1.21.1 too)
Electron: 1.6.15
OS: Linux Mint
Thrown From: angularjs package 0.5.0

Stack Trace

Uncaught TypeError: Cannot read property 'toLowerCase' of undefined

At /home/ardeshir81/.atom/packages/angularjs/lib/provider.coffee:104

TypeError: Cannot read property 'toLowerCase' of undefined
    at firstCharsEqual (/packages/angularjs/lib/provider.coffee:104:35)
    at Object.getJavascriptCompletions (/packages/angularjs/lib/provider.coffee:88:50)
    at Object.getSuggestions (/packages/angularjs/lib/provider.coffee:15:8)
    at providers.forEach.provider (/usr/share/atom/resources/app/node_modules/autocomplete-plus/lib/autocomplete-manager.js:286:58)
    at Array.forEach (native)
    at AutocompleteManager.getSuggestionsFromProviders (/usr/share/atom/resources/app/node_modules/autocomplete-plus/lib/autocomplete-manager.js:262:21)
    at AutocompleteManager.findSuggestions (/usr/share/atom/resources/app/node_modules/autocomplete-plus/lib/autocomplete-manager.js:254:23)

Commands

     -4:12.7.0 tree-view:show (atom-workspace.workspace.scrollbars-visible-always)
     -2:07.9.0 application:reopen-project (div.tool-panel.tree-view)
     -1:59.5.0 command-palette:toggle (div.tool-panel.tree-view)
     -1:57.4.0 core:confirm (input.hidden-input)
     -1:57.3.0 platformio-ide-terminal:new (div.tool-panel.tree-view)
     -0:39.4.0 core:move-left (input.hidden-input)
     -0:37.5.0 intentions:highlight (input.hidden-input)
     -0:37.4.0 core:save (input.hidden-input)
  2x -0:20.6.0 core:backspace (input.hidden-input)

Non-Core Packages

angularjs 0.5.0 
atom-beautify 0.30.9 
atom-ide-ui 0.6.0 
autoclose-html 0.23.0 
autocomplete-js-import 1.4.0 
busy-signal 1.4.3 
file-icons 2.1.14 
file-path-picker 0.2.0 
git-history 3.3.0 
git-time-machine 1.5.9 
highlight-selected 0.13.1 
ide-typescript 0.7.0 
intentions 1.1.5 
linter 2.2.0 
linter-csslint 2.0.0 
linter-jshint 3.1.6 
linter-ui-default 1.6.10 
minimap 4.29.7 
minimap-highlight-selected 4.6.1 
pigments 0.40.2 
platformio-ide-terminal 2.7.0 
project-manager 3.3.5 
teletype 0.1.2 
zentabs 0.8.9 

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions