credo icon indicating copy to clipboard operation
credo copied to clipboard

`No files found` (OTP 26? MacOS?)

Open luiz-firework opened this issue 2 years ago • 5 comments

Precheck

  • For bugs, please do a quick search and make sure the bug has not yet been reported here - Nothing found!

Environment

  • Credo version (mix credo -v): 1.7.0
  • Erlang/Elixir version (elixir -v): 1.14.5 - OTP 26
  • Operating system: OSX Sonoma

What were you trying to do?

Basically, just run mix credo or mix credo diff master locally.

Expected outcome

Normal credo run with the warnings, alerts, etc.

Actual outcome

When we run it locally, we always get info: Some source files were not parsed in the time allotted: Screenshot 2023-10-16 at 9 51 58 AM

Then it lists all files and messages: No files found!

The weird part is that it runs flawlessly in the CI pipeline (GH action using Ubuntu 20.04 and the same Elixir/OTP), which points to be related to either multi-core system or OSX itself, alongside OTP 26. It only started after we updated to OTP 26.

We tried to remove some checks and increase the timeout with no success.

Please let me know if I'm missing any details.

luiz-firework avatar Oct 16 '23 13:10 luiz-firework

I observed the same behaviour with Elixir 1.14.4 and OTP 25 . The parse_timeout was slightly increased before to 10_000. echo $? reports 0 as a status code in that case.

up2jj avatar Oct 17 '23 13:10 up2jj

This seems weird, and while this might very well have to do with OTP 26, I can not reproduce it on my machine.

Let's gather more data about how many people have this problem.

rrrene avatar Oct 27 '23 15:10 rrrene

Checking in: Is this still a problem with newer versions of Erlang/Elixir/Credo?

rrrene avatar Dec 17 '23 07:12 rrrene

Yes, still same issue

luiz-firework avatar Dec 17 '23 22:12 luiz-firework

I'm also experiencing this issue with Mac OS Sonoma and OTP 26. But I'm not able to reproduce it consistently, it only happens sometimes.

I'm also experiencing this weird behavior when compiling anything with elixir + erlang OTP26, I keep getting these pop-up windows from the OS with a message that looks like: Verifying shm-id.XXXXX.... They appear and disappear almost instantly and are quite frequent anytime erlang is compiling something.

It seems that credo fails with the "Some source files were not parsed" error when I get these pop-ups.

fabivs avatar Jan 18 '24 13:01 fabivs