D
Deno

help

Issues getting local environment running in VSCode and Visual Studio 2022

Ddomjmonaco8/15/2023
I'm a windows user trying to contribute on an github issue, but I've run into a few blockers. Using my IDE of choice, VSCode, I couldn't complete the build step. I ended up following the docs and trying Visual Studio 2022, which completed the build step with 0 friction. My main blocker with Visual Studio 2022 is that when I attempt to open the Deno repo folder, it freezes, then crashes. Broadly speaking, I'm wondering if anyone else has encountered this issue with Visual Studio 2022? I'd also be interested in hearing if any other windows users have been able to contribute with VSCode, as that would be preferential for me to work in. The error I'm getting in VSCode on running cargo build -vv is as follows:
--- stderr
thread 'main' panicked at '
failed to execute command: program not found
is `cmake` not installed?
--- stderr
thread 'main' panicked at '
failed to execute command: program not found
is `cmake` not installed?
Mmarvinh.8/15/2023
iirc most of the team uses vscode, including folks on windows. The error sounds like the cmake.exe cannot be found in the systems PATH variable. Maybe the windows folks here can chime in?
Ddomjmonaco8/15/2023
Thanks for the quick response! That's good super insightful, hopefully it's something simple I'm just overlooking.
Rrustbull8/16/2023
I actually encountered this same issue on MacOS. tl;dr cmake is a required build tool. I don't have a Windows machine to test the installation, but I believe you can download the binaries here: https://cmake.org/download/
IioB8/16/2023
I've never heard of someone using Visual Studio 2022 to develop Deno. I'm sure it works, but most of the setup instructions I've seen are around VSCode.
Ddomjmonaco8/16/2023
Oh I'll make sure to try this! Thanks for recommending this solution The docs for contributing tell windows users to use Visual Studio 2019 for Cmake and a few other options:
For Windows users:

Get VS Community 2019 with “Desktop development with C++” toolkit and make sure to select the following required tools listed below along with all C++ tools.
Visual C++ tools for CMake
Windows 10 SDK (10.0.17763.0)
Testing tools core features - Build Tools
Visual C++ ATL for x86 and x64
Visual C++ MFC for x86 and x64
C++/CLI support
VC++ 2015.3 v14.00 (v140) toolset for desktop
For Windows users:

Get VS Community 2019 with “Desktop development with C++” toolkit and make sure to select the following required tools listed below along with all C++ tools.
Visual C++ tools for CMake
Windows 10 SDK (10.0.17763.0)
Testing tools core features - Build Tools
Visual C++ ATL for x86 and x64
Visual C++ MFC for x86 and x64
C++/CLI support
VC++ 2015.3 v14.00 (v140) toolset for desktop
If there is a method of doing this in VSCode I would love to be able to!
IioB8/16/2023
Deno doesn't use C++? Where is this from?
Ddomjmonaco8/16/2023
Deno
Building from Source | Manual | Deno
Below are instructions on how to build Deno from source. If you just want to use Deno you can download a prebuilt executable (more information in the [Getting Started](../../getting_started/install
Ddomjmonaco8/16/2023
I'm starting to feel like I went down the wrong alleyway with this blobsweat
IioB8/16/2023
Yeah, unless you want to build v8 from scratch (you don't), you don't need to do this
Ddomjmonaco8/16/2023
Ah ok that makes sense. When I saw I was having trouble with Cmake in VSCode I re-referenced the docs and saw that these docs seemed to have a way of handling it. Appreciate your help! I'll try @rustbull's solution/Cmake specific solutions with VSCode. Thank you! Downloading the binary seemed to have worked! I was able to run cargo test integration::test which seems to be all I need for my issue. Thanks so much for the help everyone

Looking for more? Join the community!

Recommended Posts
Relative import path "ioredis" not prefixed with / or ./ or ../```ts // main.ts import Redis from "ioredis"; ``` ```json // deno.json { "imports": { "ioredisPixi.js breaks DenoI'm trying to import Pixi in a Fresh island: ``` import { Sprite, Stage } from "npm:@pixi/react@7.1Confused by deno vendor-related behaviorsI created a main.ts containing this code: ``` import * as thrift from "npm:thrift"; let connection =How to release node:zlib resourcesI have some testcases which use the `node:zlib` polyfill and I'm having a bit of trouble getting theDeno Repl ProgrammaticallyPython has a really nice not-well-known tool for creating a repl at any point in the code (kinda likDeno for SASS dependencies?I'm trying to understand how I would migrate from Jekyll and NPM to Lume and Deno. Specifically, I uHow can I send a number across a Deno.TcpConn as stream of bytes?I need to send a number across a Deno.TcpConn as 4 bytes, so it can be read by a server as an int32.Migrating `Deno.run` to `Deno.command` with `readlines`I had the following: ```ts browserProcess = Deno.run({ cmd: buildArgs, // eg chrome exe path, thError: Not implemented: crypto.KeyObject.prototype.asymmetricKeyTypeHello. Im trying to create a RSA Keypair, using the node **crypto.generateKeyPair** function, but i `Uncaught TypeError: encode is not a function` when using npm module `@kubernetes-client/node`I'm trying to use a particular call in the npm module `@kubernetes/client-node` from deno, but I'm gLinking to external codeif i want to link to external code, do i have to import it from https://deno.land?Impossible to install Deno on Linux Ubuntu LTS (22.04) x86_64Hello Context & Tech : Trying to install Deno on Linux Ubuntu LTS v22.04 on x86_64 architecture PrGet length of video (stream. m3u8)In deno/typescript, how can i get the length of a specific video stream (m3u8)?github account blocked errori changed email my old account to another account and when i login to deno deploy with that account npm:axios not returning anythingI'm trying to troubleshoot a problem with axios (the same snippet works fine on node). I'm callingextension method returning undefined for `text/plain`Given the following: ```ts console.log( "text/plain", extension("text/plain"), extensioServing multiple static files to an HTTP requestIf a client sends a request for an array of static files names like so. ```["component01.js", "compoKv encodes integer as doubleAnyone know why Deno.kv encodes an integer in a mutli-part key as a double? ``` const key = ["int",Looking for caching API ResponsesHello there, I'm looking for a package/or examples to cache API responses for a fresh project whicUsing ZeroMQ from NPMAnyone got fixed the same error as this issue? https://github.com/denoland/deno/issues/18345