flow icon indicating copy to clipboard operation
flow copied to clipboard

flow osx version is not catching some flow errors

Open joselcc opened this issue 8 years ago • 5 comments

I using flow-bin to run flow type checks in a projects. I noticed that flow-bin runs a different flow binary depending on the current OS

package/flow-linux64-v0.75.0/flow
package/flow-osx-v0.75.0/flow
package/flow-win64-v0.75.0/flow.exe

The interesting part is that in linux I got more flow errors reported than in the osx version

MAC (OS X 10.11.6)

$ node tools/abc-scripts/node_modules/.bin/flow version
Flow, a static type checker for JavaScript, version 0.75.0

$ npm run typecheck
....
......
Found 39 warnings
[abc-scripts] typecheck FINISHED!

LINUX (docker container Debian GNU/Linux 9)

root@2b6eff7b9d90:/home/my-project# node tools/abc-scripts/node_modules/.bin/flow version
Flow, a static type checker for JavaScript, version 0.75.0

root@2b6eff7b9d90:/home/my-project# npm run typecheck
....
......
Found 4 errors and 16 warnings
[abc-scripts] typecheck FAILED!

(I haven't tested running flow as root in mac)

joselcc avatar Sep 05 '18 07:09 joselcc

@joselcc are you able to share a minimal example of your project?

thehogfather avatar Sep 05 '18 09:09 thehogfather

+1. Especially curious about the .flowconfig

mrkev avatar Sep 05 '18 16:09 mrkev

No idea if this is related at all, but I had a similar issue, OSX wasn't reporting the same errors while our linux CI container was reporting 55 errors. Turns out that flow-typed wasn't updating itself properly. After manually pulling in the latest changes into the ~/.flow-typed/repo everything started working again.

gwing33 avatar Jan 30 '19 18:01 gwing33

We are running into a similar issue. Our CI/SD tools runs in a linux environment and all of our engineers are on mac os. There are errors that systematically show up on our CI/CD tool that never show up locally. This happens to all of our engineers.

Is there any information that I could provide that might help troubleshoot this? We are currently on version 0.113.0.

akread avatar Feb 09 '21 19:02 akread

These might be some bad releases a while ago, but I don't believe it should happen anymore since now the release is built from CI with the exact same source.

SamChou19815 avatar Jan 31 '23 04:01 SamChou19815