PyCharm - File browser dissapeared - intellij-idea

I just opened my Django project in PyCharm and I can't run server. I also don't see most of the project files unless I switch from Project to Project Files but they are yellow highlighted and it says that I can't modify them.
What is happening and how to fix it? Yesterday, I had the same problem with Vue project, now the Vue project works and Django doesn't...
EDIT deleted .idea and restarted PyCharm and now there is almost nothing.

Related

Intellij shows every line in build.gradle.kts is red

I created a new project from VCS (Kotlin and Gradle). I added three testImplementation() calls to the build.gradle.kts. IntelliJ didn't pickup the changes so I did File -> Invalidate caches / Restart and now Intellij shows every implementation() call and every testImplementation() call in red. In fact every line in every build.gradle.kts in every module is red.
Intellij has lost its mind. What do I have to do to restore IntelliJ's intelligence when it comes to kotlintest in Gradle?
I started seeing this with AS 4.2.1. Invalidating caches and re-importing the project didn't work for me. I found this article on the JetBrains issue tracker where people found that they had an extraneous JDK set in the project settings. While I did not have an extraneous JDK set in my project structure, I tried changing the JDK from the AS embedded version to an alternate AdoptOpenJDK 1.8 version I had installed. After switching to that version all the red went away and everything is resolving as expected. I was then able to switch the SDK back to the embedded version and everything continued working as expected. When switching back to the embedded version I did notice a brief message in the progress bar at the bottom of AS saying that it was processing a JDK 11. I'm not sure where that's coming from, but it does seem to be in line with what others in the JetBrains issue were talking about.
The way I was finally able to solve this was with File -> Invalidate caches / Restart. It must have been cache corruption.
What do I have to do to restore IntelliJ's intelligence when it comes to kotlintest in Gradle?
Re-import the project: File | New | Project from Existing Sources action and select build Gradle file to load the project from.
Change your jdk.
Go to File>Project Structure > SDK Location > GradleSettings
Change the Gradle JDK to use the embedded or a compatible JDK (Azul JDK) if you're using a MAC.
Then Invalidate and refresh cache after deleting the .idea and .gradle files.

I can't see/run Gradle in New Project Wizard/Tool Window

So, I have the Gradle plugin installed and enabled, and I even have it installed on my computer, but for some reason, it's still not showing up in the new project wizard. I have no idea why, though I did enabled Maven and it showed up in the new project window instantly. (I'm using windows 10 btw) My new project wizard window
Reinstall the IDE from the downloads page and delete disabled_plugins.txt file from the config directory.

pycharm configurations lost after closing project

When I create a Run Configuration for a project, pycharm will remember it as long as this project is opened in my IDE, or when I open it via the 'welcome to pycharm' window.
However, when I close my project and reopen it, I can’t find the config I saved before. Is there a way to find it again? Is it not saved in the .idea folder? (I'm running pycharm on mac os)
As #Eskapp said, run configurations are saved on per-project basis. If you want to share them between projects, please look at this topic: https://intellij-support.jetbrains.com/hc/en-us/community/posts/206600965-Export-Import-Run-Configurations-

Problems with libgdx libraries using intellij on a git project with a friend

So I am fairly new to programming, and new to git, LibGDX and Intellij.
My friend and I started with a programming project a few days ago, where we generated a project using libGDX. We opened the project in IntellIj IDEA and sat up the run command. It worked on my friends laptop, but when he pushed it to git and I cloned it, it didn't work. So I dived into settings and looked at differences between my own project and this shared project.
What I found out was that all the external libraries was gone for me. So I checked the project structure and found that all the paths were specified to his computer.
For example:
/home/"name"/.gradle/caches/modules-2/files-2.1/com.badlogicgames.gdx/gdx/1.9.3/1a3775429980a6c8da0cdefb656ad1dabf91d629/gdx-1.9.3.jar
So I tried changing the paths to ~/.gradle (...).jar but it automatically expanded the path to the full path of my computer instead. So the question is:
Is it possible to set the project structure settings for modules to an universal path that works for everyone cloning the project, or do I have to add every path individually for each person working on the project?
Thanks,
Jon
While it is safe to add the .iml files and most of the .idea directory to your git repository, you should avoid adding the following files:
.idea/workspace.xml
.idea/libraries/*
See this documentation for more details.
Since it's a gradle project, IntelliJ should reimport the gradle model automatically and create these files with paths that depend on your own environment.

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