Strange symbols in IDEA terminal - intellij-idea

When I run my application from IntelliJ IDEA's terminal firstly output is normal, but after some time of program execution it starts to look like this:
What my program could have done to achieve this result?
When I run it in system terminal everything is OK.
Got same results on Xubuntu and Mac machines.

There is an unresolved issue IDEA-129658 for this exact problem. You can register on YouTrack and upvote it to improve the chances of it getting fixed sooner.

Related

Runner got struck after running the test cases I am using 1.1.0 version [duplicate]

We have currently about 200 test features. We start to face something strange, most of the times tests are just stuck and would not proceed when we run mvn test command as the following:
mvn clean test -Dcucumber.options="--tags $tags" -Dtest=TestRunner -Dkarate.env=$env
Some tests would run as it was perfectly fine. But at some point the rest will just stuck as it it hangs.
We run the tests in parallel using 10 threads.
It stucks like this
Anybody experienced similar things? Any ideas what could possibly went wrong?
Thanks
This should be fixed in 0.9.5.RC3 - it is stable to use for API testing, so I recommend you upgrade.
If anyone faces this problem for any other version of Karate, please understand that the best (and possibly only) way to troubleshoot or solve this - is to follow this process: https://github.com/karatelabs/karate/wiki/How-to-Submit-an-Issue
I actually have the same problem as you but I can't comment because of reputation, my project works with Gradle and I'm using IntelliJ IDEA and JDK1.8(at another moment before all this I tried Jetbrains SDK11 but had the same problem, I downgraded to java 8 and everything worked again) on this ocassion I did as peter said and upgraded to 0.9.5.RC4 but still when I execute some of my features they never end, for example, I'm currently working on a very simple feature that calls another feature for login, it works for many other features but for this one it appears to get to the end of its execution and never go back to the caller feature, as I was running out of options I made a new simple project copied the resources folder I store my features in and my run parallel class and tried again but it behaves in the same way, the execution never ends.
I'll upload an image with my screen while it executes as you can see it's been executing for 15 minutes
projectView

Why won't CodeBlocks attach to a process?

I recently ran into an issue that I want to share Q&A style here. Hopefully it will help others, at minimum it is documented so I can find it later :)
When trying to run Ncurses in CodeBlocks it blows up when it hit initscr();. With VSCode this was not a problem, so I know there was something I am missing. With the help of StackOverflow it appears the best way to approach this with gdb (and CodeBlocks) is to attach to the process itself after it is running, rather than starting it in CodeBlocks. (Debugging ncurses application with gdb)
However, when I try to attach to the PID it just says that it was unable to attach to the process. Why is this?
I found that if I tried to run it through gdb on the commandline I also got this same issue. It comes from Kernal Hardening to prevent hacking. With this answer: https://stackoverflow.com/a/32274645/1770034
I discovered I needed to switch over to the root user. Then run echo 0 > /proc/sys/kernel/yama/ptrace_scope Now Code blocks will happily attach to the process and you can use your break points.

Karate Tests Stuck on Running Forever

We have currently about 200 test features. We start to face something strange, most of the times tests are just stuck and would not proceed when we run mvn test command as the following:
mvn clean test -Dcucumber.options="--tags $tags" -Dtest=TestRunner -Dkarate.env=$env
Some tests would run as it was perfectly fine. But at some point the rest will just stuck as it it hangs.
We run the tests in parallel using 10 threads.
It stucks like this
Anybody experienced similar things? Any ideas what could possibly went wrong?
Thanks
This should be fixed in 0.9.5.RC3 - it is stable to use for API testing, so I recommend you upgrade.
If anyone faces this problem for any other version of Karate, please understand that the best (and possibly only) way to troubleshoot or solve this - is to follow this process: https://github.com/karatelabs/karate/wiki/How-to-Submit-an-Issue
I actually have the same problem as you but I can't comment because of reputation, my project works with Gradle and I'm using IntelliJ IDEA and JDK1.8(at another moment before all this I tried Jetbrains SDK11 but had the same problem, I downgraded to java 8 and everything worked again) on this ocassion I did as peter said and upgraded to 0.9.5.RC4 but still when I execute some of my features they never end, for example, I'm currently working on a very simple feature that calls another feature for login, it works for many other features but for this one it appears to get to the end of its execution and never go back to the caller feature, as I was running out of options I made a new simple project copied the resources folder I store my features in and my run parallel class and tried again but it behaves in the same way, the execution never ends.
I'll upload an image with my screen while it executes as you can see it's been executing for 15 minutes
projectView

azds up seems to take forever. Any way to debug?

So, I've had an Azure Dev spaces project running for a while. Up until recently, it was working fine. Now, It is stuck at "Syncronizing files".
Is there any way to debug what's going on?
Cancelling the azds up command and restarting the terminal solves the problem for me whenever I am stuck anywhere. When even that doesn't work, it is a good idea to run az login once in a while.

PyDev console does not accept ANY input

I'm wondering if anybody can help figure this out... I am running JRE/JDK 7u9 32-bit with Eclipse 4.2.1, and PyDev 2.7.1 (everything is up to date). I've got Jython 2.5.3 installed, and have PyDev set to use it as the interpreter.
My issue is that for some reason, the console in PyDev won't seem to register ANY input.
For example, I have the following code:
inStr = raw_input('Enter a word: ').strip()
print inStr
When I run this, the console does display the "enter a word" prompt. However, when I type anything in the console and press enter, it just moves to a new line, NO additional output of any kind is produced, and the program keeps running, waiting to receive input. I've tried Java 6 and different versions of Jython, but nothing I do makes any difference. I've read about the PyDev console sometimes inputting additional hidden characters and as a result, causing unexpected program behavior, but I thought the .strip() takes care of that. In my case, it's as though the console is just not accepting any input period....
I would've put this as a comment to your question, but maybe I don't have sufficient privileges.
I had the same problems (initially, I thought it was working on Eclipse 3.6). I ran your code (without the strip()) successfully (i.e., I entered input and it printed to the console) in the following configurations:
Eclipse 3.6.1/Python 2.6.6
Eclipse 4.2.1/Python 2.6.6
With the interactive console, it worked on:
Eclipse 3.6.1/Jython 2.5.3
Eclipse 4.2.1/Jython 2.5.3
It unfortunately failed for
Eclipse 3.6.1/Jython 2.5.3
Eclipse 4.2.1/Jython 2.5.3
Just to make it clear for anyone that stumbles upon this, this is an issue on Jython 2.5.3.
If you go to Jython 2.5.2 or Jython 2.5.4rc1, things work as expected.
I had a similar issue. After clicking the red square in the top of the console to terminate the console tooltip, it stopped.