question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Not Watching Files

See original GitHub issue

Hey,

With the --watch flag or options present, denon doesn’t seem to watch for changes. I assume i can run a a Deno app with Denon, make a change to the file, and it would show the new change without restarting the server.

My Setup

  • Windows 10
  • Deno application using Drash, with Denon
  • Deno Version:
PS Some\Path\To\My\Project> deno --version
deno 0.33.0
v8 8.1.108
typescript 3.7.2

Command I can running the following command to use denon to initiate the server:

Note: the below command is the way it is because after installing denon, the command for it isn’t working and i can’t be bothered to look into it yet

deno --allow-net --allow-read --allow-run --allow-env --allow-write https://deno.land/x/denon/denon.ts

Config

# .denonrc
{
    "files": [
        "app.ts"
    ],
    "quiet": false,
    "debug": true,
    "fullscreen": true,
    "extensions": [
        "js",
        "ts"
    ],
    "match": [
        "*.ts"
    ],
    "skip": [
        "*_test.ts",
        "*_test.js"
    ],
    "interval": 500,
    "watch": [
        "./"
    ],
    "execute": {
        ".ts": ["deno", "--allow-read", "--allow-env", "--allow-write", "--allow-run", "--allow-net"]
    }
}

Summary Denon runs the app fine, it starts the correct file, and i can view the project in the browser, but watch doesn’t ‘seem’ o be working, for example, i have a console.log('Hello'), i run the app, change the log text to console.log('Hello world'), but still see “Hello” and not “Hello World”

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
ebebbingtoncommented, Feb 20, 2020

I’ll leave it open for whether you want this issue to reference the issues above or not

1reaction
eliassjogreencommented, Feb 20, 2020

Working .denonrc:

{
    "files": [
        "app.ts"
    ],
    "quiet": false,
    "debug": true,
    "fullscreen": true,
    "extensions": [
        ".js",
        ".ts"
    ],
    "interval": 500,
    "watch": [
        "./"
    ],
    "execute": {
        ".ts": ["deno", "--allow-read", "--allow-env", "--allow-write", "--allow-run", "--allow-net"]
    }
}
Read more comments on GitHub >

github_iconTop Results From Across the Web

webpack --watch isn't compiling changed files - Stack Overflow
FYI: it seems OS X can have a folder get corrupted and no longer send fsevents (which watchpack / chokidar /Finder uses) for...
Read more >
Watch and WatchOptions | webpack
Webpack can watch files and recompile whenever they change. This page explains how to enable this and a couple of tweaks you can...
Read more >
npm run watch not actually watching files - Laracasts
When you are watching mix.scripts(), they do not show anything in console, so it's actually working but without any indicator of compilation in...
Read more >
Files in parent directories are not watched #7673 - GitHub
The serve and watch commands seem to only watch files and directories that are at the same level or below the directory of...
Read more >
Watching Files | gulp.js
There is no error or warning message provided because the file watcher keeps your Node process running. Since the process doesn't exit, it...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found