I’ve tried to move my phoenix project under a sub-directory inside the root project directory. I also moved the .elixir_ls/
folder too. (note: I’m using devcontainer+devbox)
Everthing works fine but when I open the core_components.ex
file, these warnings are shown in the output tab: Ubuntu Pastebin
I’ve tried opening the core_component.ex
file in Github Codespace (where the project was not in the sub-directory but in the root project directory) but got the same warnings as before.
# elixir --version
Erlang/OTP 27 [erts-15.2] [source] [64-bit] [smp:4:4] [ds:4:4:10] [async-threads:1] [jit:ns]
Elixir 1.18.1 (compiled with Erlang/OTP 27)
# mix phx.new --version
Phoenix installer v1.7.21
# mix deps | grep phoenix
* phoenix 1.8.0-rc.3 (Hex package) (mix)
locked at 1.8.0-rc.3 (phoenix) 419422af
* phoenix_ecto 4.6.4 (Hex package) (mix)
locked at 4.6.4 (phoenix_ecto) f5b8584c
* phoenix_html 4.2.1 (Hex package) (mix)
locked at 4.2.1 (phoenix_html) cff10810
* phoenix_live_dashboard 0.8.7 (Hex package) (mix)
locked at 0.8.7 (phoenix_live_dashboard) 3a8625ca
* phoenix_live_reload 1.6.0 (Hex package) (mix)
locked at 1.6.0 (phoenix_live_reload) b3a1fa03
* phoenix_live_view 1.0.14 (Hex package) (mix)
locked at 1.0.14 (phoenix_live_view) b6dcb3f2
* phoenix_pubsub 2.1.3 (Hex package) (mix)
locked at 2.1.3 (phoenix_pubsub) bba06bc1
* phoenix_template 1.0.4 (Hex package) (mix)
locked at 1.0.4 (phoenix_template) 2c0c81f0
update: If I open any other file (for example a controller file) then it is shown:
[Warn - 7:57:10 AM] ** (ArgumentError) could not call Module.get_attribute/2 because the module CortexWeb.PageController is already compiled. Use the Module.__info__/1 callback or Code.fetch_docs/1 instead
(elixir 1.18.1) lib/module.ex:2383: Module.assert_not_compiled!/3
(elixir 1.18.1) lib/module.ex:1984: Module.get_attribute/7
(phoenix 1.8.0-rc.3) expanding macro: Phoenix.Controller.Pipeline.__before_compile__/1
nofile:1: CortexWeb.PageController (module)
[Info - 7:57:10 AM] Success typings computed in 49ms