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

Setup not working properly on Mac (and zsh) #795

Open
hohwille opened this issue Nov 22, 2024 · 0 comments
Open

Setup not working properly on Mac (and zsh) #795

hohwille opened this issue Nov 22, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@hohwille
Copy link
Member

Expected behavior

As a Mac user, I want to be able to setup IDEasy successfully so that I can use the tool.

Actual behavior

➜ ./setup
Setting up your IDEasy in /Users/hohwille/projects/_ide
Configuring IDEasy in /Users/hohwille/.bashrc.
Configuring IDEasy in /Users/hohwille/.zshrc.

➜ ide create IDEasy
zsh: command not found: ide

This is the first bug:
IDEasy registers itself into .bashrc and .zshrc but not in the current shell.
You need to start a new shell and then this problem is solved. But...

➜ ide create IDEasy
/Users/hohwille/projects/_ide/bin/ide:5: no such file or directory: ./ideasy

The problem is here:

_IDEASY="$(dirname "${BASH_SOURCE}")/ideasy"

On Mac $(dirname "${BASH_SOURCE}") evaluates to ..
This seems to be a problem of zsh.
When I run bash and then rerun ide or ideasy this error goes away.
However, this just leads me to the next error #451 (Gatekeeper).
After complex fiddling of security settings, permission grants and admin passwords, I can run ide command in bash.
Next problem:
ideasy now fails with exist code 1 without saying a single word.
I did not give up easily and found a command that at least gives some output:

bash-3.2$ ./ideasy -t -v
Looking for IDE_HOME in /Users/hohwille/projects/_ide/bin
Looking for IDE_HOME in /Users/hohwille/projects/_ide
Looking for IDE_HOME in /Users/hohwille/projects
Looking for IDE_HOME in /Users/hohwille
Looking for IDE_HOME in /Users
Looking for IDE_HOME in /
Starting step ide with params [-v]...
Trying to match arguments to commandlet list-editions
Trying to match argument '-v'
Next property candidate to match argument is KeywordProperty[list-editions:null]
Commandlet did not match
Trying to match arguments to commandlet vscode
Trying to match argument '-v'
Next property candidate to match argument is KeywordProperty[vscode:null]
Commandlet did not match
Trying to match arguments to commandlet complete
Trying to match argument '-v'
Next property candidate to match argument is KeywordProperty[complete:null]
Commandlet did not match
Trying to match arguments to commandlet uninstall
Trying to match argument '-v'
Next property candidate to match argument is KeywordProperty[uninstall:null]
Commandlet did not match
Trying to match arguments to commandlet repository
Trying to match argument '-v'
Next property candidate to match argument is KeywordProperty[repository:null]
Commandlet did not match
Trying to match arguments to commandlet --version
Trying to match argument '-v'
Next property candidate to match argument is FlagProperty[--version | -v:null]
Running commandlet VersionCommandlet[--version]
2024.12.001-beta-SNAPSHOT
Step 'ide' ended successfully.
ide (-v) succeeded after PT0.001S

So at least this is still our code operated on Mac :)
I now was even able to get the help.

Steps to reproduce (bug) / Use Case of feature request (enhancement)

  1. download and extract latest IDEasy release on your mac to ~/projects/_ide
  2. run ./setup
  3. run ide command

Related/Dependent Issues

Comments/Hints:

Affected version:

  • OS: Mac
  • 2024.12.001-beta-SNAPSHOT
@hohwille hohwille added the bug Something isn't working label Nov 22, 2024
@github-project-automation github-project-automation bot moved this to 🆕 New in IDEasy board Nov 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: 🆕 New
Development

No branches or pull requests

1 participant