-
Notifications
You must be signed in to change notification settings - Fork 0
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
[CLOSED] Make file watching compatible with node version 6.x (runs on 0.10 too) #10784
Comments
Comment by ingorichter Okay, I'm able to build on OSX. Brackets launches and changes in the opened folder will show up in the project tree. Adding a file in the finder will update the project tree. The same applies for deleting a file. The whole thing stops working, the moment I open a different folder/project. From that point on I don't receive any change notifications anymore and I'm unable to open a different folder/project. |
Comment by zaggino Thanks |
Comment by zaggino
|
Comment by zaggino Good news, all my testing is passing and I can't see any more problems. Now the question: The way it currently works: brackets-web get all file change notifications (even from .git folders, and that's a heap of notifications) from brackets-shell and these are filtered on the web side. The way it could work: brackets-web could pass filter to the brackes-shell to use with chokidar and these would be filtered on shell side which would be great (much less change events and load on the domain connection) but it would also mean that the api between web and shell would have to change. This would be concern for other brackets-web implementations which doesn't use brackets-shell. Question is: make this breaking change in this PR or not?
|
Comment by ingorichter 👏 |
Comment by petetnt I am with Great job with this PR and the current progress with the Node update too in general, really excited about this one 👍 |
Comment by zaggino
I've actually been using this branch and related shell build daily for a few days now "in production" and I haven't encountered any side effects. Considering this finished, now it needs a review and hopefully a merge soon. |
Comment by petetnt Great stuff |
Comment by zaggino Excluding node_modules too, watching over them with chokidar causes problems for npm installations and updates to run in a project folder (ref npm/npm#10826 (comment)). It'd be highly unusual workflow working inside a node_modules folder anyway. |
Comment by ingorichter Okay, I'm testing it now and report back when I see things behaving weird. |
Comment by ficristo
I really hope we'll make these user configurable (followup is fine). I think, for example, we should ignore |
Comment by zaggino Followup is fine, I prefer not to build more features until this is merged. |
Comment by ficristo I didn't try the PR but I left some comments regardless. |
Comment by zaggino Comments addressed, I haven't played with the non recursive stuff as I see little point - the code around |
Comment by zaggino
|
Comment by ficristo
Sorry if I wasn't clear... I didn't imply to move to it. But it seems you think it's fine so I trust you. |
Comment by zaggino
|
Comment by ficristo I left some other comments. |
Comment by zaggino
npm dependencies PR opened here: adobe/brackets-shell#572 that's all that should be needed, grunt copies everything, even node_modules from adobe/brackets clone: https://github.com/adobe/brackets-shell/blob/master/Gruntfile.js#L177-L184 |
Comment by ficristo Two things I almost forgotten:
|
Comment by zaggino
a) no commit removing, you laid down a base for this PR and credit is due for that (you also did a good job reviewing it), merge as is b) you can't build osx shell on non-osx machine so that's right |
Comment by ficristo I'm sorry I noticed only now: in newer file you should add the classic license comment of Adobe. |
Comment by ficristo I don't think the PR for the build system is right: I'll write more there. |
Comment by ficristo For the commits: I don't pretend you squash everything in a single commit. If you really want to retain all the commits I would like to see better messages. Sincerely I'm not sure about the policy of Brackets on these things, so it's up to you what to do. |
Comment by ficristo This time I've run, at least, all the test suite on my Windows 10 PC and it looks very green 🎆 |
Comment by ficristo Out of curiosity, how did you generate the |
Comment by zaggino Took it from here https://github.com/Microsoft/vscode/blob/314e122b16c5c1ca0288c8006e9c9c3039a51cd7/src/vs/workbench/services/files/node/watcher/win32/CodeHelper.exe. Also I've tried rebuilding file from the sourcecode's in production mode as advised and got the same filesize (83968 bytes). |
Comment by zaggino I'm gonna rebase this and rewrite some commit messages, saying that, there's no policy on this and I've never seen anyone really doing that... maybe taking it a bit too far. |
Comment by zaggino
|
Comment by ficristo I think we had iterate on this PR enough for merging.
|
Issue by zaggino
Wednesday Aug 03, 2016 at 23:53 GMT
Originally opened as adobe/brackets#12647
related to adobe/brackets-shell#543
trying to make brackets work with the new version of node in the shell
cc
@
ficristo (I couldn't commit to your repo that's why I merged your branch here)zaggino included the following code: https://github.com/adobe/brackets/pull/12647/commits
The text was updated successfully, but these errors were encountered: