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

Atom Electron 9 - iterator.seek is not a function or its return value is not iterable #22078

@aminya

Description

@aminya
Prerequisites

Prerequisites

Description

Electron 9 has broken TreeSitterLanguageMode.scopeDescriptorForPosition function somehow. The linter tests now fail with this error:

      TypeError: iterator.seek is not a function or its return value is not iterable
        at TreeSitterLanguageMode.scopeDescriptorForPosition (/home/runner/work/_temp/atom/usr/share/atom-beta/resources/app.asar/src/tree-sitter-language-mode.js:588:34)
        at TextEditor.scopeDescriptorForBufferPosition (/home/runner/work/_temp/atom/usr/share/atom-beta/resources/app.asar/src/text-editor.js:4539:22)
        at Cursor.getScopeDescriptor (/home/runner/work/_temp/atom/usr/share/atom-beta/resources/app.asar/src/cursor.js:206:24)
        at /home/runner/work/linter/linter/dist/helpers.js:23:99
        at Array.reduce (<anonymous>)
        at Object.getEditorCursorScopes (/home/runner/work/linter/linter/dist/helpers.js:23:51)
        at LinterRegistry.lint (/home/runner/work/linter/linter/dist/linter-registry.js:83:32)

Steps to Reproduce

  1. Run the tests for the linter package on Electron 9
    Here is the link to the CI:
    https://github.com/steelbrain/linter/runs/2178504515#step:6:76

Expected behavior:

State the breaking changes in the docs or the changelog

Actual behavior:

image

Reproduces how often:
100%

Versions

Atom    : 1.57.0-nightly1
Electron: 9.4.4
Chrome  : 83.0.4103.122
Node    : 12.14.1

Additional Information

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions