Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

branch Component* was accepted but did not progress the lexer #1807

Closed
2 tasks
gak opened this issue Jun 17, 2024 · 0 comments · Fixed by #1817
Closed
2 tasks

branch Component* was accepted but did not progress the lexer #1807

gak opened this issue Jun 17, 2024 · 0 comments · Fixed by #1817
Assignees
Labels
bug Something isn't working

Comments

@gak
Copy link
Contributor

gak commented Jun 17, 2024

If I just leave the autocomplete fields as they are, giving an invalid cron, I get a panic:

panic: /Users/gak/src/ftlchickenegg/chicken/chicken.go:1:9: branch Component* was accepted but did not progress the lexer at /Users/gak/src/ftlchickenegg/chicken/chicken.go:1:9 (" ")
package chicken

import (
	"context"
)

//ftl:cron Minutes Hours DayOfMonth Month DayOfWeek
func Name(ctx context.Context) error {
	// TODO: Implement
	return nil
}

It's also in the wrong position.

  • Fix the panic
  • Report the correct line:col
@gak gak added the bug Something isn't working label Jun 17, 2024
@github-actions github-actions bot added the triage Issue needs triaging label Jun 17, 2024
@ftl-robot ftl-robot mentioned this issue Jun 17, 2024
@gak gak self-assigned this Jun 17, 2024
@github-actions github-actions bot removed the triage Issue needs triaging label Jun 17, 2024
@gak gak closed this as completed in a279746 Jun 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant