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

IntelliJ terminal opens and crashes #2885

Closed
DRSDavidSoft opened this issue Oct 23, 2023 · 7 comments
Closed

IntelliJ terminal opens and crashes #2885

DRSDavidSoft opened this issue Oct 23, 2023 · 7 comments

Comments

@DRSDavidSoft
Copy link
Contributor

DRSDavidSoft commented Oct 23, 2023

@DRSDavidSoft Apologies for the late response.
I took the logs. The terminal output the values in the file below and then just crashed. Therefore, I collected the output in a file.
Seems there is no error output.

Awaiting your analysis. Thank you

systeminfo.txt

Originally posted by @alibutt30 in #282 (comment)

@DRSDavidSoft
Copy link
Contributor Author

@alibutt30 Thanks for the log, can you please open this file:

C:\utils\cmder\config\user_profile.cmd 

Then modify the line @echo off to be echo on and generate the log using the /d flag again?
Note: Please remember to change it back to @echo off once you're done. Thank you!

@chrisant996
Copy link
Contributor

@alibutt30 Can you also describe the crash? "Crash" can mean different things to different people, and readers are likely assuming various meanings that may or may not be similar to what you're experiencing.

Knowing more about what's happening can improve the troubleshooting process, and help identify a fix more quickly.

@DRSDavidSoft
Copy link
Contributor Author

I believe he refers to the unexpected exit of the batch script

@chrisant996
Copy link
Contributor

What are the contents of user_profile.cmd?

It's a user-customizable script, right?

If it calls another batch script without using the call keyword, then it will halt further script processing.

@alibutt30
Copy link

Apologies for the late reply.

Thank you for moving the topic to a separate conversation and issue.

The crash means the unexpected exit of the batch script. (uploading a small video to explain what i see)

2023-10-25_09h38_54.mp4

@DRSDavidSoft I enabled the echo on for this file as per your instructions

C:\utils\cmder\config\user_profile.cmd 

there is nothing inside the user_profile.cmd. (attaching it for you to see along with debug logs)

user_profile.txt
debug_info.txt

The shell path i use in IntelliJ is as follows

C:\utils\cmder\vendor\bin\cmder_shell.cmd /d > C:\Users\XXX\Desktop\debug_info.txt

Thank you,

@DRSDavidSoft
Copy link
Contributor Author

@alibutt30 I have updated the official guide with the correct approach to integrate Cmder into IntelliJ. Please visit this page and apply the required changes to the IntelliJ settings:

https://github.com/cmderdev/cmder/wiki/Seamless-IntelliJ-based-Integration

This should fix the problem for you completely.

If this didn't work, please let me know that whether in the user_profile.txt file that you attached, did you change the last line to echo on, as it still reads @echo off.

Furthermore, please open the following file in your local installation:
[cmder_root]\vendor\bin\cmder_shell.cmd

then replace the content with the updated version that I have linked above, the difference is that I have added %* after this line:
call "%CMDER_ROOT%\vendor\init.bat" /f

@alibutt30
Copy link

alibutt30 commented Oct 25, 2023

@DRSDavidSoft Thank you so much for the fix.
I can confirm that I provided you the logs with the @echo on and I accidentally gave you the file after reverting it back to @echo off

I updated the [[cmder_root]\vendor\bin\cmder_shell.cmd] file in my local installation. And then followed the https://github.com/cmderdev/cmder/wiki/Seamless-IntelliJ-based-Integration page to use the correct shell path in the terminal settings in IntelliJ.

I can confirm the changes indeed fix the issue.

Thank you so much for your support and the fast fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants