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

Uncaught RangeError after updating tree-sitter #22129

Open
@icecream17

Description

Prerequisites

Description

Please see:
Related issue: #23041
Progress: https://github.com/icecream17/atom-update-backlog/blob/main/Languages.md

image

Steps to Reproduce

  1. clone https://github.com/icecream17/language-javascript/tree/operators
  2. apm install
  3. apm link

This issue is actually because of atom/language-javascript#692, not anything to do with the operators pr
So step 1 could also be:

  1. clone https://github.com/atom/language-javascript (upgrade pr is already merged)

And here's an alternative from #23041:

  1. Install language-hclrs@0.0.2
  2. Set language to HCLRS

Expected behavior:

No errors

Actual behavior:

This error

(It also prevents syntax-highlighting)

Reproduces how often:

100%

Versions

atom-beta --version
Atom     : 1.56.0-beta0
Electron : 9.4.4
Chrome   : 83.0.4103.122
Node     : 12.14.1

apm-beta --version
apm  2.5.2
npm  6.14.8
node 12.4.0 x64
atom 1.56.0-beta0
python 3.9.2
git 2.31.1.windows.1
visual studio 2015

OS: Windows 10 x64

Additional Information

After the above picture, there's another error, and then more of the same error (different stack traces but same cause)
image

The latest version of tree-sitter is 0.19.4 0.20.0, but I haven't tested whether updating it would fix the problem

    "text-buffer": "^13.18.5",
    "timecop": "https://www.atom.io/api/packages/timecop/versions/0.36.2/tarball",
    "tree-sitter": "0.17.1",
    "tree-view": "https://www.atom.io/api/packages/tree-view/versions/0.228.2/tarball",
    "typescript-simple": "8.0.6",

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions