specs failing...
jasonm23 opened this issue · 1 comments
jasonm23 commented
From a spec run after clone...
Crystal 0.35.1 (2020-06-19)
crystal spec
In lib/lsp/src/lsp/protocol/initialize.cr:3:5
3 | JSON.mapping(
^
Warning: expanding macro
There was a problem expanding macro 'mapping'
Called macro defined in /usr/share/crystal/src/json/mapping.cr:232:3
232 | macro mapping(**_properties_)
Which expanded to:
> 1 | ::JSON.mapping({jsonrpc: String, id: Int32, result: InitializeResult})
2 |
Warning: Deprecated JSON.mapping. use JSON::Serializable instead (the legacy behaviour is also available in a shard at github:crystal-lang/json_mapping.cr)
In src/scry/build_failure.cr:4:10
4 | JSON.mapping({
^------
Warning: Deprecated JSON.mapping. use JSON::Serializable instead (the legacy behaviour is also available in a shard at github:crystal-lang/json_mapping.cr)
In src/scry/implementations.cr:10:12
10 | JSON.mapping(
^------
Warning: Deprecated JSON.mapping. use JSON::Serializable instead (the legacy behaviour is also available in a shard at github:crystal-lang/json_mapping.cr)
In src/scry/implementations.cr:18:12
18 | JSON.mapping(
^------
Warning: Deprecated JSON.mapping. use JSON::Serializable instead (the legacy behaviour is also available in a shard at github:crystal-lang/json_mapping.cr)
In src/scry/hover_provider.cr:10:12
10 | JSON.mapping(
^------
Warning: Deprecated JSON.mapping. use JSON::Serializable instead (the legacy behaviour is also available in a shard at github:crystal-lang/json_mapping.cr)
A total of 5 warnings were found.
F.FFFFFFFFFFFFFFFFF.............FF.FFFF.....................................................2020-09-02T01:46:56.879170Z INFO - scry: Scry Configuration Updated:
{"settings":{"crystal-ide":{"backend":"scry","maxNumberOfProblems":20,"customCommand":"crystal","customCommandArgs":[],"logLevel":"debug"}}}
.......2020-09-02T01:46:56.880490Z DEBUG - scry: initialize
2020-09-02T01:46:56.880820Z DEBUG - scry: Starting to build dependancy graph for these paths: /home/main/Projects/Experiment/lib
/workspace/gitpod-crystal/scry/spec/fixtures/completion//lib
ib
/usr/bin/../share/crystal/sr
/workspace/gitpod-crystal/scry/spec/fixtures/
2020-09-02T01:46:56.882287Z DEBUG - scry: workspace/didChangeConfiguration
2020-09-02T01:46:56.882867Z INFO - scry: Scry Configuration Updated:
{"settings":{"crystal-lang":{"maxNumberOfProblems":100,"backend":"scry","customCommand":"crystal","customCommandArgs":[],"logLevel":"debug"}}}
2020-09-02T01:46:56.883459Z DEBUG - scry: textDocument/didOpen
2020-09-02T01:46:56.962201Z DEBUG - scry: textDocument/didChange
2020-09-02T01:46:56.962812Z DEBUG - scry: workspace/didChangeWatchedFiles
2020-09-02T01:46:57.044035Z DEBUG - scry: workspace/didChangeWatchedFiles
.2020-09-02T01:46:57.044708Z DEBUG - scry: textDocument/hover
2020-09-02T01:46:57.044887Z DEBUG - scry: Ignoring path: workspace/gitpod-crystal/scry/spec/fixtures/src/some_file.cr
.2020-09-02T01:46:57.045409Z DEBUG - scry: textDocument/definition
2020-09-02T01:46:57.045553Z DEBUG - scry: Ignoring path: workspace/gitpod-crystal/scry/spec/fixtures/src/some_file.cr
.2020-09-02T01:46:57.046036Z DEBUG - scry: textDocument/completion
2020-09-02T01:46:57.046208Z DEBUG - scry: Ignoring path: workspace/gitpod-crystal/scry/spec/fixtures/src/some_file.cr
.2020-09-02T01:46:57.046774Z DEBUG - scry: textDocument/documentSymbol
2020-09-02T01:46:57.046959Z DEBUG - scry: Ignoring path: workspace/gitpod-crystal/scry/spec/fixtures/src/some_file.cr
.2020-09-02T01:46:57.047638Z DEBUG - scry: textDocument/didOpen
2020-09-02T01:46:57.047806Z DEBUG - scry: Ignoring path: workspace/gitpod-crystal/scry/spec/fixtures/src/some_file.cr
.2020-09-02T01:46:57.048426Z DEBUG - scry: textDocument/hover
2020-09-02T01:46:57.048591Z DEBUG - scry: Ignoring path: private://workspace/gitpod-crystal/scry/spec/fixtures/src/some_file.cr
.2020-09-02T01:46:57.049096Z DEBUG - scry: textDocument/definition
2020-09-02T01:46:57.049237Z DEBUG - scry: Ignoring path: private://workspace/gitpod-crystal/scry/spec/fixtures/src/some_file.cr
.2020-09-02T01:46:57.049735Z DEBUG - scry: textDocument/completion
2020-09-02T01:46:57.049921Z DEBUG - scry: Ignoring path: private://workspace/gitpod-crystal/scry/spec/fixtures/src/some_file.cr
.2020-09-02T01:46:57.050615Z DEBUG - scry: textDocument/documentSymbol
2020-09-02T01:46:57.050826Z DEBUG - scry: Ignoring path: private://workspace/gitpod-crystal/scry/spec/fixtures/src/some_file.cr
.2020-09-02T01:46:57.051351Z DEBUG - scry: textDocument/didOpen
2020-09-02T01:46:57.051590Z DEBUG - scry: Ignoring path: private://workspace/gitpod-crystal/scry/spec/fixtures/src/some_file.cr
.2020-09-02T01:46:57.052208Z DEBUG - scry: textDocument/hover
2020-09-02T01:46:57.052381Z DEBUG - scry: Ignoring path: workspace/gitpod-crystal/scry/spec/fixtures/src/some_file.cr
.2020-09-02T01:46:57.053119Z DEBUG - scry: textDocument/definition
2020-09-02T01:46:57.053286Z DEBUG - scry: Ignoring path: workspace/gitpod-crystal/scry/spec/fixtures/src/some_file.cr
.2020-09-02T01:46:57.053845Z DEBUG - scry: textDocument/completion
2020-09-02T01:46:57.054005Z DEBUG - scry: Ignoring path: workspace/gitpod-crystal/scry/spec/fixtures/src/some_file.cr
.2020-09-02T01:46:57.054544Z DEBUG - scry: textDocument/documentSymbol
2020-09-02T01:46:57.054706Z DEBUG - scry: Ignoring path: workspace/gitpod-crystal/scry/spec/fixtures/src/some_file.cr
.2020-09-02T01:46:57.055225Z DEBUG - scry: textDocument/didOpen
2020-09-02T01:46:57.055388Z DEBUG - scry: Ignoring path: workspace/gitpod-crystal/scry/spec/fixtures/src/some_file.cr
.
Failures:
1) Scry::CompletionProvider module completion completes "require \"arr"
Failure/Error: it_completes("require \"arr", ["array"])
Expected: []
to have at least: ["array"]
# spec/scry/completion_provider_spec.cr:62
2) Scry::CompletionProvider method completion boolean methods completes "a = true\n a."
Failure/Error: it_completes "a = true
Expected: []
to have at least: ["!=", "&", "==", "^", "clone", "hash", "to_json", "to_s", "to_s", "to_unsafe", "to_yaml", "|"]
# spec/scry/completion_provider_spec.cr:70
3) Scry::CompletionProvider method completion boolean methods completes "a = false\n a."
Failure/Error: it_completes "a = false
Expected: []
to have at least: ["!=", "&", "==", "^", "clone", "hash", "to_json", "to_s", "to_s", "to_unsafe", "to_yaml", "|"]
# spec/scry/completion_provider_spec.cr:73
4) Scry::CompletionProvider method completion boolean methods completes "a =\n false\n a."
Failure/Error: it_completes "a =
Expected: []
to have at least: ["!=", "&", "==", "^", "clone", "hash", "to_json", "to_s", "to_s", "to_unsafe", "to_yaml", "|"]
# spec/scry/completion_provider_spec.cr:76
5) Scry::CompletionProvider method completion boolean methods completes "a = 1\n a = true\n a."
Failure/Error: it_completes "a = 1
Expected: []
to have at least: ["!=", "&", "==", "^", "clone", "hash", "to_json", "to_s", "to_s", "to_unsafe", "to_yaml", "|"]
# spec/scry/completion_provider_spec.cr:80
6) Scry::CompletionProvider method completion boolean methods completes "a = true\n a.to_"
Failure/Error: it_completes("a = true
Expected: []
to have at least: ["to_json", "to_s", "to_s", "to_unsafe", "to_yaml"]
# spec/scry/completion_provider_spec.cr:84
7) Scry::CompletionProvider method completion int32 completes "a = 1\n a."
Failure/Error: it_completes "a = #{i}
Expected: []
to have at least: ["-", "clone", "popcount"]
# spec/scry/completion_provider_spec.cr:92
8) Scry::CompletionProvider method completion int32 completes "a = 2\n a."
Failure/Error: it_completes "a = #{i}
Expected: []
to have at least: ["-", "clone", "popcount"]
# spec/scry/completion_provider_spec.cr:92
9) Scry::CompletionProvider method completion int32 completes "a = 3\n a."
Failure/Error: it_completes "a = #{i}
Expected: []
to have at least: ["-", "clone", "popcount"]
# spec/scry/completion_provider_spec.cr:92
10) Scry::CompletionProvider method completion int32 completes "a = 4\n a."
Failure/Error: it_completes "a = #{i}
Expected: []
to have at least: ["-", "clone", "popcount"]
# spec/scry/completion_provider_spec.cr:92
11) Scry::CompletionProvider method completion int32 completes "a = 5\n a."
Failure/Error: it_completes "a = #{i}
Expected: []
to have at least: ["-", "clone", "popcount"]
# spec/scry/completion_provider_spec.cr:92
12) Scry::CompletionProvider method completion int32 completes "a = 6\n a."
Failure/Error: it_completes "a = #{i}
Expected: []
to have at least: ["-", "clone", "popcount"]
# spec/scry/completion_provider_spec.cr:92
13) Scry::CompletionProvider method completion int32 completes "a = 7\n a."
Failure/Error: it_completes "a = #{i}
Expected: []
to have at least: ["-", "clone", "popcount"]
# spec/scry/completion_provider_spec.cr:92
14) Scry::CompletionProvider method completion int32 completes "a = 8\n a."
Failure/Error: it_completes "a = #{i}
Expected: []
to have at least: ["-", "clone", "popcount"]
# spec/scry/completion_provider_spec.cr:92
15) Scry::CompletionProvider method completion int32 completes "a = 9\n a."
Failure/Error: it_completes "a = #{i}
Expected: []
to have at least: ["-", "clone", "popcount"]
# spec/scry/completion_provider_spec.cr:92
16) Scry::CompletionProvider method completion int32 completes "a = 10\n a."
Failure/Error: it_completes "a = #{i}
Expected: []
to have at least: ["-", "clone", "popcount"]
# spec/scry/completion_provider_spec.cr:92
17) Scry::CompletionProvider method completion int32 completes "a = true\n a = 1\n a."
Failure/Error: it_completes "a = true
Expected: []
to have at least: ["-", "clone", "popcount"]
# spec/scry/completion_provider_spec.cr:96
18) Scry::CompletionProvider method completion int32 completes "def blah(a : A)\n end\n def blah_2(a : Node)\n a = 2\n a."
Failure/Error: it_completes "def blah(a : A)
Expected: []
to have at least: ["-", "clone", "popcount"]
# spec/scry/completion_provider_spec.cr:99
19) Scry::CompletionProvider module, struct and class name completion completes "A"
Failure/Error: it_completes("A", %w(Array Atomic Atomic::Flag ArgumentError))
Expected: []
to have at least: ["Array", "Atomic", "Atomic::Flag", "ArgumentError"]
# spec/scry/completion_provider_spec.cr:160
20) Scry::CompletionProvider module, struct and class name completion completes " ::A"
Failure/Error: it_completes(" ::A", %w(Array Atomic Atomic::Flag ArgumentError))
Expected: []
to have at least: ["Array", "Atomic", "Atomic::Flag", "ArgumentError"]
# spec/scry/completion_provider_spec.cr:161
21) Scry::CompletionProvider module, struct and class name completion completes "JSON::P"
Failure/Error: it_completes("JSON::P", %w(ParseException Parser PullParser))
Expected: []
to have at least: ["ParseException", "Parser", "PullParser"]
# spec/scry/completion_provider_spec.cr:163
22) Scry::CompletionProvider module, struct and class name completion completes "JSON::Pa"
Failure/Error: it_completes("JSON::Pa", %w(ParseException Parser))
Expected: []
to have at least: ["ParseException", "Parser"]
# spec/scry/completion_provider_spec.cr:164
23) Scry::CompletionProvider module, struct and class name completion completes "JSON::"
Failure/Error: it_completes("JSON::", %w(Any Builder Error Lexer Lexer::IOBased Lexer::StringBased MappingError ParseException Parser PullParser Serializable Serializable::Strict Serializable::Unmapped Token))
Expected: []
to have at least: ["Any", "Builder", "Error", "Lexer", "Lexer::IOBased", "Lexer::StringBased", "MappingError", "ParseException", "Parser", "PullParser", "Serializable", "Serializable::Strict", "Serializable::Unmapped", "Token"]
# spec/scry/completion_provider_spec.cr:165
24) Scry::CompletionProvider module, struct and class name completion completes "JSO"
Failure/Error: it_completes("JSO", %w(JSON JSON::Any JSON::Builder JSON::Error JSON::Lexer JSON::Lexer::IOBased JSON::Lexer::StringBased JSON::MappingError JSON::ParseException JSON::Parser JSON::PullParser JSON::Serializable JSON::Serializable::Strict JSON::Serializable::Unmapped JSON::Token))
Expected: []
to have at least: ["JSON", "JSON::Any", "JSON::Builder", "JSON::Error", "JSON::Lexer", "JSON::Lexer::IOBased", "JSON::Lexer::StringBased", "JSON::MappingError", "JSON::ParseException", "JSON::Parser", "JSON::PullParser", "JSON::Serializable", "JSON::Serializable::Strict", "JSON::Serializable::Unmapped", "JSON::Token"]
# spec/scry/completion_provider_spec.cr:166
Finished in 4.11 seconds
115 examples, 24 failures, 0 errors, 0 pending
Failed examples:
crystal spec spec/scry/completion_provider_spec.cr:62 # Scry::CompletionProvider module completion completes "require \"arr"
crystal spec spec/scry/completion_provider_spec.cr:70 # Scry::CompletionProvider method completion boolean methods completes "a = true\n a."
crystal spec spec/scry/completion_provider_spec.cr:73 # Scry::CompletionProvider method completion boolean methods completes "a = false\n a."
crystal spec spec/scry/completion_provider_spec.cr:76 # Scry::CompletionProvider method completion boolean methods completes "a =\n false\n a."
crystal spec spec/scry/completion_provider_spec.cr:80 # Scry::CompletionProvider method completion boolean methods completes "a = 1\n a = true\n a."
crystal spec spec/scry/completion_provider_spec.cr:84 # Scry::CompletionProvider method completion boolean methods completes "a = true\n a.to_"
crystal spec spec/scry/completion_provider_spec.cr:92 # Scry::CompletionProvider method completion int32 completes "a = 1\n a."
crystal spec spec/scry/completion_provider_spec.cr:92 # Scry::CompletionProvider method completion int32 completes "a = 2\n a."
crystal spec spec/scry/completion_provider_spec.cr:92 # Scry::CompletionProvider method completion int32 completes "a = 3\n a."
crystal spec spec/scry/completion_provider_spec.cr:92 # Scry::CompletionProvider method completion int32 completes "a = 4\n a."
crystal spec spec/scry/completion_provider_spec.cr:92 # Scry::CompletionProvider method completion int32 completes "a = 5\n a."
crystal spec spec/scry/completion_provider_spec.cr:92 # Scry::CompletionProvider method completion int32 completes "a = 6\n a."
crystal spec spec/scry/completion_provider_spec.cr:92 # Scry::CompletionProvider method completion int32 completes "a = 7\n a."
crystal spec spec/scry/completion_provider_spec.cr:92 # Scry::CompletionProvider method completion int32 completes "a = 8\n a."
crystal spec spec/scry/completion_provider_spec.cr:92 # Scry::CompletionProvider method completion int32 completes "a = 9\n a."
crystal spec spec/scry/completion_provider_spec.cr:92 # Scry::CompletionProvider method completion int32 completes "a = 10\n a."
crystal spec spec/scry/completion_provider_spec.cr:96 # Scry::CompletionProvider method completion int32 completes "a = true\n a = 1\n a."
crystal spec spec/scry/completion_provider_spec.cr:99 # Scry::CompletionProvider method completion int32 completes "def blah(a : A)\n end\n def blah_2(a : Node)\n a = 2\n a."
crystal spec spec/scry/completion_provider_spec.cr:160 # Scry::CompletionProvider module, struct and class name completion completes "A"
crystal spec spec/scry/completion_provider_spec.cr:161 # Scry::CompletionProvider module, struct and class name completion completes " ::A"
crystal spec spec/scry/completion_provider_spec.cr:163 # Scry::CompletionProvider module, struct and class name completion completes "JSON::P"
crystal spec spec/scry/completion_provider_spec.cr:164 # Scry::CompletionProvider module, struct and class name completion completes "JSON::Pa"
crystal spec spec/scry/completion_provider_spec.cr:165 # Scry::CompletionProvider module, struct and class name completion completes "JSON::"
crystal spec spec/scry/completion_provider_spec.cr:166 # Scry::CompletionProvider module, struct and class name completion completes "JSO"