rabbit_rabbit
rabbit_rabbit9mo ago

assertEquals deprecated in vscode?

Since upgrading to std@0.202.0 I'm seeing that assertEquals is marked deprecated, but I can't see why. It seems @Xiphoris saw the same issue here https://discord.com/channels/684898665143206084/684898665151594506/1152687831844659360
9 Replies
ioB
ioB9mo ago
assertEquals isn't deprecated, it's just moved Make sure to import it from std@0.202.0/assert/mod.ts (or the single file it's exported from)
rabbit_rabbit
rabbit_rabbit9mo ago
Ah I see, like so
import { assertEquals } from 'std/assert/assert_equals.ts'
import { assertEquals } from 'std/assert/assert_equals.ts'
with my import_map.json like so
{
"imports": {
"std/": "https://deno.land/std@0.202.0/",
}
}
{
"imports": {
"std/": "https://deno.land/std@0.202.0/",
}
}
Thanks!
rabbit_rabbit
rabbit_rabbit9mo ago
I'm also seeing something that may be related. I see that std/testing/bdd.ts is uncached in VS Code, but when I go to cache it I see missing field uri
No description
rabbit_rabbit
rabbit_rabbit9mo ago
Might you have any idea what's going on there?
ioB
ioB9mo ago
Not sure, seems quite strange to me. Any ideas @marvinh.?
marvinh.
marvinh.9mo ago
Err not sure what's going on. Maybe @nayeemrmn can take a look?
rabbit_rabbit
rabbit_rabbit9mo ago
Thanks for your input all, strange indeed! I'll note that running at the command line seems just fine, so the problem may be with the vs code extension?
nayeemrmn
nayeemrmn9mo ago
Hmm I don't know of any version incompatibilities that should cause that. Can you upgrade to Deno 1.37?
rabbit_rabbit
rabbit_rabbit9mo ago
Trying that now... Okay, that fixed it! I was on 1.36.4 until just now Thanks so much!