Closed zachgrayio closed 9 months ago
hi, any update for this issue?
sorry I use orbstack, I think it's better replacement for Docker Desktop for mac.
Looks like the fix was merged 15 days ago so this should be working in the next release or built from source on main branch?
Hi @zachgrayio , As far as I can see the fix was reverted in v1.44.0 because it caused other issues. As a result Air is still not working with Colima. Any plans to fix this in the near future?
I think v1.46.0 should fixed
It’s still not working.
The chmod
event is filtered away due to the validEvent
check. @cosmtrek commented that the check can’t be removed due to the checksum in the PR. Can this be explained more so I could maybe work on it too.
The existing poll
option can workaround this perfectly for me.
// .air.yaml
+ # Use polling instead of fsnotify to workaround Colima comptibility issue:
+ # - https://github.com/cosmtrek/air/issues/420
+ poll = true
+ poll_interval = 500 # ms
P.s. M1, Sonoma 14.2, Colima at 0.6.7
, air at devel
For
air
users hoping to use Colima as a replacement for Docker Desktop for Mac, unfortunately today the two don't work together, because file change events from Colima are sent as an event type that's filtered out byair
, as is discussed here. https://github.com/abiosoft/colima/issues/261#issuecomment-1502492874To make this work, the
chmod
events frominotify
viafsnotify
need to be consumed byair
and trigger a reload; today they are the 1 event type that is filtered out. #418 fixes this by removing the code which was filtering chmod/modified events.Thanks!