Welcome to the CSC Q&A, on our server named in honor of Ada Lovelace. Write great code! Get help and give help!
It is our choices... that show what we truly are, far more than our abilities.

Categories

+5 votes

I was working on my HAM Radio project when I needed to undo some of the changes I made to the code and clone a new copy of the repository. However, whenever I try to open the new copy of the project in IntelliJ, it shows the files for a moment before they disappear, leaving only the .gitignore file, pom.xml file, the external libraries tab and the Scratches/Consoles tab. How do I get it so that I can see those files and am able to work on them?

asked in CSC 305 Fall 2024 by (1.4k points)

1 Answer

+4 votes

The issue likely stems from IntelliJ not detecting or displaying the project files properly after cloning. Try invalidating caches and restarting IntelliJ, reimporting the project by opening the root directory, and ensuring it recognizes the project as a Maven project by right-clicking the pom.xml and selecting Add as Maven Project. If that doesn’t work, delete the .idea folder and *.iml files, then reopen the project. Additionally, check that all files were cloned correctly by running git status in the terminal.

answered by (1k points)
...