Skip to content
This repository has been archived by the owner on Aug 7, 2023. It is now read-only.

Uncaught TypeError: Invalid Point: (7, NaN) #18

Closed
ghost opened this issue Jun 12, 2015 · 0 comments · Fixed by #19
Closed

Uncaught TypeError: Invalid Point: (7, NaN) #18

ghost opened this issue Jun 12, 2015 · 0 comments · Fixed by #19

Comments

@ghost
Copy link

ghost commented Jun 12, 2015

Background: steelbrain/linter#560
(this is issue #13 after maxbrunsfeld’s help in atom/atom#7077 )

It can be solved by changing the regex from '(?[^\\^]*)\^' to '(?\d+): '
but this way some linting errors are not detected anymore, such as:

  1. not having the start tag of the root element
  2. deleting closing > from a closing element.

Steps:

  1. Play a bit with a bad xml file

Atom Version: 0.209.0
System: linux 4.0.5-1-ARCH
Thrown From: linter package, v0.12.7

Stack Trace

Uncaught TypeError: Invalid Point: (12, NaN)

At /usr/share/atom/resources/app.asar/node_modules/text-buffer/lib/point.js:65

TypeError: Invalid Point: (12, NaN)
  at Function.module.exports.Point.assertValid (/usr/share/atom/resources/app.asar/node_modules/text-buffer/lib/point.js:65:15)
  at TextBuffer.module.exports.TextBuffer.clipPosition (/usr/share/atom/resources/app.asar/node_modules/text-buffer/lib/text-buffer.js:956:13)
  at TextBuffer.module.exports.TextBuffer.clipRange (/usr/share/atom/resources/app.asar/node_modules/text-buffer/lib/text-buffer.js:944:20)
  at TextBuffer.module.exports.TextBuffer.markRange (/usr/share/atom/resources/app.asar/node_modules/text-buffer/lib/text-buffer.js:674:46)
  at DisplayBuffer.module.exports.DisplayBuffer.markBufferRange (/usr/share/atom/resources/app.asar/src/display-buffer.js:1381:41)
  at TextEditor.module.exports.TextEditor.markBufferRange (/usr/share/atom/resources/app.asar/src/text-editor.js:1265:59)
  at LinterView.createMarker (/home/arch/.config/atom/packages/linter/lib/linter-view.coffee:190:22)
  at LinterView.display (/home/arch/.config/atom/packages/linter/lib/linter-view.coffee:227:17)
  at LinterView.processMessage (/home/arch/.config/atom/packages/linter/lib/linter-view.coffee:178:8)
  at LinterView.processMessage (/home/arch/.config/atom/packages/linter/lib/linter-view.coffee:1:1)
  at /home/arch/.config/atom/packages/linter/lib/linter-view.coffee:164:14
  at LinterXmllint.Linter.processMessage (/home/arch/.config/atom/packages/linter/lib/linter.coffee:241:5)
  at /home/arch/.config/atom/packages/linter/lib/linter.coffee:173:8
  at triggerExitCallback (/usr/share/atom/resources/app.asar/src/buffered-process.js:213:47)
  at /usr/share/atom/resources/app.asar/src/buffered-process.js:227:18
  at Socket.<anonymous> (/usr/share/atom/resources/app.asar/src/buffered-process.js:98:18)
  at emitOne (events.js:82:20)
  at Socket.emit (events.js:166:7)
  at Pipe.close (net.js:464:12)

Commands

     -0:01.0 core:backspace (atom-text-editor.editor.is-focused)

Config

{
  "core": {
    "audioBeep": false,
    "autoHideMenuBar": true,
    "projectHome": "/data",
    "disabledPackages": [
      "language-make",
      "autocomplete-css",
      "autocomplete-html",
      "autocomplete-plus",
      "autocomplete-snippets",
      "autosave",
      "autoflow",
      "background-tips",
      "deprecation-cop",
      "incompatible-packages",
      "language-c",
      "language-clojure",
      "language-csharp",
      "language-gfm",
      "language-go",
      "language-java",
      "autocomplete-atom-api",
      "language-mustache",
      "language-objective-c",
      "language-perl",
      "language-property-list",
      "language-ruby",
      "language-ruby-on-rails",
      "language-sql",
      "language-toml",
      "language-yaml",
      "markdown-preview",
      "open-on-github",
      "package-generator",
      "spell-check",
      "timecop",
      "welcome"
    ]
  },
  "linter": {}
}

Installed Packages

# User
emmet, v2.3.10
file-icons, v1.5.7
language-generic-config, v0.2.0
linter, v0.12.7
linter-flake8, v1.4.2
linter-tidy, v1.0.1
linter-xmllint, v0.0.6
pdf-view, v0.22.0
tabs-to-spaces, v0.11.0

# Dev
No dev packages
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

0 participants