This repository was archived by the owner on Mar 3, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 17.3k
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
Copy link
Copy link
Closed
Description
Prerequisites
Prerequisites
- Put an X between the brackets on this line if you have done all of the following:
- Reproduced the problem in Safe Mode: https://flight-manual.atom.io/hacking-atom/sections/debugging/#using-safe-mode
- Followed all applicable steps in the debugging guide: https://flight-manual.atom.io/hacking-atom/sections/debugging/
- Checked the FAQs on the message board for common solutions: https://discuss.atom.io/c/faq
- Checked that your issue isn't already filed: https://github.com/issues?utf8=✓&q=is%3Aissue+user%3Aatom
- Checked that there is not already an Atom package that provides the described functionality: https://atom.io/packages
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
- 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:
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
Labels
No labels
