JProfiler not working in IntelliJ 12 (JProfiler executable is null) - intellij-idea

I'm trying to profile my Android app. I installed the JProfiler plugin through
IntelliJ IDEA --> Preferences --> Plugins
Here's a screenshot of the plugin description:
When I try to run the profiler nothing happens and I get this message saying that the JProfiler executable is null:
Any idea on how to fix this?

You need to set or re-set the JProfiler executable. Do the following:
Select "Edit Configurations" from the "Run" drop down menu
Select "Application" under "Defaults" in the dialog box (or any existing run configuration)
Select the "Startup/Connection" tab
Select "JProfiler" in the list
Click on the "Select JProfiler Executable" button
Choose the JProfiler executable, which is
[JProfiler installation directory]\bin\jprofiler.exe on Windows
[JProfiler installation directory]/bin/jprofiler on Linux/Unix
[JProfiler installation directory]/bin/macos/jprofiler.sh on Mac OS X

You have to install JProfiler first, you can download it here.

You need to have JProfiler 7.2.2 (or newer) which integrates with IntelliJ IDEA 12
http://www.ej-technologies.com/download/jprofiler/changelog.html#7.2.2
To start, in a file browser check if you have the plugins folder, if not create it, so it looks like this
C:\Users\[username]\.IntelliJIdea12\config\plugins
If running IntelliJ IDEA 12, close it.
Inside JProfiler go to
Session -> IDE Integrations
And choose IntelliJ IDEA 12.x and click Proceed button
Choose your .IntelliJIdea12 folder
C:\Users\[username]\.IntelliJIdea12
And you're done, you should see a new button Next to Run [class#method] with Coverage that says Profile [class#method]

Related

Can't find SBT-shell in IntelliJ IDEA

Facing some issue with the build, I deleted the project and .idea directories of my SBT project (containing submodules) followed by Invalidate Caches / Restart... (invalidated the cache too)
Ever since relaunch of IntelliJ, I can't locate the sbt shell
Interestingly, I'm still getting the sbt shell when I open my other projects (in which I didn't delete the project and .idea directories) in IntelliJ
I can confirm that I have the latest release of IntelliJ IDEA for MacOS with the Scala plugin installed
what fixed my problem was:
install scala plugin
restart
file -> close project
instead of open, click new project, select scala with sbt option,
then next
select the same project as location.
hope it will save you time and energy
In Intellij 2018, under Preferences - Build, Execution, Deployment - Build Tools - sbt, check "Use sbt shell for build and import (requires sbt 0.13.5+)". Then restart Intellij. The sbt shell tool window tab will appear in the bottom pane (if not, select it from View - Tool Windows - sbt shell).
In my case, scala plugin needed to be updated and accordingly this caused sbt to disappear from build tools. Go to Settings --> Plugins --> Updates and make sure that scala plugin is updated. If it wasn't and you updated it, you should restart the IDE afterwards.
After that removing the .idea folder and reimporting the project was necessary for the project to build.
You can select
Window → Restore Default layout
Or press Shift + F12
This will restore your default window layout and the tab will be visible again (You can check this works by hiding the sbt tab by right clicking and selecting 'Remove From Sidebar').
Some windows such as Maven or Ant need to be brought back by
View → ToolWindows → [Window Name]
In my case I enabled the sbt shell going to "File - Settings - Build, Execution, Deployment - Build Tools - sbt " and after enabling here, you need to restart your intellij and then you can find sbt-shell here "view- Tool window - sbt shell"

Change intellij JVM

I saw a comment about fixing an issue with the Intellij
"The problem should not occur if you switch Java used by the IntelliJ IDEA from OpenJDK bundled with IDEA to Oracle JVM. At least this can work as a workaround."
How can I change the JVM in Intellij ?
Set an environment variable to tell IntelliJ what JVM to use for the IDE.
Go into Control Panel...System...Advanced System Settings. Click the "Advanced" tab, then click the "Environment Variables" button to edit.
Add a new user variable -
"IDEA_JDK" for a 32-bit JVM, or "IDEA_JDK_64" for a 64-bit JVM. Set the variable to point to the directory of the JDK you want IntelliJ to use (e.g., "C:\Java\jdks\1.8x64" or similar)
Restart IntelliJ.
The procedure is described here:
Open the Find Action popup using ctrl+shift+A
Type switch and select Switch Boot JDK
Select an existing JDK in the dropdown (use ... to select a custom path)
Reboot the IDE

Not able to install sonarlint plugin in Platform: Eclipse Mars.1 (4.5.1)

Trying to install sonar lint plugin in STS tool, it is not installing and says Sonar lint not compatible with this version of eclipse.
Find the versions details.
Spring Tool Suite
Version: 3.7.2.RELEASE
Build Id: 201511261048
Platform: Eclipse Mars.1 (4.5.1)
Hi you can download sonar lint from the follwing URL http://www.sonarlint.org/eclipse/ then follow the steps given below
Make sure the download location, Don't unpack the archive file(for windows)
Go to install new software option in eclipse Help >>
Click Add button in right of work with text field, following screen will appear
Fill name location as "Sonar" etc
Now select the downloaded archive file by clicking Archive button
Follow the installation instructions from the Installation window
you can also install zip file of SonarLint as follow:
1.go to the site https://bintray.com/sonarsource/SonarLint-for-Eclipse/releases/2.6.0.
2.download the setup jar file and go to help menu of eclipse
3.click on "install new software"
4.click on add.
5.click on "archive".
6."open" the jar file from the location you have downloaded the jar.
install the software.
Not sure what the problem exactly is, but I worked around this by starting up STS, select "Install New Software" and pasted the Solarlint update site URL into that dialog: http://eclipse.sonarlint.org/
That allowed me to install the plugin into STS 3.7.2 without any issues.
Hope this helps!!!
Please Make visit to this link and as i see you are using mars.
1. If you have eclipse marketplace installed then you can proceed as per.
you just need to drag this icon to your eclipse and done.
2. If not Installed then also same link click on download button and after downloading go to eclipse on right side there is search functionality type install new software and then select that option window will pop up choose>>add button>>archive button>>and upload zip file from download location >>accept agreement and done click on next done.
If you found it easy and helpful please up-vote happy coding and reviewing with sonarlint
1.Download it from https://www.sonarlint.org/eclipse/
2.In Eclipse go to Help->Install New Software->Add
3.Now click on Archive and select downloaded plugin zip and click Ok
4.Select the items and click Next and then accept license agreement and finally it will ask for a restart

Configure and install Intellij IDEA SDK

Now I want to write a plugin in intellij , development of every custom plugins requires the IntelliJ IDEA SDK to be installed and configured for that project. How can I install and configure sdk to my project?
Here you can read official guide to configure IntelliJ Idea SDK
Press CTRL + ALT + SHIFT + S
In the Project Structure dialog box that opens, do the following, and then click OK
Under Platform Settings, click SDKs, and then click the plus sign icon.
From the provided list, select IntelliJ IDEA Plugin SDK.
Using the Select Path dialog box that opens, select the IntelliJ IDEA installation directory directory, and then click OK. Note, that by default, this dialog box automatically selects the home directory of the currently running IntelliJ IDEA installation.
In the Select internal Java platform dialog box that opens, select a Java SDK (JDK 1.6 is recommended) to be used as IDEA internal platform, and then click OK.
Optionally, in Sandbox Home, change the default folder to which Intellij IDEA will copy plugins for debugging.
Open the Sourcepath tab, click Add, and then select the folder where you have checked out the sources of IntelliJ IDEA Community Edition.
In the Detected Source Roots dialog box that opens, click OK.

Eclipse plugin deployment in same Eclipse instance - possible?

I am developing an Eclipse plugin which will operate in plugin-only mode - mainly special context menus for certain project natures. Is there a way to deploy the plugin into the current Eclipse runtime, so I can immediately test it there?
If no, how are developers supposed to test plugins which use Eclipse's file explorer?
In your Eclipse IDE, open "Run > Run Configurations..." Select Eclipse Application and create a new run configuration.
Then on the "Main" tab there will be a "Program to Run" section. Select the radio button "Run an application:"
Then in it's drop down menu, select "org.eclipse.ui.ide.workbench"
Now switch to the tab labeled "Plug-ins". Make sure the plug-in that you are building and want to test is selected. You may have to use the drop down labeled "Launch with:" and select "plug-ins selected below only" in order for the UI to let you select the plug-in your building.
Now, just to make sure this is all going to launch correctly, select the button, "Validate Plug-ins" If there are errors, close the message box and select the button, "Add Required Plug-ins" This will auto select all dependent plugins for this run configuration.
Now select the button "Run" and a new instance of Eclipse will launch with your plug-in installed in it.