cosmo0920 / grnline.fs

A tiny command line tool for Groonga.
MIT License
0 stars 2 forks source link

--pretty option doesn't work with 0.0.3 #2

Closed myokoym closed 8 years ago

myokoym commented 8 years ago

I try to use --pretty option with 0.0.3, but it doesn't work:

C:\Users\myokoym\Downloads\grnline.fs-0.0.3>grnline.fs.exe --groonga-path \Users
\myokoym\Downloads\groonga-5.0.9-x64\bin\groonga.exe --db-path \Users\myokoym\.f
eedcellar\db\feedcellar.db --pretty true
grnline.fs(feedcellar)> status

ハンドルされていない例外: Newtonsoft.Json.JsonReaderException: Unexpected charac
ter encountered while parsing number: >. Path '', line 1, position 1.
   場所 Newtonsoft.Json.JsonTextReader.ReadNumberIntoBuffer()
   場所 Newtonsoft.Json.JsonTextReader.ParseNumber()
   場所 Newtonsoft.Json.JsonTextReader.ParseValue()
   場所 Newtonsoft.Json.JsonTextReader.ReadInternal()
   場所 Newtonsoft.Json.JsonTextReader.Read()
   場所 Newtonsoft.Json.Serialization.JsonSerializerInternalReader.ReadForType(J
sonReader reader, JsonContract contract, Boolean hasConverter)
   場所 Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize(J
sonReader reader, Type objectType, Boolean checkAdditionalContent)
   場所 Newtonsoft.Json.JsonSerializer.DeserializeInternal(JsonReader reader, Ty
pe objectType)
   場所 Newtonsoft.Json.JsonConvert.DeserializeObject(String value, Type type, J
sonSerializerSettings settings)
   場所 Program.start_groonga(Config config, FSharpList`1 inputs)
   場所 Program.main(String[] argv)
cosmo0920 commented 8 years ago

This issue is introduced in: https://github.com/cosmo0920/grnline.fs/commit/fe141e6d0b9c54e1b60ebbea51f10d4caa51089b.

Now, I feel that -> in result is redundant. This issue will be fixed with simply removing -> from result which is returned from Groonga.

Could you fix it?