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

Fix CWD for InstallCommandlet #1084

Closed
alfeilex opened this issue Feb 26, 2025 · 2 comments · Fixed by #1170
Closed

Fix CWD for InstallCommandlet #1084

alfeilex opened this issue Feb 26, 2025 · 2 comments · Fixed by #1170
Assignees
Labels
bug Something isn't working install installation process of IDE + tools and install commandlet internal Nothing to be added to CHANGELOG, only internal story native-image GraalVM native image of IDEasy CLI (e.g. for bugs that only happen in binary of CLI)

Comments

@alfeilex
Copy link
Member

alfeilex commented Feb 26, 2025

Expected behavior

The installation commandlet ideasy -f install should also work when run outside «installation-location»\_ide itself (cd "$(dirname "$0")/..").

Actual behavior

When running ideasy install outside «installation-location»\_ide` , the `cdw` is the current path and when its not in `_ide` then wrong resolving results in invalid path, like «installation-location»_ide\bin\bin`.

Steps to reproduce

Run ``«installation-location»_ide\bin\ideasy.exe installor navigate inside the bin folder and runideasy -f install` there. Be sure that IDEasy is not installed on your system. Remove software/maven and also the env

Missing required file bin
Missing required file functions
Missing required file internal
Missing required file system
Missing required file IDEasy.pdf
Missing required file setup
IDEasy release is inconsistent at C:\projects\_ide\bin

A solution is that the cwd variable is cwd = IDE_ROOT/_ide

@alfeilex alfeilex added the bug Something isn't working label Feb 26, 2025
@github-project-automation github-project-automation bot moved this to 🆕 New in IDEasy board Feb 26, 2025
@alfeilex alfeilex added the install installation process of IDE + tools and install commandlet label Feb 26, 2025
@hohwille
Copy link
Member

See also oracle/graal#10773

@hohwille hohwille self-assigned this Feb 26, 2025
@hohwille hohwille added the native-image GraalVM native image of IDEasy CLI (e.g. for bugs that only happen in binary of CLI) label Feb 26, 2025
@hohwille
Copy link
Member

hohwille added a commit to hohwille/IDEasy that referenced this issue Mar 25, 2025
@hohwille hohwille added this to the release:2025.03.002 milestone Mar 25, 2025
@hohwille hohwille added the internal Nothing to be added to CHANGELOG, only internal story label Mar 25, 2025
hohwille added a commit to hohwille/IDEasy that referenced this issue Mar 25, 2025
hohwille added a commit that referenced this issue Mar 26, 2025
@github-project-automation github-project-automation bot moved this from 🆕 New to ✅ Done in IDEasy board Mar 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working install installation process of IDE + tools and install commandlet internal Nothing to be added to CHANGELOG, only internal story native-image GraalVM native image of IDEasy CLI (e.g. for bugs that only happen in binary of CLI)
Projects
Status: ✅ Done
Development

Successfully merging a pull request may close this issue.

2 participants