Skip to content

Failure to Compile with Nim 1.0.2 #1

@tajmone

Description

@tajmone

Attempts to compile test.nim example fails with the following error:

xdom.nim(47, 12) Error: 'typedesc' metatype is not valid here; typed '=' instead of ':'?

Tested under:

  • Windows 10 x64
  • Nim 1.0.2
  • GCC 6.3.0

Since the last nsciter commit dates back to July 2016, my guess is that it was last tested with Nim 0.14.2, which is a very old version of Nim indeed — Nim has undergone many radical changes since v0.14, so it's unlikely that if it worked fine back in 2016 it could compile with the current Nim version.

In September 2019 Nim 1.0 was released. The good news is that the Nim language won't be undergoing any backward-breaking changes (except for features marked as experimental); so fixing nsciter to work with current Nim won't require further changes in the future, unless the Sciter API demands it.

In order to update nsciter code it might be useful to look at the changelogs from Nim 0.14.2 to Nim 0.20.2 (the last pre-1.0 release) and try to figure out what needs to be amended.

Links to Nim Changelogs

Nim changelogs up to v1.0 were published on the official blog up to v1.0:

Their Markdown sources are available at:

Changelogs after Nim 1.0 can now be found at:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions