Closed JounQin closed 2 years ago
Are you absolutely positive that the bytes fed to the parser are exactly the same? I would print them out in quoted form as part of the CI test, and then ensure that Ubuntu and Mac really are parsing the same bytes.
The parser is entirely platform-agnostic, so I would be very surprised if it was to blame here. My guess is that it's something above the parser that is slightly changing the input bytes, such as a shell script.
Are you absolutely positive that the bytes fed to the parser are exactly the same? I would print them out in quoted form as part of the CI test, and then ensure that Ubuntu and Mac really are parsing the same bytes.
Make sense, I'll do it later.
The parser is entirely platform-agnostic, so I would be very surprised if it was to blame here. My guess is that it's something above the parser that is slightly changing the input bytes, such as a shell script.
The test is running with jest, so I don't expect any difference between the input bytes, but yeah, it could be possible, I'll check it to confirm first.
I'm going to close this for now, because I see no indication that there's a bug in our code, and I don't have enough to investigate further. We can easily reopen if you find more information.
macOS
Ubuntu
See https://github.com/rx-ts/prettier/runs/7057779737?check_suite_focus=true#step:6:41