julia-vscode / DocumentFormat.jl

Auto-formatter for Julia
Other
62 stars 18 forks source link

[WIP] upgrade to Julia 0.7 #21

Closed xiuliren closed 5 years ago

xiuliren commented 6 years ago

still have some test errors. I am using the master branch of CSTParser.jl

   [7] macro expansion at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.0/Test/src/Test.jl:1071 [inlined]
   [8] macro expansion at /usr/people/jingpeng/.julia/dev/DocumentFormat/test/runtests.jl:6 [inlined]
   [9] macro expansion at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.0/Test/src/Test.jl:1083 [inlined]
   [10] top-level scope at /usr/people/jingpeng/.julia/dev/DocumentFormat/test/runtests.jl:5
func call: Test Failed at /usr/people/jingpeng/.julia/dev/DocumentFormat/test/runtests.jl:86
  Expression: format("func(a=1,b; c=1)") == "func(a = 1, b; c = 1)"
   Evaluated: "func(a=1, b; c=1)" == "func(a = 1, b; c = 1)"
Stacktrace:
 [1] macro expansion at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.0/Test/src/Test.jl:1085 [inlined]
 [2] macro expansion at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.0/Test/src/Test.jl:1071 [inlined]
 [3] macro expansion at /usr/people/jingpeng/.julia/dev/DocumentFormat/test/runtests.jl:6 [inlined]
 [4] macro expansion at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.0/Test/src/Test.jl:1083 [inlined]
 [5] top-level scope at /usr/people/jingpeng/.julia/dev/DocumentFormat/test/runtests.jl:5
let: Test Failed at /usr/people/jingpeng/.julia/dev/DocumentFormat/test/runtests.jl:233
  Expression: format("let x = X, y = Y\n    arg\nend") == str
   Evaluated: "            let x = X, y = Y\narg\nend" == "let x = X, y = Y\n    arg\nend"
Stacktrace:
 [1] top-level scope at /usr/people/jingpeng/.julia/dev/DocumentFormat/test/runtests.jl:21
 [2] include at ./boot.jl:317 [inlined]
 [3] include_relative(::Module, ::String) at ./loading.jl:1038
 [4] include(::Module, ::String) at ./sysimg.jl:29
 [5] include(::String) at ./client.jl:388
 [6] top-level scope at none:0
 [7] eval(::Module, ::Any) at ./boot.jl:319
 [8] macro expansion at ./logging.jl:317 [inlined]
 [9] exec_options(::Base.JLOptions) at ./client.jl:219
 [10] _start() at ./client.jl:421
let: Test Failed at /usr/people/jingpeng/.julia/dev/DocumentFormat/test/runtests.jl:237
  Expression: format("let x = X, y = Y\narg\nend") == str
   Evaluated: "            let x = X, y = Y\n    arg\nend" == "let x = X, y = Y\n    arg\nend"
Stacktrace:
 [1] macro expansion at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.0/Test/src/Test.jl:1070 [inlined]
 [2] macro expansion at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.0/Test/src/Test.jl:1074 [inlined]
 [3] macro expansion at /usr/people/jingpeng/.julia/dev/DocumentFormat/test/runtests.jl:6 [inlined]
 [4] macro expansion at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.0/Test/src/Test.jl:1083 [inlined]
 [5] top-level scope at /usr/people/jingpeng/.julia/dev/DocumentFormat/test/runtests.jl:5
Test Summary:      | Pass  Fail  Error  Total
All                |   97     3      1    101
  basic            |    1                   1
  tuples           |   10                  10
  curly            |    6                   6
  unary ops        |    1                   1
  conditional ops  |    5                   5
  binary ops       |   18                  18
  op chain         |    1                   1
  comparison chain |                 1      1
  colon op         |    6                   6
  func call        |    9     1            10
  indents          |    7                   7
  quote            |    3                   3
  for              |    6                   6
  while            |    3                   3
  let              |    3     2             5
  struct           |    3                   3
  mutable struct   |    3                   3
  try-catch        |   12                  12
ERROR: LoadError: Some tests did not pass: 97 passed, 3 failed, 1 errored, 0 broken.
in expression starting at /usr/people/jingpeng/.julia/dev/DocumentFormat/test/runtests.jl:4
ERROR: Package DocumentFormat errored during testing
xiuliren commented 6 years ago

@ZacLN could you please take a look of the errors?

davidanthoff commented 5 years ago

I believe we can close this, right?