Intellij terminal is messed up - intellij-idea

Yesterday, I started having some problems with my intellij terminal. I think it was after I installed ConEmu my terminal looked strange.
This is what my terminal looks like in intellij now:
←[m←[32m←]9;8;"USERNAME"←\#←]9;8;"COMPUTERNAME"←\ ←[92mC:\Dev\Project\
Has anyone had a similar issue, if so, how did you fix it?
Thank you!

I didn't really fix the issue, but I replaced the normal terminal (cmd) in intellij with cmder.
The terminal setting (CTRL + ALT + S) -> terminal
cmd.exe /k ""%CMDER_ROOT%\vendor\init.bat""

Related

running IntelliJ idea from terminal prints everything has changed

I use manjaro linux and run applications from the terminal. Recently when I type idea (running I assume idea.sh, as this is what the top of the terminal says), and try to minimize and expand the idea window the terminal prints "Everything has changed". Is this something I should care about or is it just some random text?
everything has changed
It's a bug in the bundled JDK, should be already fixed in a later version: https://youtrack.jetbrains.com/issue/JRE-854

Failed to spawn command in atom

I am getting below error on opening files in atom. Does anyone know what could be the error ?
Failed to spawn command /cygdrive/c/Users/williams/AppData/Roaming/npm/flow. Make sure /cygdrive/c/Users/williams/AppData/Roaming/npm/flow is installed and on your PATH
Here is the screenshot
I found the solution that works for me
I have Ubuntu 18.04 installed
Solution :
Go to Ubuntu Software ( you will find it on taskbar or search in all apps)
In store search for xterm and install it.
Now after installation, run your code by F5
That's it.
Try these two things:
1) Open and run Atom as an administrator
2) Reinstall Atom
You don't mention if this just happened out of nowehere or after installing an extension.

IntelliJ shortcut for Run Configuration

I recently changed Linux distros and I have forgotten what the keyboard shortcut is for making a run configuration in Kotlin in IntelliJ.
Thank you in advance.
Alt-Shift-F10 on Windows
Option-Shift-R on Mac OS
It may be helpful to print out the cheat sheet:
https://resources.jetbrains.com/storage/products/intellij-idea/docs/IntelliJIDEA_ReferenceCard.pdf

Terminal broken in Intellij 13 when run idea64.exe

I'm using Intellij 13.1.3 on a 64bit machine. When I run idea.exe the cygwin terminal within Intellij works fine but if I run idea64.exe, terminal opens up but no prompt. Ideas please?
(Posted on behalf of the OP):
I solved the problem by starting idea.bat instead of starting idea64.exe directly.

IntelliJ - Running Program as Sudo

Developing a program on OSX using Java and IntelliJ. Deals with network sockets and ICMP. Hence, the program needs to be run as root or sudo'd on OSX. Program runs fine from a terminal window outside IntelliJ under sudo. However, I would like to debug and run it from IntelliJ (V9). In IntelliJ it errors (I need root privs to enumerate network devices). I know how to pass program and VM parameters in IntelliJ but now how to hit Run and/Debug and have it run under sudo? What is needed is basically sudo java ...... MyProgram instead of java ..... MyProgram Any ideas or workarounds.
I came out with an answer and wanted to share it just in case anyone else runs into this. To solve the problem, I took my cue from what I do with QT & QT Creator when doing network programming.
On OSX, I opened up a terminal window and cd'd down to/Applications/IntelliJ IDEA 9.0.3.app/Contents/MacOS. There you will find a file called idea which launches the IDE. I ran that as sudo (sudo ./idea). That took care of permissions on anything Intellij launched and I could debug and step through my code as needed.
sudo /Applications/IntelliJ IDEA 9.0.3.app/Contents/MacOS/idea
Since this is a dev machine and I am in control of it security is not an issue in this case.
Hope it helps someone else out.
Inside a terminal:
sudo -s
give access to the root user.
from there you could run the Idea IDE using the script:
/Applications/IntelliJ\ IDEA*/bin/idea.sh
and in this way I'm able to work on network where permission errors where printed before.
Debugging of sudo programs is disallowed by the operating system unless the debugger is running as root, for security reasons.
So, even if you can figure out how to get IntelliJ to use sudo it won't do you any good.
I know this is not what OP directly asked -
In case someone needs to do this on Linux (Ubuntu), e.g. in order to update Idea, just run from command line:
sudo /usr/local/bin/idea
Only make sure once the Update and Restart is finished to actually close Idea and start it normally
I agree with #Darron, it is not recommended to execute IntelliJ with sudo.
You can execute with IntelliJ terminal instead.
I maintain my project in IntelliJ. When I need to execute a unit test that requires sudo access, I just open IntelliJ terminal and type:
sudo gradle test
Good luck!