hcl-lang icon indicating copy to clipboard operation
hcl-lang copied to clipboard

Schema and decoder to be used as building blocks for an HCL2-based language server.

Results 55 hcl-lang issues
Sort by recently updated
recently updated
newest added

I would've expected the second call to return zero items but it returns an item. Am I doing something wrong? ``` 1 1 ``` ```Go package main import ( "context"...

I modified the code provided [here](https://github.com/hashicorp/hcl-lang/issues/417#issuecomment-2400144600) and triggered a `panic`. The error is on this line. https://github.com/hashicorp/hcl-lang/blob/f5c7d040b70fffe6d92da992408c0f8481bb260c/schema/attribute_schema.go#L145 ```Golang package main import ( "context" "github.com/hashicorp/hcl-lang/decoder" "github.com/hashicorp/hcl-lang/lang" "github.com/hashicorp/hcl-lang/reference" "github.com/hashicorp/hcl-lang/schema" "github.com/hashicorp/hcl/v2" "github.com/hashicorp/hcl/v2/hclsyntax" )...

This library operates off of byte offsets instead of lines and columns which is the basis of many LSP requests. This effectively means that anyone adopting this library will have...

There is no `ValueType` [here](https://github.com/hashicorp/hcl-lang/blob/f5c7d040b70fffe6d92da992408c0f8481bb260c/schema/attribute_schema.go#L13-L53) but the example code in the readme references it. ```Go import ( "github.com/hashicorp/hcl-lang/lang" "github.com/hashicorp/hcl-lang/schema" "github.com/zclconf/go-cty/cty" ) var providerBlockSchema = &schema.BlockSchema{ Labels: []*schema.LabelSchema{ { Name: "name",...

documentation

Both of these functions are mentioned in the [README.md](https://github.com/hashicorp/hcl-lang/blob/f5c7d040b70fffe6d92da992408c0f8481bb260c/README.md) but running a full text search in the project does not turn up any meaningful results in code. Am I misunderstanding...

documentation