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

Invalid call to getNeighbourNodes #189

Closed
Wavesonics opened this issue Mar 11, 2023 · 4 comments
Closed

Invalid call to getNeighbourNodes #189

Wavesonics opened this issue Mar 11, 2023 · 4 comments
Assignees

Comments

@Wavesonics
Copy link
Contributor

Getting a crash:
by: com.akuleshov7.ktoml.exceptions.InternalAstException: Invalid call to getNeighbourNodes() for TomlFile node

Parsing this file:

email = "test5"
url = "http://localhost:8080"
deviceId = "50694ed7-a93f-4713-9e55-4d512ce2e4db"
bearerToken = "a8DkRGThvz13cmVubFdgX0CsoLfAtXcBvyxiKCPY34FEt3UDmPBkMKFRk4iKRuRp"
refreshToken = "20NSBgKB2B9C2u2toAuiPqlaZgfEWJ4m50562YK9w575SNt31CWrjcpwqeiDCYhZ"

Into this class:

@Serializable
data class ServerSettings(
    val email: String,
    val url: String,
    val deviceId: String,
    val bearerToken: String?,
    val refreshToken: String?,
)
@orchestr7 orchestr7 assigned orchestr7 and unassigned orchestr7 Mar 14, 2023
@orchestr7
Copy link
Owner

I will check this one! thank you for the report

@orchestr7 orchestr7 self-assigned this Mar 18, 2023
orchestr7 added a commit that referenced this issue Mar 18, 2023
### What's done:
- simple test
@orchestr7
Copy link
Owner

orchestr7 commented Mar 18, 2023

@Wavesonics it's strange, but this code works fine in my PR with test reproducer...
https://github.com/akuleshov7/ktoml/pull/192/files
Are you sure that an error is with that code snippet?

@Wavesonics
Copy link
Contributor Author

Wavesonics commented Mar 18, 2023 via email

orchestr7 added a commit that referenced this issue Mar 19, 2023
### What's done:
- simple test to confirm that issue #189 is not reproduced
orchestr7 added a commit that referenced this issue Mar 21, 2023
### What's done:
- simple test
@orchestr7
Copy link
Owner

I will close it as cannot reproduce by for now as it looks like the problem is different one... 😄

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