Vindaar / ggplotnim

A port of ggplot2 for Nim
https://vindaar.github.io/ggplotnim
MIT License
177 stars 15 forks source link

relys on seqmath-0.1.15 which relys on compiler odd behavior #163

Closed bung87 closed 1 year ago

bung87 commented 1 year ago
 nim c -d:noCairo -r tests/tests.nim
  Hint: used config file '/home/runner/work/Nim/Nim/config/nim.cfg' [Conf]
  Hint: used config file '/home/runner/work/Nim/Nim/config/config.nims' [Conf]
  Hint: used config file '/home/runner/work/Nim/Nim/pkgstemp/ggplotnim/nim.cfg' [Conf]
  Hint: used config file '/home/runner/work/Nim/Nim/pkgstemp/ggplotnim/tests/config.nims' [Conf]
  .............................................................................................................................................
  /home/runner/.nimble/pkgs/seqmath-0.1.15/seqmath/smath.nim(768, 20) Error: type mismatch: got <set[int16], int>
  but expected one of:
  func contains[T](x: set[T]; y: T): bool
    first type mismatch at position: 2
    required type for y: T
    but expression 'len(bin_edges)' is of type: int
  4 other mismatching symbols have been suppressed; compile with --showAllMismatches:on to see them

  expression: contains({0, 1, 2}, len(bin_edges))
Vindaar commented 1 year ago

Ah, thanks for the hint. I'll update seqmath and the dependency here.