Running/debugging project in Rider will not open browser window - rider

When I run/debug a project in Rider, I have somehow turned off the property that opens the browser window after the project has built successfully. I have checked Run > Edit Configurations and compared it against an API project I have that does open the browser when ran/debugged, and cannot see a difference. I did some searching online and didn't find a definitive answer, so I'm reaching out here.
If anyone knows the specific property/setting/whatever to toggle in order to get the browser to open when running/debugging the project, I would be most appreciative.

Here is what it looks like for one of our projects targeting .NET Framework 4.8:

While examining the Run/Debug configs between the project that wasn't doing the expected behavior and the API project that was, I noticed that in the non-working project's Run/Debug config, the URL property wasn't set. After setting that to the localhost value I had been using, the page would start up as expected.

Related

Code completion Hippo CMS in IntelliJ

I've been trying to get this auto-completion for hippo cms tags to work but I just can't get it to work in IntelliJ IDE 2017! I've followed the guide from;
https://www.onehippo.org/library/development/develop-with-intellij.html
But it dosen't really help at all.. So I was wondering if somebod else had a solution to this?
The problem can be seen as in the screenshot thats its marked red, and intelliJ finds it unresolved even tho its compiling fine.
Its a maven project
Screenshot 1
Add dependency under the project-structure ../bootstrap/webfiles/pom.xml ;
dependency; https://www.onehippo.org/library/development/develop-with-intellij.html
now you have to add Web application support;
right-clicking on the projectstructe ../bootstrap/webfiles ----> Add Framework Support ---> choose Web Application AND remember to Unmark the "Create web.xml"
After this is done, try to check if the code-completion is working.
If it's not then you have to Reimport Maven this is done by pressing the refresh button.. which you can find in the Maven Projects menu tab.
What I as well found was that the Hippo team already had a problem to get code-completion to work in IntelliJ;
https://issues.onehippo.com/browse/ARCHE-512

IntelliJ Run Configuration Broken by an Incompatible Plugin I Can't Uninstall?

I had been developing an application on a trial version of IntelliJ 2016 Ultimate. Since the trial version ran out, I resumed work using the Community Edition. However, trying to launch my application yielded the following error:
Unknown run configuration type #com.intellij.j2ee.web.tomcat.TomcatRunConfigurationFactory
"No problem" I thought, just an incompatible plugin that was installed with Ultimate that I don't really need anyway. I opened the Plugins section of the Preferences menu, but I can't find the plugin in question. Below is a partial screenshot of the plugin list where I would expect to see the plugin listed in the error message.
The configuration can also not be edited from the Run/Debug Configurations menu, but lists the Run Configuration error as: "Broken configuration due to unavailable plugin or invalid configuration data."
Am I really unable to uninstall the Ultimate plugin preventing my run configuration from working from the Community Edition? What can I do to fix this if so?
It's have been a long time since this question was launched but it might be useful for new searches.
I got the same error with Dart and Flutter.
Just go to Menu >> File >> Settings. Then type plugins on the search box. Check if your plugins need to be updated (in my case Dart and Flutter). I the screenshot I had clicked in the "update" green button. So it turns into "Restart IDE" text. It should fix the problem once you restart the IDE.
To the best of my knowledge the community edition of IDEA will not load and run plugins that are not compatible with it. Moreover, by default, the community edition uses a different configuration directory than the Ultimate edition. So unless you modified the config directory to use, the community version should not be picking up the Ultimate Edition's plugins. Based on the error you show, I think the issue is you simply need to delete that Run configuration. The error is saying that that Run configuration wants to use a Plugin (The Tomcat Plugin) that is not available (i.e. not installed).
If you still want to confirm what plugins are installed, you can manually uninstall a plugin by removing it from the plugins directory. Note that some plugins are simply a standalone JAR, in the plugins directory, others are sub-directories within the plugins directory. Just delete the JAR or sub-directory.
That plugins directory is the idea config directory. See Directories used by the IDE to store settings, caches, plugins and logs for information on its location. On windows for example, by default it will be:
Ultimate: C:\Users\UserName\.IntelliJIdea2016\config\plugins
Community: C:\Users\UserName\..IdeaIC2016\config\plugins
UPDATE
I forgot to mention... bundled plugins are in ${idea-install-directory}/plugins. So for the ultimate edition, the Tomcat plugin is in ${idea-install-directory}/plugins/Tomcat. That is why, as you mentioned in your comment below, you are not seeing that plugin in the user installed plugin directory I mentioned above.
updating flutter and android studio worked in my
case
Simple upgrade Dart plugin..
Go to Settings/Plugins/Browse Repositories and search dart (Language) and upgrade
this will work.
I had a similar worded issue "Run Configuration Error: Broken configuration due to unavailable plugin or invalid configuration data."
In the bottom right part of the Rider IDE, you will see a popup that says
"Plugin supporting feature (Run Configuration[UNITY_ATTACH_AND_PLAY]) is currently disabled."
Click enable plugins, and restart when Rider asks you to do so.
If this does not work, remember that one possible reason is the issues with macOS indexing (my Macbook started to malfunction after its battery hit 0). A way to check is to try and search a file from the top right corner(). If you can not find existing files, this means macOS messed up with indexing.
To solve it, click Apple icon on top left side and go to System Preferences -> Spotlight -> Privacy Tab -> Add all folders to the "won't index" box -> Remove everything you have added so they get reindexed.
https://www.techradar.com/how-to/software/operating-systems/how-to-fix-a-mac-s-broken-find-function-1298964
Lastly, go to Rider and hit File -> Invalidate Caches and Restart.

How to properly import a Play 2+ project in IntelliJ 14+ with all integrated features (run, debug, test)?

I work on a Java based Play! project for severals months now and I'd like to import it completely in IntelliJ, meaning being able to run, compile, test and debug from IntelliJ, without the need to use the command line.
According to this post from Jetbrain, it seems to be possible, if I quote the article it says clearly : "Now you don’t need to switch between IntelliJ IDEA and Play console anymore. Everything is available right from your favorite IDE.", but I can't figure out a way to achieve this for now, even if I follow the tutorial provided by Jetbrains.
Here are the steps I've been throught :
Open my fav IDE IntelliJ ;)
Go to the project list window.
Import project
Import from external model and choose SBT as suggested in Jetbrains tutorial.
option "Use auto import" checked, option "create directories for empty content roots automatically" checked. Project SDK Java 1.7
Global sbt settings : JVM From project JDK.
Finish
By now, if I try to make the project and launch it from IntelliJ, I'll get scala compiling errors related to routes object. Thanks to this post, we can understand that this happens because scala routes are located to specific folders that needs to be included in IntelliJ sources settings for this project. So next step was :
File -> Project Structure -> Modules
Add target/scala-2.10/classes:target/scala-2.10/resources_managed:target/scala-2.10/src_managed as sources folders.
But my problem remains the same, routes object being unrecognized.
Notes : I have no scala facets in my project structure configuration nor can add one.
IntelliJ provides integrated support for the Play Framework for Scala and Java. Support is currently only available in IntelliJ Ultimate Edition (see the Frameworks and Technology section).
Assuming Ultimate Edition, the setup for Play is incredibly easy. Simply create a new project by importing build.sbt, then choose Add Framework Support and choose Play 2.
Once complete, you can start and stop Play using the Play 2 Run/Debug configuration. No command line necessary.
Here is a more in depth look at IntelliJ's Play project configuration.
You could try the command play idea if you are using play or activator idea if you are using activator. That will do the magic.

Unable to run JetBrains plugin at all during development

I'm working on creating a JetBrains plugin, and this is driving me completely nuts right now. I had both an app and project component running and working (just starting to play around with them), but now it appears that the initComponent methods of both are not getting called when I run the plugin. I have no idea what I changed (this is just a tiny dummy/test project that I haven't put in source control yet). I'm sure it must be something really obvious, but I'm totally stumped. In theory I should be able to debug things, but I can't even get the initComponent methods to fire, so I don't know where I would set an initial breakpoint. Any ideas?
PS: The plugin devkit plugin is enabled on both my development instance of IntelliJ as well as the test instance that launches when I run my plugin project.
Update: I now see by looking at the idea.log when I run my plugin that the plugin I am developing is disabled for some reason:
2013-07-07 11:17:23,004 [ 2414] INFO - llij.ide.plugins.PluginManager - Disabled plugins: Plugin display name here (1.0), Sample (1.0)
As I said above, it must not have been disabled before because it was running before, however I don't see how to enable/disable the plugin that is in development (you would thing the plugin run configuration provided by IntelliJ would ensure that it is enabled)
Okay, I can't believe I missed this, but the plugin(s) I was developing were disabled in the preferences panel of the test instance of IntelliJ. I was able to enable the plugins in the preferences and it started working again (and they continue to work because I assume those settings are persisted either in the test project or the development sandbox settings).
I still have no idea how I disabled them in the first place, and I can't believe I didn't see that they were disabled in the preferences pane...

How is Tomcat handled by IntelliJ IDEA 10.5

I am a newbie to IntelliJ IDEA. I was trying to deploy a web app in Tomcat.
It failed to deploy and i was not able to see any errors in the log console.
After much searching, I was able to find out the log files at
~/Library/Caches/IntelliJIdea10/tomcat/_p1/logs/ folder.
There were a bunch of log files here and one of the files contained the error. I then could solve the issue and proceed.
I was a user of eclipse and this error would have come directly in the log console in eclipse. However this is not the case in IntelliJ IDEA. Can somebody please explain what I am missing here?
Also, it would be nice if somebody could point out how the integration with Tomcat is done in IDEA (for better understanding). Note: I am using IntelliJ IDEA 10.5.2 Ultimate edition on Mac OS 10.6.8.
IntelliJ IDEA instructs Tomcat to use temporary directory as CATALINA_BASE where it places context configuration with the Artifact path from your project settings, it doesn't copy your web application into webapps directory.
In the Tomcat Run/Debug configuration there is Logs tab where you can specify custom logs to show in IDEA console, it should work out of the box, but probably you have customized logging in Tomcat configuration or in the application itself. Or maybe Tomcat 7 logging configuration is different and doesn't work with IDEA in which case you should submit a bug.
Here's some info for Windows users....if you check the boxes for 'Show console when stdout/stderr change', you may find that the Output tab does not show up even if stdout/stderr change.
For me, this was due to directory structure for the project containing spaces.
When I renamed the directory structure so that it did not contain spaces the Output tab showed up.
Found solution here: Cannot deploy project to tomcat inside intellij IDEA 14. Applications Context was incorrect.
Run/Debug Configurations -> Deployment tab -> Applications Context