Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When using latest nim "[...] util.nim(81, 12) Error: 'nil' is now invalid for 'string';" #8

Open
traverseda opened this issue Nov 3, 2019 · 2 comments

Comments

@traverseda
Copy link

githubcom_zielmichacapnpnim/capnp/util.nim(81, 12) Error: 'nil' is now invalid for 'string';

Nim Compiler Version 1.0.2 [Linux: amd64]

@weskerfoot
Copy link

nimble install --passNim:'--nilseqs:on' capnp works for me

@kvelicka
Copy link

That unfortunately no longer works either:

$ nimble install --passNim:'--nilseqs:on' capnp
Downloading https://github.com/zielmicha/capnp.nim using git
  Verifying dependencies for capnp@0.0.3
      Info: Dependency on collections@>= 0.1.2 already satisfied
  Verifying dependencies for collections@0.5.2
 Installing capnp@0.0.3
   Building capnp/capnp/capnpc using c backend
       Tip: 3 messages have been suppressed, use --verbose to show them.
     Error: Build failed for package: capnp
        ... Details:
        ... Execution failed with exit code 1
        ... Command: "/home/karl/.nimble/bin/nim" c --noNimblePath -d:NimblePkgVersion=0.0.3 --nilseqs:on -d:release --path:"/home/karl/.nimble/pkgs/collections-0.5.2"  -o:"/tmp/nimble_9650/githubcom_zielmichacapnpnim/capnp/capnpc" "/tmp/nimble_9650/githubcom_zielmichacapnpnim/capnp/capnpc.nim"
        ... Output: Hint: used config file '/home/karl/.choosenim/toolchains/nim-1.2.0/config/nim.cfg' [Conf]
        ... Hint: used config file '/tmp/nimble_9650/githubcom_zielmichacapnpnim/capnp/capnpc.nim.cfg' [Conf]
        ... Hint: system [Processing]
        ... Hint: widestrs [Processing]
        ... Hint: io [Processing]
        ... Hint: capnpc [Processing]
        ... Hint: capnp [Processing]
        ... Hint: endians [Processing]
        ... Hint: strutils [Processing]
        ... Hint: parseutils [Processing]
        ... Hint: math [Processing]
        ... Hint: bitops [Processing]
        ... Hint: macros [Processing]
        ... Hint: algorithm [Processing]
        ... Hint: unicode [Processing]
        ... Hint: sequtils [Processing]
        ... Hint: typetraits [Processing]
        ... Hint: reflect [Processing]
        ... Hint: lang [Processing]
        ... Hint: future [Processing]
        ... Hint: underscored_calls [Processing]
        ... Hint: iface [Processing]
        ... Hint: misc [Processing]
        ... Hint: iterate [Processing]
        ... Hint: options [Processing]
        ... Hint: tables [Processing]
        ... Hint: hashes [Processing]
        ... Hint: macrotool [Processing]
        ... Hint: pprint [Processing]
        ... /tmp/nimble_9650/githubcom_zielmichacapnpnim/capnp/util.nim(4, 26) Warning: inherit from a more precise exception type like ValueError, IOError or OSError [InheritFromException]
        ... /tmp/nimble_9650/githubcom_zielmichacapnpnim/capnp/common.nim(5, 26) Warning: inherit from a more precise exception type like ValueError, IOError or OSError [InheritFromException]
        ... /tmp/nimble_9650/githubcom_zielmichacapnpnim/capnp/common.nim(28, 27) Warning: `typed` will change its meaning in future versions of Nim. `void` or no return type declaration at all has the same meaning as the current meaning of `typed` as return type declaration. [Deprecated]
        ... Hint: collections [Processing]
        ... Hint: bytes [Processing]
        ... Hint: base64 [Processing]
        ... Hint: views [Processing]
        ... /home/karl/.nimble/pkgs/collections-0.5.2/collections/bytes.nim(97, 23) Error: type mismatch: got <string, newline: string>
        ... but expected one of:
        ... proc encode(s: string; safe = false): string
        ...   first type mismatch at position: 2
        ...   unknown named parameter: newline
        ... proc encode[T: SomeInteger | char](s: openArray[T]; safe = false): string
        ...   first type mismatch at position: 2
        ...   unknown named parameter: newline
        ... expression: base64.encode(s, newline = "")

I'm on Ubuntu 18.04 an Nim compiler 1.2.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants