Title: Mac: fs.watch() not detecting changes to file from git operation · Issue #5039 · nodejs/node · GitHub
Open Graph Title: Mac: fs.watch() not detecting changes to file from git operation · Issue #5039 · nodejs/node
X Title: Mac: fs.watch() not detecting changes to file from git operation · Issue #5039 · nodejs/node
Description: I am on Mac OS X 10.11.1 with node.js 4.1.1. I also tried with node.js 5.x: Steps: create a folder with one file in it and enable git in that folder commit to master create other branch, make some changes to the file and commit to other ...
Open Graph Description: I am on Mac OS X 10.11.1 with node.js 4.1.1. I also tried with node.js 5.x: Steps: create a folder with one file in it and enable git in that folder commit to master create other branch, make some ...
X Description: I am on Mac OS X 10.11.1 with node.js 4.1.1. I also tried with node.js 5.x: Steps: create a folder with one file in it and enable git in that folder commit to master create other branch, make some ...
Opengraph URL: https://github.com/nodejs/node/issues/5039
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Mac: fs.watch() not detecting changes to file from git operation","articleBody":"I am on Mac OS X 10.11.1 with node.js 4.1.1. I also tried with node.js 5.x:\n\nSteps:\n- create a folder with one file in it and enable git in that folder\n- commit to `master`\n- create `other` branch, make some changes to the file and commit to `other` branch\n- switch between the branches while checking the output of the following script:\n\n``` javascript\nvar fs = require(\"fs\");\n\nvar watcher = fs.watch('\u003cpath to file\u003e');\nwatcher.on('change', function(eventtype) {\n console.log(eventtype);\n});\n```\n\n=\u003e I get a `rename` event for the first time I switch to the `other` branch. After that, the events stop when switching branches.\n","author":{"url":"https://github.com/bpasero","@type":"Person","name":"bpasero"},"datePublished":"2016-02-02T09:49:51.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":8},"url":"https://github.com/5039/node/issues/5039"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:8186d8c7-e443-c9b0-5341-61b9ad978d63 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | BA88:1BDC7:8E497D:C46C61:6A4DD842 |
| html-safe-nonce | 6ded0c10f37652b4bd7e2278f26af0b7ea1b1aeeeb7a5fee43e4bda64edc1498 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCQTg4OjFCREM3OjhFNDk3RDpDNDZDNjE6NkE0REQ4NDIiLCJ2aXNpdG9yX2lkIjoiMzQ4NzQ4NjE1MTYxODMyMDQ1MCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 84c8fbe07eaa25dbd026b01fe6b0ddf44acaee3bb96ede3d9332fe7ceef385aa |
| hovercard-subject-tag | issue:130630407 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/nodejs/node/5039/issue_layout |
| twitter:image | https://opengraph.githubassets.com/f37d156c2803e36c75268fb6d5dab7b4506d8091bace78d3f862621fb880a7cf/nodejs/node/issues/5039 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/f37d156c2803e36c75268fb6d5dab7b4506d8091bace78d3f862621fb880a7cf/nodejs/node/issues/5039 |
| og:image:alt | I am on Mac OS X 10.11.1 with node.js 4.1.1. I also tried with node.js 5.x: Steps: create a folder with one file in it and enable git in that folder commit to master create other branch, make some ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | bpasero |
| hostname | github.com |
| expected-hostname | github.com |
| None | 06b8a6144231bf3a234f1c2e9993861e07ce98a905912b114aa386c2d7e84b33 |
| turbo-cache-control | no-preview |
| go-import | github.com/nodejs/node git https://github.com/nodejs/node.git |
| octolytics-dimension-user_id | 9950313 |
| octolytics-dimension-user_login | nodejs |
| octolytics-dimension-repository_id | 27193779 |
| octolytics-dimension-repository_nwo | nodejs/node |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 27193779 |
| octolytics-dimension-repository_network_root_nwo | nodejs/node |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 1d344bdb7547fe6bca17a59bb2b8aac3dc9532a0 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width