Skip to content

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

Open

Description

@traverseda

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

Nim Compiler Version 1.0.2 [Linux: amd64]

Activity

  1. weskerfoot commented on Dec 5, 2019

    @weskerfoot

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

  2. kvelicka commented on Apr 23, 2020

    @kvelicka

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions