Description
Actual behavior
As an IDEasy user I expect that IDE_ROOT
always gets used properly.
If I've installed my IDEasy to D:\projects
and I'm running it using a different user.dir e.g. D:\Projects
IDEasy will report some strange error messages:
Undefined edition null of tool intellij
as well as create faulty plugin marker files like: plugin.eclipse.null.checkstyle
.
Comment JH: I would not consider this as a bug. If you use IDEasy properly there is no such problem. You are requesting better support for edge-cases here. Your reproducer instructions tell me to break the sane installation therefore, IMHO a robustness enhancement. However, might be a PoV if bug or feature. BTW: If you want to say that our detection of the edition
is a hack, I would agree but for that create a new story since this is something completely different. I was always proposing to also create an .ide.software.edition
file just like .ide.software.version
file or to have both in a single file. However, this could not easily be done backward compatible.
Reproduce
- Adjust your Windows Terminal Start directory to use your IDE_ROOT in uppercase (your actual IDE_ROOT needs to be in lower case)
- Create a test project e.g.
ide create test -
- Switch to your test project e.g.
icd -p test
- Delete plugin marker files of intellij from
$IDE_ROOT/test/.ide
folder - Run
ide -d intellij
Expected behavior
IDEasy should not report these messages and create proper plugin marker files.
IDeasy should warn the user if he uses a different CWD
path than his IDE_ROOT
.
IDEasy status
Updates are available for the settings repository. If you want to apply the latest changes, call "ide update"
IDE_ROOT is set to D:\Projects
IDE_HOME is set to D:\Projects\ideasy-dev
You are online.
Your settings are not up-to-date, please run 'ide update'.
Your version of IDEasy is 2025.05.002-SNAPSHOT but version 2025.05.002-20250524.024139-3 is available. Please run the following command to upgrade to the latest version:
ide upgrade
Your operating system is windows(10.0)@x64 [Windows 10@amd64]
Successfully completed ide (status)
Related/Dependent issues
No response
Comments/Hints
This seems to be related to this method:
IDEasy/cli/src/main/java/com/devonfw/tools/ide/tool/LocalToolCommandlet.java
Lines 357 to 371 in f365719
which will return
null
if the path case did not match.Also this line might have to be modified:
The same issue will occur if the working directory was changed in intellij:
Metadata
Metadata
Assignees
Labels
Type
Projects
Status