Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

app-editor/vscode-1.79.2: bad export type for tree_sitter_tsx_external_scanner_create: undefined #239

Closed
nethershaw opened this issue Jun 27, 2023 · 2 comments
Labels

Comments

@nethershaw
Copy link

nethershaw commented Jun 27, 2023

I have not been able to find a combination of vscode ebuilds from this overlay and electron versions that will allow vscode to successfully build since app-editors/vscode-1.77.3 with dev-util/electron-20.3.12-r1. All vscode ebuilds since then bail with a similar error:

>>> Compiling source in /var/tmp/portage/app-editors/vscode-1.79.2/work/vscode-1.79.2 ...
...
[16:08:54] Starting compilation api-proposal-names...
Assertion failed: bad export type for `tree_sitter_tsx_external_scanner_create`: undefined
Unhandled Rejection at: Promise Promise {
  <rejected> RuntimeError: abort(Assertion failed: bad export type for `tree_sitter_tsx_external_scanner_create`: undefined). Build with -s ASSERTIONS=1 for more info.
      at se (/var/tmp/portage/app-editors/vscode-1.79.2/work/vscode-1.79.2/node_modules/web-tree-sitter/tree-sitter.js:1:6761) 
      at k (/var/tmp/portage/app-editors/vscode-1.79.2/work/vscode-1.79.2/node_modules/web-tree-sitter/tree-sitter.js:1:4462) 
      at Pe (/var/tmp/portage/app-editors/vscode-1.79.2/work/vscode-1.79.2/node_modules/web-tree-sitter/tree-sitter.js:1:12582) 
      at c (/var/tmp/portage/app-editors/vscode-1.79.2/work/vscode-1.79.2/node_modules/web-tree-sitter/tree-sitter.js:1:10613)
      at /var/tmp/portage/app-editors/vscode-1.79.2/work/vscode-1.79.2/node_modules/web-tree-sitter/tree-sitter.js:1:10879 
      at async /var/tmp/portage/app-editors/vscode-1.79.2/work/vscode-1.79.2/node_modules/@vscode/l10n-dev/dist/main.js:254:10
      at async /var/tmp/portage/app-editors/vscode-1.79.2/work/vscode-1.79.2/node_modules/@vscode/l10n-dev/dist/main.js:243:22
} reason: RuntimeError: abort(Assertion failed: bad export type for `tree_sitter_tsx_external_scanner_create`: undefined). Build with -s ASSERTIONS=1 for more info.
    at se (/var/tmp/portage/app-editors/vscode-1.79.2/work/vscode-1.79.2/node_modules/web-tree-sitter/tree-sitter.js:1:6761)
    at k (/var/tmp/portage/app-editors/vscode-1.79.2/work/vscode-1.79.2/node_modules/web-tree-sitter/tree-sitter.js:1:4462)
    at Pe (/var/tmp/portage/app-editors/vscode-1.79.2/work/vscode-1.79.2/node_modules/web-tree-sitter/tree-sitter.js:1:12582)
    at c (/var/tmp/portage/app-editors/vscode-1.79.2/work/vscode-1.79.2/node_modules/web-tree-sitter/tree-sitter.js:1:10613)
    at /var/tmp/portage/app-editors/vscode-1.79.2/work/vscode-1.79.2/node_modules/web-tree-sitter/tree-sitter.js:1:10879
    at async /var/tmp/portage/app-editors/vscode-1.79.2/work/vscode-1.79.2/node_modules/@vscode/l10n-dev/dist/main.js:254:10
    at async /var/tmp/portage/app-editors/vscode-1.79.2/work/vscode-1.79.2/node_modules/@vscode/l10n-dev/dist/main.js:243:22
[16:08:54] The following tasks did not complete: vscode-linux-x64-min

Logs, system info:

@nethershaw nethershaw added the bug Something isn't working label Jun 27, 2023
@PF4Public PF4Public added upstream and removed bug Something isn't working labels Jun 27, 2023
@PF4Public
Copy link
Owner

For your reference:
microsoft/vscode#166265 (comment)
microsoft/vscode-l10n#104
tree-sitter/tree-sitter-typescript#244
tree-sitter/tree-sitter#2338
microsoft/vscode-l10n#114

I'm tired of wasting time struggling with Microsoft, so the temporary solution is here and here.

I'll keep your issue open for some time for better visibility.

@PF4Public
Copy link
Owner

Since Microsoft does not care for this failure I've temporarily added temp-fix USE flag for ease of building.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants