bitwalker / bitwalker/toml-elixir

DateTime as first value in table list throws UndefinedError

Open
#22 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Elixir
Stars
206
Forks
32
PR merge metrics
No merged PRs in 30d

Description

When structuring a toml file as:

```
[[entries]]
in = 2019-10-16T13:30:00Z
out = 2019-10-16T17:00:00Z
tags = [
"Elixir"
]
```

The parser fails with: `{:error,
"%Protocol.UndefinedError{description: \"\", protocol: Enumerable, value: ~U[2019-10-16 13:30:00Z]}"}`

When I change the order in the table list as such:

```
[[entries]]
tags = [
"Elixir"
]
in = 2019-10-16T13:30:00Z
out = 2019-10-16T17:00:00Z
```

The parser is happy. 🙂
Any pointers where I could start looking? (I would like to provide a patch for this)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.