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.

Denon does not watch files in subfolders.

See original GitHub issue

Describe the bug denon does not seem to be watching files in subfolders. As I observed my server would restart if I changed files in the root of the folder but not in subfolders.

Here’s my tree . β”œβ”€β”€ controller β”‚ β”œβ”€β”€ post_controller.ts β”‚ └── user_controller.ts β”œβ”€β”€ denon.json β”œβ”€β”€ deps.ts β”œβ”€β”€ mod.ts β”œβ”€β”€ models β”‚ β”œβ”€β”€ post.ts β”‚ └── user.ts β”œβ”€β”€ routes β”‚ └── routes.ts └── utils └── db.ts

Expected behavior Changing mod.ts, Denon.json, and deps.ts restarts the server but changing any other file does not.

Setup

  • OS: Ubuntu 20.04 on WSL2
  • Deno version: 1.1.3
  • Denon version: 2.2.0

denon.json

{
  "$schema": "https://deno.land/x/denon/schema.json",
  "scripts": {
    "dev": "deno  run --allow-net --allow-read --unstable --allow-write --allow-plugin  mod.ts",
    "cache": "deno cache deps.ts",
  }
}

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
notfilippocommented, Jul 22, 2020

In the code I think all the logic you need to work with is on the src/watcher.ts file.

denoWatch() is the default watcher. legacyWatcher() well, it’s the legacy one haha.

I would suggest to you this dev.to article that explains (I haven’t proofread) how a basic file watcher works. And see if it works on your machine.

If you come up with a solution without touching denon’s code you can open a repo and link it here and I will be happy to adapt it to code base.

1reaction
notfilippocommented, Jul 12, 2020

This is related to #57. You can try to use the legacy option in the configuration, under the watcher options. See more here.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Managing a massive collection with Engine Prime
Denon does not recommend having a massive Collection like this, ... needed from the file browser view (thus adding them to the Collection),Β ......
Read more >
Library subfolders not auto applying view settings
I used to be able to change the view on any Library folder & every subfolder would have the same view setting now...
Read more >
Missing files/bad indexing Subaru Forester | AVS Forum
I recently added some new music and now suddenly several folders are no longer. ... OK, if I use Windows to count my...
Read more >
[APP][5.0+][v3.6.9.1] BubbleUPnP - UPnP/DLNA ... - XDA Forums
Please send me a log file, playing the track that does not play. ... Neither my Pioneer nor my Denon can do any...
Read more >
Number of folders and files that an AVR can read when ...
Get in touch with one of our specialized Denon product representatives. Call Us. Denon General Customer Service Phone: 800-497-8921. Denon Online Order Support...
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