Skip to content
New issue

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

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

Already on GitHub? # to your account

Sometimes errors does not have path #1131

Open
Mingun opened this issue Sep 1, 2024 · 0 comments
Open

Sometimes errors does not have path #1131

Mingun opened this issue Sep 1, 2024 · 0 comments

Comments

@Mingun
Copy link

Mingun commented Sep 1, 2024

This KSY

meta:
  id: test_type
instances:
  me:
    value: _on

reports the error (note, that this is full text):

java.util.NoSuchElementException: None.get

Compare with that KSY:

meta:
  id: test_type
instances:
  me:
    type:
      switch-on: 1
      cases:
        _on: u1

Error is:

test_type: /instances/me/type/cases/Name(identifier(_on)):
	error: None.get

Note, that error with missing path generated in many other cases (can't remember all the places, I started tracking them after I ran into the latest example).

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

No branches or pull requests

1 participant