jeremyjh / dialyxir

Mix tasks to simplify use of Dialyzer in Elixir projects.
Apache License 2.0
1.68k stars 142 forks source link

:dialyzer.run error: File not found: erl_bif_types.beam #507

Closed apoorv-2204 closed 1 year ago

apoorv-2204 commented 1 year ago

Precheck

Environment

image

image

Current behavior

image

Expected behavior

Should Compile Normally in github.

paulo-ferraz-oliveira commented 1 year ago

Are you using setup-beam? Check #506.

apoorv-2204 commented 1 year ago

      - name: Setup Elixir and Erlang versions
        uses: erlef/setup-beam@v1
        with:
          elixir-version: ${{ env.ELIXIR_VERSION }}
          otp-version: ${{ env.OTP_VERSION }}

Yup
paulo-ferraz-oliveira commented 1 year ago

Yeah, so between 1.15 and 1.16 we changed where elements are saved in the disk to benefit from cache speedups. Since the PLTs contain hard references to files in the filesystem it's highly likely that your cache is trying to fetch elements that aren't present any more. There's no lasting solution for this (even though we don't change cache elements that much), but a short term solution is deleting your cache and retrying.

apoorv-2204 commented 1 year ago

Solution

image This issue is Solved by cleaning the cache. Thank you team