I have been able to successfully send logs to file using the "Save console output to file:" option in the Logs tab of the Run Configuration, but I'm not sure how to disable logging to the IntelliJ console (so that fewer resources are used). Is this possible?
There is no option to disable console logging via the IDE settings.
To reduce the logging impact of the performance you can reduce the console buffer: Settings (Preferences on macOS) | Editor | General | Console | Override console cycle buffer size.
Another option would be to use some logging framework in your app (slf4j) and redirect the output to a file via the logging configuration inside the app.
Related
Using Intelliji for Java, I'm trying to get cucumber plugin, so i go to the file dropdown menu and go to settings menu and go to plugins. I type in cucumber in the plugins search bar. But nothing is found in the search results.
The message given is " search results are not loaded check the internet connection "
I also get " marketplace plugins are not loaded. Check the internet connection and >refresh< "
My internet connection is fine. I've already downloaded a load of dependancies using maven via intellij. the refresh button doesn't help. Why does intellij think the problem is no internet connection? How do I get intellij to find plugins?
I needed to set up a proxy under Appearance & Behavior Settings, System Settings, HTTP Proxy. I selected auto detect proxy settings. After this I was able to see plugins in the marketplace window.
For me I was able to get the marketplace working when I went to
Configure>Settings>HTTP Proxy Settings> Auto-detect proxy settings>Automatic Proxy configuration URL: https://plugins.jetbrains.com
Actually it seems to be working even without the Automatic Proxy configuration URL disabled
The changes of the settings work for me:
As mentioned in one of the comments on this link, I made the following changes:
Enabled Auto-detect proxy settings under Appearance & Behavior > System Settings > HTTP Proxy.
Removed the below flag under the Help > Custom VM Options.
-Djsse.enableSNIExtension=false
Restarted Intellij after making these changes. Made these changes on Intellij Ultimate 2019.3.3
There are a couple of things you can try.
I will start with what worked for me!
I felt my IP was blocking the plugins, I enabled the VPN and it worked!
for some version IntelliJ looks for plugins using HTTP protocol instead of
HTTPS, so add the following lines
IntelliJ bin folder-> idea.properties,
idea.plugins.host=https://plugins.jetbrains.com
try disabling the SNIExtension, Help->Edit Custom VM options
Djsse.enableSNIExtension=false
Such questions we should refer to the log of IDEA at first.
visit the menu Help ~> Show Log in Exporer, will open the directory of log,
For me,the log file is C:\Users\lawev\AppData\Local\JetBrains\IntelliJIdea2020.1\log\idea.log.
open the file we can find such contenet
2020-09-10 12:39:16,795 [ 158219] INFO - ateSettings.impl.UpdateChecker - failed to load plugin descriptions from https://plugins.jetbrains.com/idea: SSL error probably caused by disabled SNI
Now I see ,visit the menu Help ~> Edit Custom VM Options, check or add this line
-Djsse.enableSNIExtension=true
now it's ok!
my envirment is win10 1909,Intellij UI 2020.1
Starting IntelliJ (2019.2.1) on Windows 10 64-bit in Admin mode fixed this for me.
in my case, my goland settings somehow get corrputs, i delete the folder ~/.GoLand2019.2, and restart goland, then the marketplace works.
in my case, it happen because your internet service provider/ISP block https://plugins.jetbrains.com. There is 2 ways i solve it:
Before i use Sm'rtfren SIM Card Phone(from my country) provider which is can not load marketplace plugin. Then i switch to Tr'e SIM Card Phone provider and it works!
You can use UrbanVPN Desktop software, i use windows version. it will change ISP IP and then it works!
I encounter the similar problem in Android Studio when I want to install the Flutter& Dart plugins .
For me,I install Shadowsocks vpn proxy(https://github.com/shadowsocks/shadowsocks) in my computer.Then I change the Shadowsocks vpn proxy to global mode. After this I was able to see plugins in the marketplace window.Hope it can help you
I accidentally closed () the remote host window in a project of PHPStorm and i can't get it back.
It isnt in View->Tool Windows.
And is also enabled in Plugin Settings Page
Ok I succesfully bring it back by browsing Tools | Deployment | Browse Remote Host :D
Please check if the following options are enabled in settings(Ctrl+Alt+S). It goes uncheck if Php Storm crashes. Check the below options and restart the editor. You will layout restored. (sometimes when editor crash and these gets unchecked).
This works for ver 2017.2.1
Also, check Windows->Store current layout as the default just to make sure in the future you can restore the layout.
I have a java applet to be run in browser, when it is started by jre plugin its console starts but before i could see something, it gets closed. Is there a way to chcek these console logs even if it is closed? may be some file or something where it is saved.
Enable Tracing in Java Control Panel. This way the console outputs are saved in a file here:
<User Application Data Folder>\Sun\Java\Deployment\log
More info here: http://docs.oracle.com/javase/7/docs/technotes/guides/jweb/jcp/tracing_logging.html
I use Weblogic 12.1.3, when logged to admin server I see a tab with label "WLDF Console Extension" when choosing it, I get this message
"The WLDF Console Extension, which provided visual tools to display diagnostic information in this domain, has been replaced in this release by new integrated Monitoring Dashboard and Request Performance tools. For more information on these updates, please consult the online help and release notes for this release..."
How to hide this uselss tab, I have another installtion at work with the same version does not have this tab.
In general the WLDF extension is not installed by default so someone must have put it there and/or turned it on. To remove it there are 2 options:
Navigate to <domain dir>/console-ext and remove the diagnostics-console-extension.jar file. Restart your admin server.
Click the perferences link at the top of the admin console, click the Extensions tab, find the diagnostics-console-extension and disable it
If you ever need it back you can re-enable it or copy it back into your domain directory from the WL_HOME\server\lib\console-ext folder
Right now, the directory of my module is defined as an IIS virtual directory and IIS serves the files.
I was wondering whether IntelliJ has an internal web server, which can serve the files, without the need for any third party. Eclipse does.
UPDATE: built-in web server is available in the recent IntelliJ IDEA versions (starting from 13). You can find more details in the blog (yes, this feature first appeared in WebStorm).
IntelliJ IDEA has no this feature, you need to install and use any third-party web server that can serve the content from the project folders.
A built-in HTTP preview server will be part of Intellij IDEA 13 and is already available in the EAP: http://youtrack.jetbrains.com/issue/WEB-7148
"All existing actions — preview in browser (pop-up over html file or menu action or
shortcut), open in browser and create/debug html file action now open file on built-in web
server
http://localhost:63342/<project name>/<file path relative to source or content root>"
In other words, right-click on an HTML page and select "Debug" or "Open in browser", and IDEA 13+ will serve up that page via port 63342.
Here's another super simple option, install Python: http://www.python.org/getit/
Then open a shell prompt, navigate to your root web folder (e.g. public) and run python -m SimpleHTTPServer - This starts an HTTP Service on port 8000.
Further reading should you need it: http://www.linuxjournal.com/content/tech-tip-really-simple-http-server-python
I've got mine running on Windows 7 but the above article still applies.
Another option is is create a PHP project that, starting with v 5.4.0 of PHP includes a built in web server. This page explains it all ...
http://www.jetbrains.com/idea/webhelp/php-built-in-web-server.html
IntelliJ IDEA has a built-in web server that can be used to preview and debug your application. Just watch this YouTube video or follow the steps below.
Option 1
You need to add new 'JavaScript Debug' configuration:
Click Add Configuration... or Edit Configurations... in the Navigation bar
Click button in the toolbar or press Alt + Insert to create a new configuration
Select JavaScript Debug under the Templates node in the tree view of run configurations
Fill in Name, URL, Browser and click [OK] to save the configuration
Use http://localhost:63342/YOUR-PROJECT-NAME/index.html for URL
Now you can run the configuration:
Click run or debug button in the Navigation bar (or use Shift + F10 / Shift + F9 hotkeys).
Option 2
Running web page in browser without creating a configuration. Refer to the related IntelliJ IDEA Help article.
In the editor, open the HTML file. This HTML file does not necessarily have to be the one that implements the starting page of the application.
Do one of the following:
Choose View | Open in Browser on the main menu or press Alt+F2. Then select the desired browser from the pop-up menu.
Hover your mouse pointer over the code to show the browser icons bar: . Click the icon that indicates the desired browser.
Result
Google Chrome browser with a demo web page served by the Intelij IDEA's built-in webserver:
One simple way is to create a NodeJS / Express project in IntelliJ that is your web server. You can then use it to serve your static web pages and any other web content. The NodeJS web server is very small and runs fast - noticeably faster than IIS and Apache. Best of all you can just hit the Run button in IntelliJ or WebStorm to start it up.
By default, a NodeJS / Express project includes a public/ directory that you can use to contain your static pages that you can then view from http://localhost:3000/
This explains the steps required to enable NodeJS in IntelliJ and includes links to other Node resources:
http://www.jetbrains.com/idea/webhelp/node-js.html
If you feel the need, you can reconfigure your NodeJS server using server side Javscript code. You can add SSL support or almost any other server side features you care to dream up. Just add NodeJS modules using the npm (Node Package Manager) command line tool included with the install. NPM Registry https://npmjs.org/ indexes all the available modules.
You can configure IntelliJ to use a lot of different application containers, but each of them must be downloaded and installed separately. I currently have mine configured to serve via jetty, like eclipse, and also tomcat, tc-server, jboss, and node.js. It's pretty easy to set up.