Project tree is lost in Intellij IDEA using git to synchronize - java

I am trying to use the integrated git in Intellij IDEA. On the first computer, everything is fine. Files are uploaded correctly.
However, when I try to pull the project on another computer, although all files are properly downloaded from GitHub, Intellij IDEA could not correctly recognize the project structure.
Only files in the root directory are recognized, the src folder and files in it disappeared.
I have two screenshots here:
Project Structure inside Intellij IDEA
Actual Files on the disk
I am using Windows 10 on both computers, running the latest version of Intellij IDEA and git.exe. The project is hosted by GitHub.

If you are using Windows....the go to your project root path and type this command
**git stash**
i am using Bitbucket and sourceTree on machine so sometimes i am getting the same situation and using this command i can able to get all the code.

Related

Getting Errors After Moving Springboot Application to a Different Directory

I have fully working Springboot application project in my Downloads directory but when i moved this project to a different directory for example : C:/User/Documents folder its still running but giving me visual errors. it shows the classes are not imported even though they are and application is still running fine
https://i.stack.imgur.com/8Bmuy.png
Im sure what's the reason is.
PS: Im using git. as version control for this project not sure if it is because I initialized the git when this project was in Downloads folder.
If someone knows the solution please let me know.
Thank you
My suggestion would be to:
Close IntelliJ
In your file explorer/finder, go to the directory you project is is now
delete the .idea, .mvn and target folders
Open Idea again and just open the project from the folder again
Likely Idea is just confused.

Installation of metadata-extractor

I'm stuck on installation.
I downloaded Maven, but I'm not sure which file within
the metadata-extractor folder (that I downloaded from the repo) to use as the target.
I tried all the files at the top level.
All attempts have failed, e.g.
java -jar metadata-extractor-2.13.0.jar build.gradle
com.drew.imaging.ImageProcessingException: File format could not be determined
I am using v2.13.0 of the meta-data extractor
I've just started to code and took interest in this project but also had issues using it. Instead of using Maven i just downloaded the source code from github and threw the 'com' folder into my myproject/src folder. Then i downloaded the xmpcore-6.1.10.jar library and added it to the Build Path. Got it working that way. I hope someone will give you a better solution but if you just wanna do something right away, you can try this solution.
Try downloading IntelliJ and create a "new project from version controll". Use the URL given on the GitHub page (under download/code). That will save you a lot of problems.

IntelliJ IDEA one project - two operating systems

So I am creating a java project with a friend of mine, he is using windows and I am using ubuntu. I didn't give it much thought because java is cross-platform but I am having trouble opening the project I cloned from our git repo that he created in windows. The file browser recognizes the project but when I open the folder with the intelliJ icon it only opens the iml file and the class files, but not the folders and I don't have a hierarchy on the left tab. So I am wondering if it is a problem with our OS or if its some problem with intelliJ.
How did you set the project up with Git? You should only be pushing your source files, and all others (such as the .iml) should be ignored. That way, any person using any OS or any IDE can easily set it up on their own.
Try removing all your files from git besides the source files. Now, if you clone it and set it up with IntelliJ, any IntelliJ specific files should stay locally, and only source files will be pushed.

How to read a csv file using eclipse?

I'm working on a group project using IntelliJ, but my partners are using Eclipse. In IntelliJ I was able to place my csv files in my project folder and I am able to access them by just using the name of the file. However, my partners using eclipse are unable to use the csv files this way. The only way they have been able to is to type out the whole file location which obviously won't work if we are running the program on different computers. I don't have experience with eclipse is there a solution for this?
The default location for file I/O in Eclipse projects is in the root project directory. The Eclipse users will need to adjust their project settings so the default path is set to where yours is in your IntelliJ project.

Getting started with Gephi imports

Im am trying to create a gephi project in eclipse. Right now all i want to do is set up the file architecture so i can copy and paste in the example and run it. My problem is when i do that the imports no longer work.i have downloaded the toolkit and I have added the .jar file to the build path. I think the problem is that the package i have is always the default one, but i do not know how to load the gephi package when i start a new project. My question is how do i get the imports to work and how do i start a project with the gephi package or how can i open the gephi demo through eclipse?
To get the file architecture right i just created a new project, and gave that project the exact same name as the file downloaded on my desktop, eclipse took care of the rest.

Categories

Resources