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

DUPLICATE: kotlinc process can not be closed properly on Mac x64 #873

Closed
janvcap-mac opened this issue Dec 9, 2024 · 2 comments
Closed
Labels
bug Something isn't working duplicate This issue or pull request already exists macOS specific for Apple MacOS
Milestone

Comments

@janvcap-mac
Copy link

Expected behavior

As an IDEasy kotlinc user on Mac x64 I expect kotlinc to be closed properly when I type :quit.

Actual behavior

Nothing happens and the command prompt gets stuck.

bash-3.2$ ide kotlinc
Updates are available for the settings repository. If you want to pull the latest changes, call ide update.
Trying to download kotlinc-2.1.0.zip from https://github.com/JetBrains/kotlin/releases/download/v2.1.0/kotlin-compiler-2.1.0.zip
Downloading 100% │█████████████████████│ 82/82MiB (0:00:03 / 0:00:00) 27,5MiB/s
Checksum b6698d5728ad8f9edcdd01617d638073191d8a03139cc538a391b4e3759ad297 is correct.
Extracting ZIP file /Users/Username/Downloads/ide/default/kotlinc-2.1.0.zip to /Users/Username/IdeasyTestProjects/_ide/tmp/extract-kotlinc-2.1.0.zip
Extracting 100% │█████████████████████████│ 90/90MiB (0:00:00 / 0:00:00) ?MiB/s
Successfully installed kotlinc in version 2.1.0
Welcome to Kotlin version 2.1.0 (JRE 21.0.5+11-LTS)
Warning: this REPL implementation is deprecated and will be removed soon.
Warning: REPL is not compatible with the Kotlin version 2.1.0, using '-language-version 1.9'.
Type :help for help, :quit for quit
>>> :quit

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

  1. Run ide kotlinc
  2. Try to close the terminal by typing :quit

Related/Dependent Issues

Comments/Hints:

Affected version:

  • OS: Mac x64
  • IDEasy: 2024.12.001-beta-SNAPSHOT
@janvcap-mac janvcap-mac added the bug Something isn't working label Dec 9, 2024
@github-project-automation github-project-automation bot moved this to 🆕 New in IDEasy board Dec 9, 2024
@alfeilex alfeilex added the macOS specific for Apple MacOS label Dec 11, 2024
@hohwille
Copy link
Member

At first I thought this bug is invalid but it is working properly if not prefixed by ide command.
Further, if prefixed by ide command the kotlinc REPL shell starts and prints the output as displayed above but the terminal prevents the user from entering any data

That is IMHO a fundamental design problem of IDEasy since the user input is send to IDEasy and that started kotlinc but does not forward the users input to the kotlinc process.
What we would need to do is to replace our IDEasy process with the kotlinc process what is possible in C programming but I have no clue how to things like that in Java via process API and if that is possible at all.

The bug description is slightly confusing to me since for me it is impossible to even type and enter :quit into the kotlinc REPL shell.
Maybe this behaves differently on Windows compared to Mac.
However, after I press [Ctrl][c] then kotlinc is terminated and after that, I can see my typed text that was "invisible" before and never reached kotlinc process.

@hohwille
Copy link
Member

My observation seems to apply to Windows and is already described in #857

The Mac error for kotlinc is also a duplicate of #804.
Hence, I am closing this issue as duplicate.

@github-project-automation github-project-automation bot moved this from 🆕 New to ✅ Done in IDEasy board Jan 19, 2025
@hohwille hohwille added the duplicate This issue or pull request already exists label Jan 19, 2025
@hohwille hohwille changed the title kotlinc process can not be closed properly on Mac x64 DUPLICATE: kotlinc process can not be closed properly on Mac x64 Jan 19, 2025
@hohwille hohwille added this to the rejected milestone Jan 19, 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 duplicate This issue or pull request already exists macOS specific for Apple MacOS
Projects
Status: ✅ Done
Development

No branches or pull requests

3 participants