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

futureLogging breaks when asyncnet is imported #21758

Closed
FedericoCeratto opened this issue Apr 30, 2023 · 2 comments
Closed

futureLogging breaks when asyncnet is imported #21758

FedericoCeratto opened this issue Apr 30, 2023 · 2 comments

Comments

@FedericoCeratto
Copy link
Member

FedericoCeratto commented Apr 30, 2023

Description

The futureLogging define breaks compilation. Steps to reproduce:

echo "import std/asyncnet" > myproj.nim
nim c -d:futureLogging myproj.nim

...
/usr/lib/nim/lib/pure/asyncfutures.nim(228, 47) Error: type mismatch: got <FutureVar[nativesockets.Port]>
but expected one of:
proc logFutureFinish(fut: FutureBase)
  first type mismatch at position: 1
  required type for fut: FutureBase
  but expression 'future' is of type: FutureVar[nativesockets.Port]

expression: logFutureFinish(future)

Nim Version

1.6.10

@noahehall
Copy link
Contributor

@FedericoCeratto futureLogging isnt backported to 1.6

see #21716

@ringabout
Copy link
Member

Added to to-dos => nim-lang/backport#1

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