You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
use TOML;
const tomlFile =open("example.toml", iomode.r);
const toml = parseToml(tomlFile);
example.toml
# This is a TOML document.title = "Hello World"
[owner]
name = "Sanket Chaudhari"dob = 2000-04-30# Line no. 7
⬆️ is a valid TOML file but still Chapel TOML Parser has issues with dates #7104
Shows line number 5 even though its on line number 7. Since developer will seek the line number shown in the error message, Its expected to show Line 7: Illegal Value -> 2000-04-30
$ chpl toml_example.chpl
$ ./toml_example
Line 5: Illegal Value -> 2000-04-30
Configuration
chpl --version
chpl version 1.20.0 pre-release (5177e24c7f)
Copyright (c) 2004-2019, Cray Inc. (See LICENSE file for more details)
TOML Parser: Added newline to linetokens
closes#12776 where newlines were not accounted for in the line number being reported in an error message.
[Contributed by @sanket143]
[Reviewed by @ben-albrecht]
While parsing a TOML file
toml_example.chpl
example.toml
⬆️ is a valid TOML file but still Chapel TOML Parser has issues with dates #7104
Shows line number 5 even though its on line number 7. Since developer will seek the line number shown in the error message, Its expected to show
Line 7: Illegal Value -> 2000-04-30
$ chpl toml_example.chpl $ ./toml_example Line 5: Illegal Value -> 2000-04-30
Configuration
chpl --version
$CHPL_HOME/util/printchplenv --anonymize
gcc --version
gcc (GCC) 8.2.1
The text was updated successfully, but these errors were encountered: