This repository was archived by the owner on Jul 1, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 19
This repository was archived by the owner on Jul 1, 2024. It is now read-only.
Fails to run #8
Copy link
Copy link
Open
Description
Prerequisites
- Write a descriptive title.
- Make sure you are able to repro it on the latest version
- Search the existing issues.
Steps to reproduce
- Clone repo:
gh repo clone PowerShell/tree-sitter-PowerShell
- Run step 1 from
Getting started
:npm install
- Run step 2 from
Getting started
:npm start file.ps1
- Try
npm run generate
- Try
npm run parse file.ps1
Expected behavior
Not an error. Based on documentation, unsure of success.
Actual behavior
Error occurred.
> [email protected] start
> npm run generate && npm run parse
> [email protected] generate
> tree-sitter generate
[stdin]:189
throw value
^
ReferenceError: Undefined symbol '_newline'
at Object.get ([stdin]:210:23)
at Proxy.class_definition (C:\Users\Kyle L. Davis\Development\tree-sitter-PowerShell\grammar.js:64:16)
at grammar ([stdin]:283:42)
at Object.<anonymous> (C:\Users\Kyle L. Davis\Development\tree-sitter-PowerShell\grammar.js:12:18)
at Module._compile (node:internal/modules/cjs/loader:1112:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1166:10)
at Module.load (node:internal/modules/cjs/loader:988:32)
at Module._load (node:internal/modules/cjs/loader:834:12)
at Module.require (node:internal/modules/cjs/loader:1012:19)
at require (node:internal/modules/cjs/helpers:102:18) {
symbol: { type: 'SYMBOL', name: '_newline' }
}
Node.js v18.4.0
Node process exited with status 1
### Error details
```console
`Get-Error` fails to capture error.
Environment data
Name Value
---- -----
PSVersion 5.1.19041.1682
PSEdition Desktop
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
BuildVersion 10.0.19041.1682
CLRVersion 4.0.30319.42000
WSManStackVersion 3.0
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
Version
7.2.5
Visuals
No response
Metadata
Metadata
Assignees
Labels
No labels