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
jsx not able to watch subdirs #60
Comments
Are there any Also potentially useful: what |
There is a file in src which builds when not using a subdir in the public dir. node version is 0.8.23 and im on OS X Mountain Lion |
Installed 0.8.23 but no luck reproducing. Will try on a Mountain Lion machine tomorrow. Thanks for the report. Do you see this failure with an empty It could be a problem with |
One more idea: the module cache might have gotten into a bad state somehow. Try clearing it by deleting the directory |
The same file builds fine if I use Deleting that directory didn't work for me. |
I know this is still broken. Still working on a fix. |
❤️ |
I had same problem on ubuntu. Yesterday "jsx --watch" worked just fine for me. Today when I ssh-ed again and ran "jsx --watch reactjs/ js/" it just silently does nothing. |
@hojberg @hieu - I was having issues w/ vim file writes not being caught so I hacked together https://github.com/jeffreylin/jsx_transformer_fun - Feel free to try it and let me know if it works (Haven't had the time to test on Ubuntu yet...) - We might use the file watcher in that repo in Commoner / JSX in the future. |
@jeffreylin 👍 Work like a charm. Thank you very much! |
Ok. I think I now know what the issue is. jsx created a .lock.pid file in the output directory. If that file is still there when running jsx again it will quick silently. |
This behavior is new in Commoner v0.8.3, following the incorporation of @jeffreylin's `DirWatcher` implementation: https://github.com/jeffreylin/jsx_transformer_fun/blob/master/dirWatcher.js Watching directories instead of files reduces the total number of open files, and copes better with editors that save files by deleting and then immediately recreating them. Closes facebook#60. Closes facebook#71.
Awesome! |
* Decrease lane height, add note to react_gutter_size * Rename REACT_PRIORITY_BORDER_SIZE to REACT_WORK_BORDER_SIZE Co-authored-by: E-Liang Tan <eliang@eliangtan.com>
* Decrease lane height, add note to react_gutter_size * Rename REACT_PRIORITY_BORDER_SIZE to REACT_WORK_BORDER_SIZE Co-authored-by: E-Liang Tan <eliang@eliangtan.com>
Trying to run jsx to build into a subdir seems to just exit with no error message:
jsx -w src/ public/js
(public/js does exist)However, if run in directly in public it works without a hitch:
jsx -w src/ public
The text was updated successfully, but these errors were encountered: