Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Slide edits are not detected on Linux #95

Open
fbehrens opened this issue Feb 23, 2016 · 1 comment
Open

Slide edits are not detected on Linux #95

fbehrens opened this issue Feb 23, 2016 · 1 comment

Comments

@fbehrens
Copy link

on Ubuntu 14.04.4
Fsharp 4.0
Mono JIT compiler version 4.2.2 (Stable 4.2.2.30/996df3c Mon Feb 15 17:30:30 UTC 2016)

@fbehrens fbehrens changed the title Side edits are not detected on Linux Slide edits are not detected on Linux Feb 24, 2016
@rmunn
Copy link

rmunn commented May 17, 2016

I see this behavior too, on Linux Mint Debian Edition 2, with Mono 4.2.3 (Stable 4.2.3.4/832de4b Wed Mar 16 13:19:08 UTC 2016). I did see the WatchChanges task run correctly once, but every other time I ran it it failed to detect changes.

This appears to be connected to OmniSharp/generator-aspnet#138. https://fsharp.github.io/FAKE/watch.html says to add MONO_MANAGED_WATCHER=false to your environment before running FAKE, and that worked for me. Either run export MONO_MANAGED_WATCHER=false and then run build.sh, or (my preference) run:

MONO_MANAGED_WATCHER=false ./build.sh

This will force Mono to use a different (and, I believe, less efficient) method to watch the file system (I think it polls rather than rely on the kernel's inotify subsystem). This is not ideal for production use, which is why I don't recommend using export to set this environment variable. Instead, use the MONO_MANAGED_WATCHER=false ./build.sh form (without export) to set it only while running ./build.sh and editing your FsReveal slides.

This workaround worked for me: when running with MONO_MANAGED_WATCHER=false, my slide changes were detected every time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants