-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Sync with manual mapping not working when multiple files are changed of which the first one is not mapped #9326
Comments
I was able to reproduce this bug by making a simple change to the appropriate unit test: simonstratmann@96f5432 I don't know Go at all and can't begin to comprehend how to fix this bug, though. Perhaps I'm misunderstanding the idea behind manual sync but with a change event with multiple files why would each file have to match the sync patterns. I think that |
I was actually able to fix the bug and keep the other tests successful. I added a dirty hack for the latter because the expectations should probably be different. |
Expected behavior
When two files are modified in one session and only the second is included in a manual sync mapping then a sync should be executed.
Actual behavior
When two files are modified in one session and only the second is included in a manual sync mapping then no sync is being executed. If only the second file is modified then sync is executed. In other words, for any number of changed files if the first in the list does not match the pattern then no sync is being executed.
Information
When .java and .class files are modified (by changing the java file in IntelliJ and compiling):
When only the .class file is modified ((by changing the java file in IntelliJ, changing the window for IntelliJ to write the java file and then compiling):
I'm working on a sample project to reproduce but I'm having issues with docker registry authentication.
This problem occurs with any number of modified files:
Only the first file is taken into account while any of the files matching the pattern should result in a sync.
The text was updated successfully, but these errors were encountered: