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

Can't find key #15

Closed
turrnut opened this issue Nov 25, 2024 · 4 comments
Closed

Can't find key #15

turrnut opened this issue Nov 25, 2024 · 4 comments
Assignees
Labels
bug Something isn't working Prio: H High priority runtime windows

Comments

@turrnut
Copy link

turrnut commented Nov 25, 2024

Bug summary

It says it can't find a key even though the key exists

OS

Windows 11

Step of use

Runtime

Steps to reproduce

So I have a file called test.ebsl with content as follows:

key=value1,value2
key2=value3,value4
key3=value5,value6

When I run

build\ebsl.exe file=test.ebsl amt=2 key=key2

it prints

Error: the specified key key2 does not exist

However when I run:

build\ebsl.exe file=test.ebsl key=key amt=2

it works just fine

Expected behavior

It is suppose to recognize key2 as one of the keys

Screenshots

GITHUBISSUE

@turrnut turrnut added the bug Something isn't working label Nov 25, 2024
@aarikpokras
Copy link
Owner

aarikpokras commented Nov 26, 2024

That's so strange. I'm looking into this now. @turrnut, can you clarify what version this is?

@aarikpokras aarikpokras added the Prio: H High priority label Nov 26, 2024
@aarikpokras
Copy link
Owner

aarikpokras commented Nov 26, 2024

@turrnut, I believe I found the problem. It's the else statement checking if there isn't a regex match for the key. I got rid of it and plan to upload it soon. In the interim, I believe the release v2.2.0 works fine, except with amt, you need to add one to the amount. For example:

./ebsl file=file key=key amt=2
# This will print 1 key

This will be fixed soon.

@aarikpokras
Copy link
Owner

@turrnut, this major bug is removed at the price of a smaller one, where it throws an abort trap when the key isn't found. I'll keep this and work on a way to fix it.

@aarikpokras
Copy link
Owner

Hi @turrnut, I fixed it! Thank you for telling me this!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Prio: H High priority runtime windows
Projects
None yet
Development

No branches or pull requests

3 participants