Rider says all project files are not part of the project - rider

This problem is kind of confusing. I opened a Unity project, added a new script, and opened it in Rider. Analysis stopped working. It says it's not supported, for every single script. I pressed the view IL button, and it says that every file is not part of the project.

Does your Unity Project have the Rider plug-in installed? If you open the package manager (Windows->Package Manager) you should see JetBrains Rider Editor with a green check mark next to the version number:
Unity Package Manager with Rider Editor plugin installed
If you don't see it you should be able to install it, by ensuring the the Packages filter in the top left says "Unity Registry" then searching "Rider" in the search bar in the top right, selecting the "JetBrains Rider Editor" on the left, and clicking "Install" on the bottom right.

Related

How to make available "open this project in IntelliJ IDEA" option in Windows context menu, if IntelliJ IDEA has been installed via JetBrains Toolbox?

If to install some of IntelliJ IDEA family IDE manually, it will be suggested "add 'open this directory in IntellIJ IDEA' in context menu" in installation master. However, if to install IDE via JetBrains Toolbox there will not be available this option.
https://youtrack.jetbrains.com/issue/TBX-2478 -- watch this ticket (star/vote/comment) to get notified on any progress.
Other tickets with similar requests (that I think should be marked as Duplicate to the aforementioned one or some other way around): TBX-3573, TBX-3981

Navigation problems in intellij (Ctrl+B, Ctrl+Alt+B is not working to access method declartions/implementations)

I have recently shifted from eclipse to intellij.
When I opened my projects in intellij, I am not able to navigate like in Eclipse.
I checked my keymap, its been configured like below
But still I can't access the declarations or implementations of methods/ classes in my intellij.
When I click on a method (ctrl + B), there is a red popup saying '"Cannot find declaration to go to"
I have got Community Edition - 2019.3.
Please help.
Fixed. Just had to update indices. After importing project into intellij, a default process runs that updates all indices. Mine was paused because of another background process. Just had to restart it.

Can't get Changes tool window (Alt+9) to show on IntelliJ IDEA

I can't get the Changes tool window to show on this project.
The project is imported "from sources" and has no facet and no sdk. Which is ok because I'm only editing it in the IDE and running from the terminal.
I'm on Windows 8.
The tool window does show when I open another java web maven project there.
It also does show for the first (no sdk) project when I'm on Ubuntu.
What might the Changes tool window not like about my project?
The IDE wasn't aware of Git in my project.
That happened because the directory I import this project from isn't the same as the Git repository directory, the former is inside the later.
I fixed it in: VCS > Enable Version Control Integration

Can't find Web Application project in Netbeans

When I start a netbeans project, there is no categories "Java Web". Which is for make "Web Application" project. How can I add "java web" plugin or something in netbeans to see the java web categories in categories list in netbeans. please someone help me.
Go to the Tools menu and select Plugins. Then click on the "Available Plugins" tab.
Check the box for "Java Web Applications".
Click the "Install" button.
Click your way through the dialogs until the plugin and its dependencies are installed.
Restart the IDE.
You should now find "Java Web" in File -> New Project.
For anyone else that has this issue I've figured out how to fix it (when you find find the files for your webproject in htdocs).
Click on File -> New Project
Then click on Php Application from Existing Sources...
Then click on the files you have in your htdocs folder and it should show back up.
(Note you might have to double check the port numbers when you set it back up).

How to import and run existing plugins from intellij community edition repo

I'm trying to import and run the IntelliJ git4idea (Git Integration) plugin in order to play around and contribute some of my own code.
I've pulled the Intellij community edition from the github repo, and imported the git4idea plugin as a project. I'm running the Intellij community edition
My main issue is this:
After importing all the modules, the git4idea module comes up as a general module type, and not a plugin module type.
This means that when trying to create a new run\debug configuration, I get [none] under "Use classpath of module", instead of of the ability to select the git4idea plugin. This obviously results in a "Run configuration error: no plugin module specified for configuration".
So the question is -
How can I change the general type of imported "git4idea" to plugin type?
Or better yet, what are the steps required in order to import and build/debug/run a plugin from the Intellij community edition repo?
I was able to solve this by manually reordering file directories, sorting out dependencies and editing the .iml file. The type of plugin is defined by changing type="JAVA_MODULE" to type="PLUGIN_MODULE".
...
This is the answer given by Dmitry Jemerov on the official Jetbrains plugin development forum:
The easiest answer to this is "don't". The IntelliJ IDEA Community
Edition project is set up to be developed as a whole, and the
dependencies are set up accordingly. If you want to hack on the Git
plugin, you simply run IDEA using the provided run configuration, it
runs with all plugins enabled, and you simply make whatever changes
you need and test them using the main run configuration.
If you really want, you can set up a new plugin module and point it to
the source code of the git4idea plugin inside the IntelliJ IDEA
Community Edition Git checkout. This is not too hard, but it's
something you'll need to do from scratch, and you can't use the
existing .iml file.
I had the same no plugin module specified for configuration issue. To work around it, instead of importing, I created a new plugin project and used the existing code directory.
when you import the intelij plugin projects
You should run the 'runIde' task in gradle.
Step-by-step instruction
Build your IDEA plugin (usually done with gradle build).
Start Intellij IDEA.
If you have any project opened, go to menu "File->Close all projects" to return to Intellij IDEA startup screen.
Install the plugin you've just built: on the left side of the "Welcome to Intellij IDEA" startup screen go to "Plugins", then click "gear" icon on the right side, it's located to the right of "Marketplace" and "Installed". From the pop-up menu select "Install Plugin from Disk...", navigate to plugin file (usually in build folder) and click "Ignore and continue" when you see the warning message saying something about signature.
Restart Intellij IDEA.
Open the folder with your IDEA plugin.
Wait until IDEA imported your Gradle project.
Put breakpoints inside your plugin code so you can debug it.
Go to menu "Run->Edit configurations".
In the "Run/Debug Configurations" window on the left side click "+".
Select "Gradle" from the pop-up menu.
On the right side change "Name" to "gradle-run-ide" (without quotes).
On the right side under "Run", inside "Tasks and arguments" field enter runIde ("i" must be capital, other letters small).
Click "OK" to save changes.
Go to menu "Run->Debug 'gradle-run-ide'".
A new, black-colored IDEA window should appear.
In this black-colored IDEA window do whatever you need to do in order to invoke methods of your plugin. When you invoke them, the first IDEA window should stop you on breakpoints you set previously.
Happy debugging.
After changing type="JAVA_MODULE" to type="PLUGIN_MODULE" in *.iml file I was getting following error -
Error running 'IdeaPlugin': Wrong SDK type for plugin module
To fix this go to -
Module Settings -> Platform settings -> SDKs.
Click on Add new SDK
Select Intellij Platform plugin SDK
For home directory select your Inetllij installation dir
Select JAVA SDK you want to use with it.
Once this is added got to Module Settings again
Module Settings -> Project settings -> project.
In Project SDK change the JAVA sdk to the SDK we just added in the above steps.
Run/Debug you plugin now.