Intellij jvm doesnt show my console output - kotlin

my problem is that when I write a code and run it, the console just doesnt show it.
I dont know anything about it and started new.
I installed a second time but still without success.
can you give me any tips to solve it, cause since two days I cant go on with my book.
thx very much.

If you're talking about the "Run" output, have you gone up to the "View" menu, then to "Tool Windows" then "Run"? That is where most of the view window settings are in IntelliJ (and other JetBrains products)

Related

IntelliJ: How can I "kick" the error highlighting process to get it unstuck?

I'm working on a create-react-app codebase with Typescript enabled.
I find that IDEA real-time syntax analysis of my code often gets "stuck".
I make a mistake, IDEA shows the little red squiggles almost immediately, then I fix the errors but sometimes the red squiggles don't always go away.
For example:
There's nothing wrong with the above code any more, but IDEA still shows the red squiggles, both in the code and the project tool window / changelist window.
I've found that I can "un-stick" the code analysis by killing any/all the node.exe sub-process that IDEA has. Presumably one of those sub-process is "stuck" and when I kill the process, IDEA launches a new one and the syntax error highlighting will disappear.
Obviously, I'd prefer that the code analysis not get stuck at all, but failing that is there a way I can "un-stick" the code analysis from within the IDE?
I'm looking for something faster than re-starting IDEA (or clearing caches, etc.)
Using IntelliJ IDEA 2020.3 (Ultimate edition) on Windows.
package.json configuration and the rest of the code can be found here: https://github.com/kopi-cloud/cabbage/tree/main/app
As per comment from Lena, restarting the Typescript language service will fix issues with stale highlighting errors.
The Typescript status bar widget is usually found at the bottom right of the editor:
Tested with IDEA 2021.1.2

Can't type in IntelliJ

I'm using IntelliJ IDEA on my Mac to work on a project, and I keep on coming across an issue where I can't type. Occasionally when I switch to another application and then switch back to IntelliJ I can't type anything, and the cursor doesn't appear on text when I click on things. Does anyone know what causes this? After 1-2 minutes it goes back to normal, but it's started happening more frequently and it's pretty frustrating to not be able to type and have no way to fix it.
This is the version of IntelliJ I'm using:
IntelliJ IDEA 2016.1.3
Build #IC-145.1617, built on June 3, 2016
JRE: 1.8.0_76-release-b198 x86_64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
Turn off Vim Emulator from Tools in the IntelliJ, like this picture:
I am encountering this issue aswell, ...
MAC os Mojave 10.14.2, Inteliij Community 2018.3.5
Aside from restarting / clearing caches, I found that cmd + leftShift + F still opens the search window, and all my keystrokes appeared in the searchbox!
After the searchshortcut, I was able to close the searchbox and work again!
The answer here helped me https://intellij-support.jetbrains.com/hc/en-us/community/posts/206152119-Can-t-type-in-editor-window
Quoting the author of the answer:
I had the same problem. It goes away after I click the icon at top of
the scroll bar. it happens frequently on windows 7/10, and
occasionally on mac. my colleagues said they have experienced it too
Have the same issue occasionally, can't type in any Intellij windows. My temporary/quick fix, is to:
Close any terminal windows in intellij
Use cmd+shift+f to pull up the search window.
Seems to fix it, for a while.
Closed IDEA, all IDEA projects! Even though in other IDEA windows I could type.
Removed .idea folder in the project I could not edit.
Restarted IDEA.
Then I was able to type!
Maybe you entered Vim emulator as said. Maybe only by mistake :).
Control-V is a frequently used shortcut. And Control-Alt_V is the shortcut to enable Vim mode so you can see the problem...
How to know in five seconds: type a ":" (colon) and if the cursor jump to end of the screen, that is vim. If so enter q to quit and then Control-Alt-V (on windows) to go back to IDEA standard mode.
vi is a powerful text editor since ever. But only if you pretend and know how to use it... There is even a warning on the IDEA install saying like "do not install unless you are familiar with Vim" in yellow bold text, iirc.
[Follows historic data, that you may find boring off-topic or interesting]
Today's editors opens the code in edit mode right away so you can start typing over existing code. Vim by the other hand opens the code in, let us say, browsing mode: there is a set of navigation keys to browse the code. Everything you type is supposed to be a command. When you want to edit you enter INSERT mode and then you can type new text. Only then.
Just for more historic data: vi navigation mode is great for studying code you do not know, using IDEA, since it does not change the text unless you tell it to, and some vi commands are clever.
One example:
"/" (forward slash) is one search command, and "z" is a smart scroll command so that:
/setCellFactory will search for the next match of "setCellFactory" and put the cursor there
Then if you type "z" the code will be positioned so that line is the first on screen. And if you type "." the line will be at the middle. And if you type "-" that line will be at the last position at the screen. And you can use these commands again and again. And new slash will go for the next match, like F3
This "z" thing is a feature I miss in Visual Studio, IDEA, Eclipse, Word, WordPad: these commands to scroll text AROUND a pattern... /pattern, z, z., z-. The alternative is the mouse wheel...
I am used to vi since the 80's and is the editor I still use today on Linux terminals so when this happened to me on IDEA I was lucky to remember and suspect of that on the first time.
Sorry if these details are boring
Ensure you haven't unintentionally enabled vim emulation. Go to IntelliJ Idea -> Preferences and select Plugins. Scroll down and look for the vim emulation plugin and if it's checked, then either uncheck it or uninstall it completely.
Ran into same issue with intelliJ 2017.1.2, but no VIM Plugin. However, I had just created an empty project with some .groovy files. I could edit the files in the groovy project, but not java projects.
Only way I could fix java projects, was blow-away workspace.xml files in each, then I could edit again. However, had to re-create tomcat configs, breakpoints, other IDE settings. etc.
I had a problem with entering characters when working with .story files. When I tried to type in any character, it appeared for a short while and immediately disappeared. The cause of the problem was jbehave plugin I was using. After uninstalling it and restarting IntelliJ everything was fine.
It seems to be because another window has the cursor and is not giving it back.
Check any open floated windows, click on them & then click back to your intellij instance
alternatively, if you have multiple intellij instances open the cursor could be there...
Go to the most recently opened IntelliJ instance
Check if the cursor has become stuck in that project's terminal window, or another window
no? check all other open IntelliJ instances
For me it happened because of vim
Om Mac, I solved it by navigating to File → Reload All from Disk.
Keyboard shortcut: ⌥ ⌘ Y
IntelliJ IDEA 2020.1.4
Try disabling plugins one at a time. It was the "BashSupport Pro" plugin that caused it for me. Disabled it and I could type again right away.
I read other comments saying some other plugins caused the issue as well.

What does Command+M shortcut mean in IntelliJ Idea (Mac)?

I know this is stupid question but I'm always! mistakenly using this f.king short cut and IDE locks. So, I cannot click anything in the IDE.
I searched the Internet as well as http://www.jetbrains.com/idea/docs/IntelliJIDEA_ReferenceCard_Mac.pdf but didn't find what it is and how to escape. Currently I'm closing the IDE and rerun it. Any suggestion would be appreciated. Thanks.
According to the default keymap sheet it doesn't actually do anything.
There might be a conflict with the OS default to minimise the window which is causing the application to lock.
I'm running IntelliJ 13 Ultimate on Mavericks. Mine says it's supposed to Minimize the window.
In the interest of SCIENCE, I pressed Command-M. Sure enough, it locked up my IDE. I had to kill it to continue working.

Missing "messages" window after compilation in IntelliJ

I'm using IntelliJ IDEA 12. When I run "make project", "debug" or "run" task it does some compiling, shows little bubble that there are warnings, shows grayed-out tool window "message" and after few seconds it hides the nameplate of messages window.
Why is compile log missing? What to do to fix this? I'd like to see (in IDE) what causes those warnings...
PS: I'm not sure, but it might started doing this when I started using Scala (it's now a mixed Scala-Java project).
If you've previously selected "Hide Warnings" then the Messages window is unavailable if there are no compilation errors. It is not even possible to show the empty window using View->Tool Windows-> Message or Alt-0.
Solution:
introduce a compilation error
build, the Messages window should reappear to show your error (or at least be accessible via the View menu)
go to the Messages window and deselect Hide Warnings
fix the compilation error
Rebuild Project and all your warnings will be visible
(I had the same symptoms on 13.0.2 and this worked for me)
For me, it pops up on "Rebuild Project". Maybe that helps.
The window should be there any time IDEA compiles the code. (If there is a not a code change, and you rerun something there is no compiling done and the message window will not show). It is accessible (by default) via Alt+0 (Zero, not the letter 'Oh') or via View > Tools Windows > Messages
You may have a combination of some tool window settings causing this.
If all the tool window buttons are hidden, the messages tool window will be as well. You can toggle this setting via View > Tool Button or the icon in the very bottom left corner of the IDE. To temporarily show the buttons when hidden, hit the Alt twice, holding it down on the second hit.
If the messages tool window is not set to "Docked Mode" and "Pinned Mode" it will close after the compile.
If the above is not the issue, make sure you are using the latest version of IntelliJ IDEA, v12.1.6, and the latest version of the scala plug-in, v0.22.302 (Go to Settings > [IDE Settings] > Plugins and look for the scala plug-in). Those versions work as expected for me.
Looks like u do not have any errors and warnings! In this case in Idea "Messages" tool window auto disappears. I hade the same issue and passes half an hour to understand the reason!

Jdeveloper run configurations missing in version 11.1.2.2.0

Just wondering if anyone else has experienced problems with JDeveloper 11.1.2.2.0 and run configuration options that appear when you click the dropdown next to the run and debug buttons?
In previous versions I always had several options available - for starting the client/server/etc. However in this version I do not always get the dropdown unless I click into a different project, then click back into the project I want to run. If anyone has discovered a more permanent fix for this I would love to hear about it.
Many thanks
This is a bug I also stumbled upon. Only other thing you can try is to use the run menu and check if you see the options in there.
I personally use trick you already know (switching projects).