Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open workspace as project when launching Intellij and Android Studio #1358

Closed
hohwille opened this issue Sep 19, 2023 · 0 comments · Fixed by #1359
Closed

Open workspace as project when launching Intellij and Android Studio #1358

hohwille opened this issue Sep 19, 2023 · 0 comments · Fixed by #1359
Assignees
Labels
android-studio Android Studio IDE from Jet-Brains enhancement New feature or request intellij IntelliJ IDE from Jet-Brains

Comments

@hohwille
Copy link
Member

hohwille commented Sep 19, 2023

In order to properly fix #1305 and also to improve configuration and customization of Intellij via devonfw-ide we have to open IDEA based IDEs with the workspace as argument and "project folder" to open.
This allows IDE admins to manage configurations that are located in the .idea folder.
Before the end-user did open any project folder (sub-folder of the workspace or even outside of it) with his project to work on.
Then the .idea folder is created inside this project folder.
A problem is that IDEA made some bad design decisions to place important configurations for maven, Java compiler, etc. inside the .idea folder. As we can not know what project folder the user is going to open after he has launched Intellij via devonfw-ide we have no chance to make changes inside this .idea folder that can be anywhere.
The new approach therefore uses the workspace as project folder and Intellij easily allows users to import sub-folders in the workspace e.g. as maven projects.

However, this is causing a breaking change. Further some projects might be used to have the .idea folder with some parts of the config in their project git repository. With this change we would cause quite some trouble for such projects and prevent them to continue working as usual after upgrading their devonfw-ide.
Therefore we need to introduce a variable that allows to disable the new behavior so projects can get backward compatibility:

INTELLIJ_DISABLE_OPEN_WORKSPACE=true
ANDROID_STUDIO_DISABLE_OPEN_WORKSPACE=true

Then project admins can add this property to devon.properties in their settings so noting will break if developers install the latest devonfw-ide with the new features and fixes.

@hohwille hohwille added enhancement New feature or request intellij IntelliJ IDE from Jet-Brains android-studio Android Studio IDE from Jet-Brains labels Sep 19, 2023
@hohwille hohwille added this to the release:2023.09.001 milestone Sep 19, 2023
hohwille added a commit that referenced this issue Sep 19, 2023
@jan-vcapgemini jan-vcapgemini self-assigned this Sep 21, 2023
jan-vcapgemini added a commit to jan-vcapgemini/ide that referenced this issue Sep 21, 2023
added check for new DISABLE_WORKSPACE environment variables to intellij and android-studio
added documentation for DISABLE_WORKSPACE environment variables to intellij and android-studio
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
android-studio Android Studio IDE from Jet-Brains enhancement New feature or request intellij IntelliJ IDE from Jet-Brains
Projects
None yet
2 participants