Skip to content

compilation fails on Windows Arm because the MixProject module is already compiled #13669

@simonmcconnell

Description

@simonmcconnell

Elixir and Erlang/OTP versions

Erlang/OTP 25 [erts-13.2.2.9] [source] [64-bit] [smp:6:6] [ds:6:6:10] [async-threads:1] [jit:ns]

Elixir 1.16.3 (compiled with Erlang/OTP 25)

Operating system

Windows 11 Arm (in vmware Fusion on M3 macbook)

Current behavior

mix new arm
* creating README.md
* creating .formatter.exs
* creating .gitignore
* creating mix.exs
* creating lib
* creating lib/arm.ex
* creating test
* creating test/test_helper.exs
* creating test/arm_test.exs

Your Mix project was created successfully.
You can use "mix" to compile it, test it, and more:

    cd arm
    mix test

Run "mix help" for more commands.
cd arm
mix test
Compiling 1 file (.ex)

== Compilation error in file lib/arm.ex ==
** (ArgumentError) could not call Module.put_attribute/3 because the module Arm.MixProject is already compiled
    (elixir 1.16.3) lib/module.ex:2360: Module.assert_not_readonly!/2
    (elixir 1.16.3) lib/module.ex:2041: Module.__put_attribute__/5
    lib/arm.ex:2: (module)
mix compile
Compiling 1 file (.ex)

== Compilation error in file lib/arm.ex ==
** (ArgumentError) could not call Module.put_attribute/3 because the module Arm.MixProject is already compiled
    (elixir 1.16.3) lib/module.ex:2360: Module.assert_not_readonly!/2
    (elixir 1.16.3) lib/module.ex:2041: Module.__put_attribute__/5
    lib/arm.ex:2: (module)
mix compile --force
Compiling 1 file (.ex)

== Compilation error in file lib/arm.ex ==
** (ArgumentError) could not call Module.put_attribute/3 because the module Arm.MixProject is already compiled
    (elixir 1.16.3) lib/module.ex:2360: Module.assert_not_readonly!/2
    (elixir 1.16.3) lib/module.ex:2041: Module.__put_attribute__/5
    lib/arm.ex:2: (module)
tree /F
C:.
│   .formatter.exs
│   .gitignore
│   erl_crash.dump
│   mix.exs
│   README.md
│
├───lib
│       arm.ex
│
├───test
│       arm_test.exs
│       test_helper.exs
│
└───_build
    ├───dev
    │   └───lib
    │       └───arm
    │           └───ebin
    └───test
        └───lib
            └───arm
                └───ebin

Expected behavior

projects compile

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions