extensions icon indicating copy to clipboard operation
extensions copied to clipboard

[Video Downloader] Verbose warning appears in UI

Open chrismessina opened this issue 9 months ago • 2 comments

Extension

https://www.raycast.com/vimtor/video-downloader

Raycast Version

1.104.6

OS Version

macOS 26.3 (25D125)

Description

Image

Not sure if this is intentional, or the best place to put this kind of warning, but it's not where I would expect it to be. I might expect a toast with a warning, with the ability to hit ⌘-T to read the warning, and then copy it.

Steps To Reproduce

  1. Attempt to download a video (like this one) where a JS runtime is needed (might this be ALL downloads??)
  2. See large warning in Raycast UI:
WARNING: [youtube] No supported JavaScript runtime could be found. Only deno is enabled by default; to use another runtime add --js-runtimes RUNTIMEI:PATH] to your command/config. YouTube extraction without a JS runtime has been deprecated, and some formats may be missing. See https://github.com/yt-dlp/yt-dlp/wiki/EJS
for details on installing one

Current Behaviour

  1. Attempt to download a video where a JS runtime is needed (might this be ALL downloads??)
  2. See large warning in Raycast UI:
WARNING: [youtube] No supported JavaScript runtime could be found. Only deno is enabled by default; to use another runtime add --js-runtimes RUNTIMEI:PATH] to your command/config. YouTube extraction without a JS runtime has been deprecated, and some formats may be missing. See https://github.com/yt-dlp/yt-dlp/wiki/EJS
for details on installing one

Expected Behaviour

I expect a toast with a summary of the warning, with the ability to hit ⌘-T to read the warning, and then copy it.

Furthermore, the error that appears should be user-actionable. It's not clear from this error if I should "add --js-runtimes RUNTIMEI:PATH] to your command/config", and if I should, how I should do that, or whether that's even compatible with Raycast.

chrismessina avatar Feb 25 '26 21:02 chrismessina

Thank you for opening this issue!

🔔 @vimtor @pernielsentikaer @darmiel @ridemountainpig @remorses @LitoMore @anwarulislam @yusifaliyevpro @xilopaint you might want to have a look.

💡 Author and Contributors commands

The author and contributors of vimtor/video-downloader can trigger bot actions by commenting:

  • @raycastbot close this issue Closes the issue.
  • @raycastbot close as not planned Closes the issue as not planned.
  • @raycastbot close as duplicate Closes the issue as duplicate.
  • @raycastbot rename this issue to "Awesome new title" Renames the issue.
  • @raycastbot reopen this issue Reopens the issue.
  • @raycastbot assign me Assigns yourself to the issue.
  • @raycastbot good first issue Adds the "Good first issue" label to the issue.
  • @raycastbot keep this issue open Make sure the issue won't go stale and will be kept open by the bot.

raycastbot avatar Feb 25 '26 21:02 raycastbot

This is more than a warning-presentation issue: it can leave yt-dlp without the JavaScript runtime that YouTube extraction now expects, so moving or hiding the warning would not restore potentially missing formats.

I reproduced it with:

  • macOS 15.7.8 (x86_64)
  • Raycast 1.104.25
  • Homebrew 6.0.18-25-g7f20cce
  • yt-dlp 2026.08.19 at /usr/local/bin/yt-dlp
  • Deno 2.9.5 at /usr/local/bin/deno

The extension was already configured with the absolute yt-dlp path, so yt-dlp itself launched successfully. However, it could not discover Deno from the Raycast helper environment. A minimal equivalent run with HOME=/Users/ragtime and PATH=/usr/bin:/bin reported:

[debug] JS runtimes: none
[debug] [youtube] [jsc] JS Challenge Providers: bun (unavailable), deno (unavailable), node (unavailable), quickjs (unavailable)
WARNING: [youtube] No supported JavaScript runtime could be found...

Adding the officially supported absolute runtime path to the recommended yt-dlp user config fixed it:

# ~/.config/yt-dlp/config
--js-runtimes deno:/usr/local/bin/deno

The same metadata invocation then reported:

[debug] User config "/Users/ragtime/.config/yt-dlp/config": ["--js-runtimes", "deno:/usr/local/bin/deno"]
[debug] JS runtimes: deno-2.9.5
[debug] [youtube] [jsc] JS Challenge Providers: bun (unavailable), deno, node (unavailable), quickjs (unavailable)

The missing-runtime warning was gone.

yt-dlp documents that when the runtime is not available through PATH, its executable path should be supplied as --js-runtimes deno:/path/to/deno: https://github.com/yt-dlp/yt-dlp/wiki/EJS

Current video-downloader preferences expose paths for Homebrew, yt-dlp, ffmpeg, and ffprobe, but not Deno: https://github.com/raycast/extensions/blob/ae19453cbf1865b85bf9c5d63a48e887f8925ff1/extensions/video-downloader/package.json

Also, the shared getCommonArgs() does not pass --js-runtimes, although it is used by metadata, download, and transcript invocations: https://github.com/raycast/extensions/blob/ae19453cbf1865b85bf9c5d63a48e887f8925ff1/extensions/video-downloader/src/utils.ts#L232-L247

A root fix could use one shared Deno resolver:

  1. Honor an optional user-configured Deno path.
  2. Check for deno next to the resolved yt-dlp executable.
  3. On macOS, fall back to both /opt/homebrew/bin/deno and /usr/local/bin/deno.
  4. When found, add --js-runtimes deno:<absolute-path> in getCommonArgs(), so UI metadata, downloads, AI tools, and transcripts behave consistently.

#17667 is related as another instance of the extension assuming Homebrew paths that are not available in the Raycast GUI environment, but this Deno warning is the direct symptom tracked here.

ragtimelab avatar Aug 23 '26 10:08 ragtimelab