You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to run the tool locally on a Windows machine and get this error:
Error: YAMLException: bad indentation of a mapping entry (752:7)
749 | - language: Hosts File
750 | pattern: '(?xi) ^(?<ipv4>(?!\.)(? ...
751 |
752 | (?=$|\s)
-------------^
753 | - language: Adblock Filter List
754 | pattern: '\A\[(?<version>(?:[Aa]d ...
at generateError (C:\etl-pipelines\node_modules\js-yaml\lib\loader.js:183:10)
at throwError (C:\etl-pipelines\node_modules\js-yaml\lib\loader.js:187:9)
at readBlockMapping (C:\etl-pipelines\node_modules\js-yaml\lib\loader.js:1182:7)
at composeNode (C:\etl-pipelines\node_modules\js-yaml\lib\loader.js:1441:12)
at readBlockSequence (C:\etl-pipelines\node_modules\js-yaml\lib\loader.js:1008:5)
at composeNode (C:\etl-pipelines\node_modules\js-yaml\lib\loader.js:1472:45)
at readBlockMapping (C:\etl-pipelines\node_modules\js-yaml\lib\loader.js:1164:11)
at composeNode (C:\etl-pipelines\node_modules\js-yaml\lib\loader.js:1441:12)
at readBlockSequence (C:\etl-pipelines\node_modules\js-yaml\lib\loader.js:1008:5)
at composeNode (C:\etl-pipelines\node_modules\js-yaml\lib\loader.js:1472:45) {
reason: 'bad indentation of a mapping entry',
Tried different node versions, shells and WSL. Reproduces with my college with Windows machine but does not reproduce with my college with Mac. -> Narrowing the problem to be in the operating system?
Also, tried to run with offline true but it did not help.
The text was updated successfully, but these errors were encountered:
xfkoko
changed the title
Error: YAMLException: bad indentation of a mapping entry
Error: YAMLException: bad indentation of a mapping entry from reading heuristic.yml
Nov 27, 2024
xfkoko
changed the title
Error: YAMLException: bad indentation of a mapping entry from reading heuristic.yml
Error: YAMLException: bad indentation of a mapping entry from reading heuristic.yml on Windows machine
Nov 27, 2024
Hello!
I'm trying to run the tool locally on a Windows machine and get this error:
Tracked it to this file that the tool is trying to read:
https://github.com/github-linguist/linguist/blob/f164d13fa618023ecf2d8f2ed9a6ce5fae731346/lib/linguist/heuristics.yml#L818
Thinking it is starting from here in linguist-js:
LinguistJS/build/download-files.ts
Line 26 in f842e14
Tried different node versions, shells and WSL. Reproduces with my college with Windows machine but does not reproduce with my college with Mac. -> Narrowing the problem to be in the operating system?
Also, tried to run with offline true but it did not help.
Full Error:
The text was updated successfully, but these errors were encountered: