saem/vscode-nim

undeclared identifier: newContext() with std/net

RokkuCode opened this issue · 1 comments

With the following snippet from the official error i got an error but it compiles fine:

import std/net

let socket = newSocket()
let ctx = newContext()
wrapSocket(ctx, socket)
socket.connect("google.com", Port(443))

Result:
Screenshot_20220314_035201

With hovering the newContext() I got:
Screenshot_20220314_035132

see pragmagic/vscode-nim#70
except that you need to supply the flag -d:ssl instead of --threads:on