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
Fix integration hot-reload test on mac. #21741
Conversation
Underlying issue with breakpoint was that /var path is a symlink to a /private/var on mac. Because of that breakpoint could not be resolved.
Ah, thanks for digging into this! Though I wonder - wouldn't we still expect this to work? If the user always interacts with files through the symlink (eg. nothing points to the real path), shouldn't they behave the same as if they were the real files? If not, shouldn't the resolution be done internally - otherwise won't we need to make all breakpoints sent by editors always resolved for symlinks first? |
From VM perspective breakpoint api should deal with the same files VM was loaded from. If VM was started from symlinked folders, communication should continue based on the same symlinks. |
Does this mean the issue is inside flutter_tester (and therefore generally won't affect end-users)? If so, the change LGTM but I think we should open an issue about this and put a link to it in a comment against the code that it can be removed once fixed? |
I believe the issue is in the way how integration test interacts with |
I'm not sure I understand where the resolved path is coming from; isn't everything using symlinks? When we run |
No, it won't. |
Oh right, I see! Would we be better resolving the path right at the start of the test when we create it, so the symlink version is never stored anywhere, like:
? |
I considering that, but thought that the fixing the only place where symlinks matter is better. |
Ok, makes sense. We may end up with more tests using breakpoints though, so I might tweak this in future if I end up having to put this around the place. One final question - if I remove the (LGTM, though it'd be good to know the answer to the above!) |
I would imagine without "file:/// prefix" the path is interpreted as a relative path, so |
Ah, maybe it's something like that. I'm not sure if it makes sense for a path starting |
Underlying issue with breakpoint was that /var path is a symlink to a /private/var on mac. Because of that breakpoint could not be resolved.
Fixes #18441