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

Cant compile on nim=1.2.0 #24

Closed
ThomasTJdev opened this issue Apr 7, 2020 · 0 comments
Closed

Cant compile on nim=1.2.0 #24

ThomasTJdev opened this issue Apr 7, 2020 · 0 comments

Comments

@ThomasTJdev
Copy link
Contributor

System: Linux, Arch
Nim version: 1.0.6, 1.1.0, devel

The problem happens in all my programs and also in the examples in the repo.

Bug

nimpdf/nimPDF/base14.nim(349, 5) Error: type mismatch: got <tuple of (string, string, proc (cp: int): int{.locks: 0.}, bool, int, int, int, int, tuple of (int, int, int, int))> but expected 'tuple of (string, string, proc (cp: int): int{.noSideEffect, gcsafe, locks: 0.}, bool, int, int, int, int, tuple of (int, int, int, int))'
      ("Helvetica", "Helvetica00", helveticaGetWidth, false, 718, -207, 523, 718,(-166, -225, 1000, 931) ),
      ^

Output

nim c demo
Hint: used config file '.choosenim/toolchains/nim-1.2.0/config/nim.cfg' [Conf]
Hint: used config file 'nimpdf/demo/nim.cfg' [Conf]
Hint: used config file 'demo.nim.cfg' [Conf]
Hint: system [Processing]
Hint: widestrs [Processing]
Hint: io [Processing]
Hint: demo [Processing]
Hint: streams [Processing]
Hint: math [Processing]
Hint: bitops [Processing]
Hint: macros [Processing]
Hint: basic2d [Processing]
Hint: strutils [Processing]
Hint: parseutils [Processing]
Hint: algorithm [Processing]
Hint: unicode [Processing]
Hint: nimPDF [Processing]
Hint: image [Processing]
Hint: nimBMP [Processing]
Hint: endians [Processing]
Hint: tables [Processing]
Hint: hashes [Processing]
Hint: os [Processing]
Hint: pathnorm [Processing]
Hint: osseps [Processing]
Hint: posix [Processing]
Hint: times [Processing]
Hint: options [Processing]
Hint: typetraits [Processing]
Hint: nimPNG [Processing]
Hint: buffer [Processing]
Hint: sequtils [Processing]
Hint: nimz [Processing]
Hint: objects [Processing]
Hint: encrypt [Processing]
Hint: md5 [Processing]
Hint: nimSHA2 [Processing]
Hint: nimAES [Processing]
Hint: random [Processing]
nimpdf/nimPDF/objects.nim(492, 8) Warning: method has lock level <unknown>, but another method has 0 [LockLevel]
Hint: read [Processing]
Hint: components [Processing]
Hint: gstate [Processing]
Hint: Font [Processing]
Hint: FontData [Processing]
Hint: ByteArray [Processing]
Hint: FontIOStreams [Processing]
Hint: LOCATable [Processing]
Hint: GLYPHTable [Processing]
Hint: sets [Processing]
Hint: HEADTable [Processing]
Hint: HDMXTable [Processing]
Hint: NAMETable [Processing]
Hint: HHEATable [Processing]
Hint: HMTXTable [Processing]
Hint: MAXPTable [Processing]
Hint: OS2Table [Processing]
Hint: CMAPTable [Processing]
Hint: POSTTable [Processing]
Hint: VHEATable [Processing]
Hint: VMTXTable [Processing]
Hint: path [Processing]
Hint: fontmanager [Processing]
Hint: base14 [Processing]
nimpdf/nimPDF/base14.nim(349, 5) Error: type mismatch: got <tuple of (string, string, proc (cp: int): int{.locks: 0.}, bool, int, int, int, int, tuple of (int, int, int, int))> but expected 'tuple of (string, string, proc (cp: int): int{.noSideEffect, gcsafe, locks: 0.}, bool, int, int, int, int, tuple of (int, int, int, int))'
@jangko jangko closed this as completed in b7d9847 Apr 8, 2020
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

1 participant