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

Query Array Not Choosing the last choice #51

Closed
kjaymiller opened this issue Apr 9, 2021 · 6 comments
Closed

Query Array Not Choosing the last choice #51

kjaymiller opened this issue Apr 9, 2021 · 6 comments

Comments

@kjaymiller
Copy link

When I have a query array, the last option generates no matching section found in <.

---
title: Testing Query Arrays
---

snippet = ?[jay, foo, bar, biz]

<<#${snippet}
___
#[jay]
* say "jay"

#[foo]
* say "foo"

#[bar]
* say "bar"

#[biz]
* say "biz"

/*
Returned from Log
2021-04-09 13:07:55: ⚪[nova] Open >>>>>>>>>>>>>>>>>>>>>
2021-04-09 13:07:55: ⚪Presenting multiple choice from array: (
jay,
foo,
bar,
biz
)
2021-04-09 13:07:58: ⚪Multiple Choice answered (biz)
2021-04-09 13:07:58: 🔴[nova] Specified snippet fragment "#${snippet}", no matching section found in <.
2021-04-09 13:07:58: 🔘Generating status menu
2021-04-09 13:07:58: ⚪[nova] Launching app (snippet = ?[jay, foo, bar, biz])
*/

@ttscoff
Copy link
Owner

ttscoff commented Apr 9, 2021

With beta 86? Just tested with the above Bunch and got all 4 options to work.

@kjaymiller
Copy link
Author

Still having the same issue. Also FWIW. I restarted the application and updated to Version 1.4.0 (86)

@ttscoff
Copy link
Owner

ttscoff commented Apr 9, 2021 via email

@kjaymiller
Copy link
Author

It's related to another issue where bunch is not crashing but not running. When I quit and reload bunch it corrects the issue and runs. Not sure if this is a caching issue but my assumption it is because I'm making a lot of changes to bunches at the moment.

@ttscoff
Copy link
Owner

ttscoff commented Apr 10, 2021

Bunch should take less than a second to reload after it detects changes, so frequent changes shouldn't really cause issues (I change and toggle bunches in very fast succession when testing changes).

I'd be curious to see whatever you can share from the affected Bunch, it might help me track down issues.

@kjaymiller
Copy link
Author

I think at this point the problem is resolved. If I can recreate the issue, I'll definitely share any information.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants