Yatoom / emmet-atom-simplified

Emmet support for Atom
MIT License
10 stars 3 forks source link

Uncaught TypeError: str.charAt is not a function #12

Open woj-swiderski opened 5 years ago

woj-swiderski commented 5 years ago

[Enter steps to reproduce:]

  1. ...
  2. ...

Atom: 1.34.0 x64 Electron: 2.0.16 OS: Debian GNU/Linux Thrown From: emmet-simplified package 2.6.0

Stack Trace

Uncaught TypeError: str.charAt is not a function

At /usr/share/atom/resources/app/static/<embedded>:11

TypeError: str.charAt is not a function
    at Object.replaceUnescapedSymbol (/packages/emmet-simplified/node_modules/emmet/lib/utils/common.js:197:13)
    at normalizeCaretPlaceholder (/packages/emmet-simplified/node_modules/emmet/lib/assets/resources.js:54:16)
    at parseItem (/packages/emmet-simplified/node_modules/emmet/lib/assets/resources.js:58:11)
    at /packages/emmet-simplified/node_modules/emmet/lib/assets/resources.js:284:29
    at Array.some (<anonymous>)
    at /packages/emmet-simplified/node_modules/emmet/lib/assets/resources.js:282:19)
    at Array.some (<anonymous>)
    at Object.findSnippet (/packages/emmet-simplified/node_modules/emmet/lib/assets/resources.js:279:34)
    at Object.findSnippet (/packages/emmet-simplified/node_modules/emmet/lib/assets/resources.js:293:17)
    at Object.getMatchedResource (/packages/emmet-simplified/node_modules/emmet/lib/assets/resources.js:161:13)
    at /packages/emmet-simplified/node_modules/emmet/lib/parser/processor/resourceMatcher.js:28:22
    at Array.forEach (<anonymous>)
    at matchResources (/packages/emmet-simplified/node_modules/emmet/lib/parser/processor/resourceMatcher.js:27:26)
    at Object.preprocessor (/packages/emmet-simplified/node_modules/emmet/lib/parser/processor/resourceMatcher.js:100:4)
    at /packages/emmet-simplified/node_modules/emmet/lib/parser/abbreviation.js:916:5
    at Array.forEach (<anonymous>)
    at Object.parse (/packages/emmet-simplified/node_modules/emmet/lib/parser/abbreviation.js:915:18)
    at Object.expand (/packages/emmet-simplified/node_modules/emmet/lib/parser/abbreviation.js:957:26)
    at /packages/emmet-simplified/node_modules/emmet/lib/action/expandAbbreviation.js:65:25)
    at /packages/emmet-simplified/node_modules/emmet/lib/assets/handlerList.js:93:19
    at /packages/emmet-simplified/node_modules/emmet/lib/utils/common.js:600:10
    at Array.some (<anonymous>)
    at Object.find (/packages/emmet-simplified/node_modules/emmet/lib/utils/common.js:599:9)
    at HandlerList.exec (/packages/emmet-simplified/node_modules/emmet/lib/assets/handlerList.js:92:10)
    at Object.expandAbbreviationAction (/packages/emmet-simplified/node_modules/emmet/lib/action/expandAbbreviation.js:110:20)
    at Object.expandAbbreviationWithTabAction (/packages/emmet-simplified/node_modules/emmet/lib/action/expandAbbreviation.js:140:14)
    at Object.run (/packages/emmet-simplified/node_modules/emmet/lib/action/main.js:150:21)
    at Object.run (/packages/emmet-simplified/node_modules/emmet/lib/emmet.js:81:23)
    at runAction (/packages/emmet-simplified/lib/emmet.coffee:94:9)
    at /packages/emmet-simplified/lib/emmet.coffee:62:9

Commands

  2x -1:48.6.0 core:move-down (input.hidden-input)
     -1:41.9.0 core:backspace (input.hidden-input)
  2x -1:41.6.0 editor:newline (input.hidden-input)
  2x -1:33.4.0 core:move-down (input.hidden-input)
  2x -1:32.9.0 core:move-left (input.hidden-input)
     -1:31.5.0 core:move-right (input.hidden-input)
  2x -1:23.1.0 core:move-down (input.hidden-input)
  2x -1:20.6.0 editor:newline (input.hidden-input)
     -0:16.7.0 emmet:expand-abbreviation-with-tab (input.hidden-input)
  4x -0:15.4.0 core:move-left (input.hidden-input)
     -0:14.5.0 editor:select-to-end-of-line (input.hidden-input)
     -0:14.2.0 core:delete (input.hidden-input)
     -0:10.3.0 editor:newline (input.hidden-input)
     -0:07.0 autocomplete-plus:confirm (input.hidden-input)
     -0:03.8.0 emmet:expand-abbreviation-with-tab (input.hidden-input)
     -0:02.5.0 editor:newline (input.hidden-input)

Non-Core Packages

atom-live-server 2.3.0 
emmet-simplified 2.6.0