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.

Working great on Ubuntu, but not on Windows

See original GitHub issue

First of all - I love this code. Thank you so much for creating it. I’m using it to create a live-coding environment to make music with SuperCollider.

I had no problems running jurigged on Ubuntu, but I can’t get it to work on Windows. I tried running it the same way: python3 -m jurigged -v but on Windows it never registers any change in the file when I save. I’m using Sublime on Windows to save. My python version is 3.9.7 and Windows version is 10. Is there a known issue with Windows?

Issue Analytics

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

github_iconTop GitHub Comments

schollzcommented, Oct 8, 2021

Okay I think its a Windows path issue. It does work but I can only get it to work if I look at the whole directory recursively, i.e. changing this line to:

observer.schedule(self, ".", recursive=True)

I tried many combinations of playing around with slashes and paths but only this seemed to work. Of course its not ideal because now its looking at the whole directory… but it does work

breuleuxcommented, Oct 23, 2021

I looked into it, I’m pretty sure the problem is that when watching a file, if the file is deleted and then recreated (which happens with the way some editors save), the watcher emits the deletion event and then stops. So I think it’s sufficient to observe the file’s parent directory instead of the file itself (basically a more fine-grained version of your fix).

I tested with editing the file through vi (which used to not work) and it seems to work, so that’s good.

I also added a --poll <INTERVAL> option, in case that sometimes helps.

I pushed a new version, 0.3.5, with these fixes. Tell me if that does the trick!

Read more comments on GitHub >

github_iconTop Results From Across the Web

PC does not boot into Windows, but Ubuntu still works well
One of the methods using Linux is to use fsck.msdos command which is found majorly in most of the Linux Distributions. While you've...
Read more >
Can't install Windows 10, but Ubuntu working perfectly - UDOO
Rufus on a Windows machine creates a bootable USB fine from the Windows 10 ISO download. 4) If at first it does not...
Read more >
7 Things That Ubuntu Does Better Than Windows - MakeUseOf
Overall, both Windows 10 and Ubuntu are fantastic operating systems, each with their own strengths and weaknesses, and it's great that we have ......
Read more >
my windows 10 is not booting after installing ubuntu alongside
Create a bootable media and boot the PC using the media. On the initial setup screen, select the language and other preferences and...
Read more >
Bash on Ubuntu on Windows not starting - Stack Overflow
Control Panel --> Programs and Features --> Turn Windows Feature on or off · Uncheck "Windows Subsystem for Linux" · Uninstall Ubuntu from...
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 Post

No results found

github_iconTop Related Hashnode Post

No results found