ignatov/intellij-erlang

Can not successfully open project created by rebar3

AiziChen opened this issue · 2 comments

Environment info:

IntelliJ IDEA version: IntelliJ IDEA 2022.1.3, Build #IU-221.5921.22, built on June 21, 2022
Erlang version: Erlang/OTP 25 [erts-13.0.2]
rebar3 version: rebar 3.19.0 on Erlang/OTP 25 Erts 13.0.2

Problem screenshot:
11366012-EA6E-438F-A8A5-04C5CD88D806

TB142 commented

Hi. I’ve had the same experience. By chance I found a solution to this yesterday when I noticed that the documentation shifted quite a lot for release to release in IntelliJ and started to backtrack.

TLDR: “ On the Welcome screen, press ⇧⌘A, type “project from existing sources”, and click the Import project from existing sources action in the popup.”

Anyways, I always tried to “Open” a project from IntelliJ (without success).
Following this guide worked for me, it opened a walkthrough of steps that I previously had to fix manually in Project Structure (I’m now on v2022.2), (documentation in the link is for 2021.1)

https://www.jetbrains.com/help/idea/2021.1/getting-started-with-erlang.html?keymap=secondary_macos#import

It is more convenient to manually modify the "iml" and "modules.xml" files located under the ".idea" directory of a successful project. I can provide you with an example file.

change_gw_2.zip