grafana / grafana/jsonnet-language-server
unexpected warnings on `std.native` function calls
- Dominant language
- Go
- Stars
- 223
- Forks
- 33
- PR merge metrics
- No merged PRs in 30d
Description
## Versions
- VS Code Jsonnet Language Server Extension v0.3.3
- jsonnet-language-server v0.11.0
## Example Code
```jsonnet
local nextID = std.native('nextID');
{
id: nextID(),
}
```
## Error Message
```
RUNTIME ERROR: Unexpected type null, expected function
/tmp/test.jsonnet:4:7-15 object
Field "id"
During manifestation
jsonnet evaluation
```
Contributor guide
No contributing guide indexed for this repository
Research direction
Reproduce the example with VS Code Jsonnet Language Server Extension v0.3.3 and jsonnet-language-server v0.11.0, then trace how std.native calls are handled. Done means the shown Jsonnet code no longer produces the unexpected type null error during evaluation.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go
- Domain
- devtools
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100