AtomLinter / linter-markdown

Lint markdown files within atom
https://atom.io/packages/linter-markdown
MIT License
43 stars 8 forks source link

Uncaught RangeError: path should be a `path.relative()`d string, but got "../../../../OneDrive - ... #321

Open jk-e opened 2 years ago

jk-e commented 2 years ago

[Enter steps to reproduce:]

  1. ...
  2. ...

Atom: 1.54.0 x64 Electron: 6.1.12 OS: macOS 12.5 Thrown From: linter-markdown package 5.2.11

Stack Trace

Uncaught RangeError: path should be a path.relative()d string, but got "../../../../OneDrive - Extreme Networks, Inc/Documentation/XCC_Bugs/XCCSetup.md"

At /Users/jmahalingappa/.atom/packages/linter-markdown/node_modules/ignore/index.js:366

RangeError: path should be a `path.relative()`d string, but got "../../../../OneDrive - Extreme Networks, Inc/Documentation/XCC_Bugs/XCCSetup.md"
    at throwError (/packages/linter-markdown/node_modules/ignore/index.js:366:9)
    at checkPath (/packages/linter-markdown/node_modules/ignore/index.js:385:12)
    at Ignore._test (/packages/linter-markdown/node_modules/ignore/index.js:502:5)
    at Ignore.ignores (/packages/linter-markdown/node_modules/ignore/index.js:541:17)
    at one (/packages/linter-markdown/node_modules/unified-engine/lib/finder.js:255:51)
    at handleIgnore (/packages/linter-markdown/node_modules/unified-engine/lib/finder.js:243:5)
    at done (/packages/linter-markdown/node_modules/unified-engine/lib/ignore.js:41:7)
    at apply (/packages/linter-markdown/node_modules/unified-engine/lib/find-up.js:190:7)
    at applyAll (/packages/linter-markdown/node_modules/unified-engine/lib/find-up.js:180:7)
    at found (/packages/linter-markdown/node_modules/unified-engine/lib/find-up.js:172:7)
    at apply (/packages/linter-markdown/node_modules/unified-engine/lib/find-up.js:190:7)
    at applyAll (/packages/linter-markdown/node_modules/unified-engine/lib/find-up.js:180:7)
    at found (/packages/linter-markdown/node_modules/unified-engine/lib/find-up.js:172:7)
    at apply (/packages/linter-markdown/node_modules/unified-engine/lib/find-up.js:190:7)
    at applyAll (/packages/linter-markdown/node_modules/unified-engine/lib/find-up.js:180:7)
    at found (/packages/linter-markdown/node_modules/unified-engine/lib/find-up.js:172:7)
    at apply (/packages/linter-markdown/node_modules/unified-engine/lib/find-up.js:190:7)
    at applyAll (/packages/linter-markdown/node_modules/unified-engine/lib/find-up.js:180:7)
    at found (/packages/linter-markdown/node_modules/unified-engine/lib/find-up.js:172:7)
    at apply (/packages/linter-markdown/node_modules/unified-engine/lib/find-up.js:190:7)
    at applyAll (/packages/linter-markdown/node_modules/unified-engine/lib/find-up.js:180:7)
    at found (/packages/linter-markdown/node_modules/unified-engine/lib/find-up.js:172:7)
    at apply (/packages/linter-markdown/node_modules/unified-engine/lib/find-up.js:190:7)
    at applyAll (/packages/linter-markdown/node_modules/unified-engine/lib/find-up.js:180:7)
    at found (/packages/linter-markdown/node_modules/unified-engine/lib/find-up.js:172:7)
    at next (/packages/linter-markdown/node_modules/unified-engine/lib/find-up.js:122:11)
    at /packages/linter-markdown/node_modules/unified-engine/lib/find-up.js:140:18)
    at FSReqCallback.readFileAfterOpen [as oncomplete] (fs.js:246:13)

Commands

  9x -0:15.7.0 core:move-down (input.hidden-input)
     -0:12.5.0 core:paste (input.hidden-input)
     -0:10.5.0 markdown-writer:insert-new-line (input.hidden-input)
     -0:10 editor:newline (input.hidden-input)
     -0:10 markdown-writer:insert-new-line (input.hidden-input)
     -0:10 editor:newline (input.hidden-input)
     -0:07.3.0 markdown-writer:insert-new-line (input.hidden-input)
     -0:07.3.0 editor:newline (input.hidden-input)
     -0:07.2.0 markdown-writer:insert-new-line (input.hidden-input)
     -0:07.2.0 editor:newline (input.hidden-input)
     -0:04.9.0 core:save (input.hidden-input)

Non-Core Packages

atom-beautify 0.33.4 
atom-csv-markdown 1.0.4 
atom-diary 1.2.1 
atom-json 0.6.0 
busy-signal 2.0.1 
compare-files 0.8.1 
flatten-json 0.1.5 
ide-json 0.2.1 
intentions 1.1.5 
json-colorer 1.0.0 
language-csv 1.1.2 
language-har 1.0.0 
linter 3.2.3 
linter-markdown 5.2.11 
linter-markdownlint 2.0.2 
linter-ui-default 2.4.1 
markdown-code-blocks 1.3.0 
markdown-helper 0.3.0 
markdown-pdf 2.3.3 
markdown-to-pdf 0.1.1 
markdown-writer 2.11.11 
pdf-view 0.72.0 
pretty-json 2.1.2 
rainbow-csv 1.4.0 
split-diff 1.6.1 
tasks 2.10.1 
todo 0.6.0 
todo-list 1.0.0 
todo-manager 0.2.10 
todo-show 2.3.2 
tool-bar 1.4.2 
tool-bar-markdown 1.0.5 
tool-bar-markdown-writer 0.5.1