Skip to content
This repository was archived by the owner on Jul 1, 2024. It is now read-only.
This repository was archived by the owner on Jul 1, 2024. It is now read-only.

Fails to run #8

@AceofSpades5757

Description

@AceofSpades5757

Prerequisites

  • Write a descriptive title.
  • Make sure you are able to repro it on the latest version
  • Search the existing issues.

Steps to reproduce

  1. Clone repo: gh repo clone PowerShell/tree-sitter-PowerShell
  2. Run step 1 from Getting started: npm install
  3. Run step 2 from Getting started: npm start file.ps1
  4. Try npm run generate
  5. 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

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