carvel-dev / carvel-dev/ytt

"#@data.values" [no space after @] should error with a helpful hint

Open
#532 4 comments 1 reaction 0 assignees View on GitHub
discussion enhancement error msg improvement
Dominant language
Go
Stars
1.9k
Forks
167
PR merge metrics
No merged PRs in 30d

Description

**Describe the problem/challenge you have**
users may accidentally forget to have a space in `foo: #@data.values` after `@` and be confused why the data value is not showing up in the output.

(https://twitter.com/stylishandy/status/1455051198935957514?s=20)

---
Vote on this request

This is an invitation to the community to vote on issues, to help us prioritize our backlog. Use the "smiley face" up to the right of this comment to vote.

👍 "I would like to see this addressed as soon as possible"
👎 "There are other more important things to focus on right now"

We are also happy to receive and review Pull Requests if you want to help working on this issue.

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the issue in the ytt CLI with `foo: #@data.values` and compare it with the spaced form. Trace how the template parser handles this expression; done means the no-space form produces a clear error with a helpful hint instead of silently failing to show the data value.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
cli
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.