jiro4989 / faker

Faker is a Nim package that generates fake data for you.
https://jiro4989.github.io/faker/faker.html
MIT License
40 stars 8 forks source link

failed to create api documents #76

Closed jiro4989 closed 2 years ago

jiro4989 commented 2 years ago

Describe the bug

https://github.com/jiro4989/faker/runs/4788980545?check_suite_focus=true

jiro4989 commented 2 years ago
Run nimble doc --index:on --project --out:.gh-pages src/faker.nim
  Verifying dependencies for faker@0.14.0
 Generating documentation for src/faker (from package faker) using doc backend
/home/runner/work/faker/faker/src/faker/provider/address/address_ja_JP.nim(3, 4) Error: new section expected (underline '------' is too short)
/home/runner/work/faker/faker/src/faker/provider/address.nim(17, 15) Error: undeclared identifier: 'address_ja_JP'
candidates (edit distance, scope distance); see '--spellSuggest': 
 (4, 4): 'address' [proc declared in /home/runner/work/faker/faker/src/faker/provider/address.nim(10, 6)]
 (4, 5): 'address' [module declared in /home/runner/work/faker/faker/src/faker/provider/address.nim(1, 2)]
/home/runner/work/faker/faker/src/faker/provider/address.nim(17, 15) Error: expression 'address_ja_JP' has no type (or is ambiguous)
/home/runner/work/faker/faker/src/faker/provider/address.nim(17, 28) Error: type mismatch: got <>
but expected one of:
proc address(f: Faker): string
  first type mismatch at position: 2
  extra argument given

expression: address(address_ja_JP, f)
/home/runner/work/faker/faker/src/faker/provider/address.nim(18, 15) Error: undeclared identifier: 'address_en_US'
candidates (edit distance, scope distance); see '--spellSuggest': 
 (4, 4): 'address' [proc declared in /home/runner/work/faker/faker/src/faker/provider/address.nim(10, 6)]
 (4, 5): 'address' [module declared in /home/runner/work/faker/faker/src/faker/provider/address.nim(1, 2)]
 (4, 5): 'address_ja_JP' [unknown declared in /home/runner/work/faker/faker/src/faker/provider/address.nim(17, 15)]
/home/runner/work/faker/faker/src/faker/provider/address.nim(18, 15) Error: expression 'address_en_US' has no type (or is ambiguous)
/home/runner/work/faker/faker/src/faker/provider/address.nim(18, 28) Error: type mismatch: got <>
but expected one of:
proc address(f: Faker): string
  first type mismatch at position: 2
  extra argument given

expression: address(address_en_US, f)
/home/runner/work/faker/faker/src/faker/provider/address.nim(19, 15) Error: undeclared identifier: 'address_fa_IR'
candidates (edit distance, scope distance); see '--spellSuggest': 
 (3, 5): 'address_ja_JP' [unknown declared in /home/runner/work/faker/faker/src/faker/provider/address.nim(17, 15)]
/home/runner/work/faker/faker/src/faker/provider/address.nim(19, 15) Error: expression 'address_fa_IR' has no type (or is ambiguous)
/home/runner/work/faker/faker/src/faker/provider/address.nim(19, 28) Error: type mismatch: got <>
but expected one of:
proc address(f: Faker): string
  first type mismatch at position: 2
  extra argument given

expression: address(address_fa_IR, f)
/home/runner/work/faker/faker/src/faker/provider/address.nim(20, 9) Error: expression 'address_en_US' has no type (or is ambiguous)
/home/runner/work/faker/faker/src/faker/provider/address.nim(20, 22) Error: type mismatch: got <>
but expected one of:
proc address(f: Faker): string
  first type mismatch at position: 2
  extra argument given

expression: address(address_en_US, f)
/home/runner/work/faker/faker/src/faker/provider/address.nim(11, 3) Error: expression '
runnableExamples:
  let f = newFaker()
  echo f.address()
case f.locale
of "ja_JP":
of "en_US":
of "fa_IR":
else:' has no type (or is ambiguous)
/home/runner/work/faker/faker/src/faker/provider/address.nim(29, 15) Error: expression 'address_ja_JP' has no type (or is ambiguous)
/home/runner/work/faker/faker/src/faker/provider/address.nim(29, 28) Error: type mismatch: got <>
but expected one of:
proc buildingNumber(f: Faker): string
  first type mismatch at position: 2
  extra argument given

...
jiro4989 commented 2 years ago

nim 1.4.4 is OK, but nim 1.6.0 is NG.

jiro4989 commented 2 years ago

nimble build is OK. nimble doc --project src/faker.nim is NG.