D
Deno

help

assertEquals deprecated in vscode?

Rrabbit_rabbit9/27/2023
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
IioB9/27/2023
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)
Rrabbit_rabbit9/27/2023
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!
Rrabbit_rabbit9/27/2023
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
Rrabbit_rabbit9/27/2023
Might you have any idea what's going on there?
IioB9/27/2023
Not sure, seems quite strange to me. Any ideas @marvinh.?
Mmarvinh.9/27/2023
Err not sure what's going on. Maybe @nayeemrmn can take a look?
Rrabbit_rabbit9/27/2023
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?
Nnayeemrmn9/27/2023
Hmm I don't know of any version incompatibilities that should cause that. Can you upgrade to Deno 1.37?
Rrabbit_rabbit9/27/2023
Trying that now... Okay, that fixed it! I was on 1.36.4 until just now Thanks so much!

Looking for more? Join the community!

Recommended Posts
Force await import() to import a fresh copy?I have a Deno instance that dynamically loads a module with: `await import("some/module.js")` The mFresh ClassList Brokenhttps://github.com/Leave TLS connection open in between testsWhen I have 2 tests that use a database connection and attempt to close the connection `afterAll` thNvim tsserver clash with denolsI have read the docs and added a root_dir in my lua lsp file but for some reason tsserver still lanccircular type reference nonsensewhy does removing an array nest cause this to be a circular dependency?? shouldn't it be functionallGetting exports from an evaluated module with get_module_namespace always results in null valuesTrying to get module exports like the example [here](https://github.com/denoland/deno/pull/14026/fiIs there any way to define a signal inside a route component?Is there any way to define a signal inside a route component? I am trying to do it but an error raiDeno EmitHow come does `deno bundle` work a lot differently to Deno emit (https://deno.land/x/emit@0.28.0 )? `deno lsp` does not understand bare imports without prefixEven in minimal project, freshly created from a template, Deno marks imports as errors and doesn't uWhen I use crypto in this code, it returns 'Unknown cipher.'const secret ="**1111111111111111111**"; let encryptedText='test'; const decipher = crypto.cTroubleshooting deno.land downloadsI have docker containers, within a minikube cluster, that have trouble downloading https://deno.landRun remote Fresh application code locally.Is it possible to run a remotely hosted Fresh application? E.g. I'm attempting to do `deno run -A hmigrate from node to deno: p5js projectHi, I want to rewrite my p5js project built with nodejs in deno. Here is my code: https://github.coPeer dependencyCan I somehow mark a dependency as "peer"? So this dependency (which is known to shuffle typings bet'Spawn' multiple promises from the same moduleI'm trying to use Deno for scripted npcs in a game, the main issue that the npc has to await user acReturn results from execute_main_moduleI currently have this function to run some execute some js ``` pub async fn run(&self, path_to_Fresh Blog + Website Thingshttps://vuepress-theme-yuu.netlify.app/, what is the closest thing to that which can be run on FreshDetermine subcommandIf I run `deno test` from the command line, how can I determine that `test` is the subcommand being setting a cookie for import requestsis there a way to modify request headers or set cookies for the GET requests that deno makes when reHow to run tailwindcss cli with deno task?I would like to be able to run the tailwindcss cli tool to watch and build stylesheets as per their