enter image description here
Hi everyone,
I did something to the solution explorer that make the .xaml files dissappear. The .xaml.cs files are still there and the .xaml pages are just hidden somehow. When i close a new project and open it up again they will appear again.
Does someone know what i did wrong here?
Whenever I had issues with pages not coming up in the solution explorer it would usually be because something messed up in my csproj file, maybe you can just verify all the files for your project are listed in the csproj file
I'm working on a golang project that has to read files from a sub directory...
When debugging my program it (not sure what it is yet) is unable to locate the files when provided a relative path. Im using io.util.ReadFile(RELATIVE_PATH) for this operation.
This problem doesn't occur when running the program from the terminal.
This has lead me to believe intellij does something behind the scenes debugging/running where it messes with the directory structure (moves it into a temporary location?). If this is the case, how would I go about configuring intellij so that the sub directories are included in the magic or removing the magic so the program is debugged from the directory it lives in.
I'm new to golang/intellij so any help would be appreciated.
Click on "Edit Configurations"
and change the "Working directory" path to where your program should "live in".
I am not familiar with the development environment of Visual Studio, but I really need help on this problem or I cant open the file again.
It is a finished project and I copy and paste it in another file on the same hard disk of my computer, while I didnt copy the solution file but only the file with those bin, My Project, obj and etc included in it.
Then I rename the file name in the window explorer, while the .vb , .vbproj and .resx file stay in the same name as the original file did.
When I try to open the Project through the Solution file, weird things occur, all those modules windows disappeared, those design form, the .vb modules, all disappeared, and in the Solution Explorer, instead of showing the OriginalFile.vb, it shows the renameFile.vb, then I deleted the renameFile, and try to open it again, and yet, the problem is still not solved, the Solution Explorer is still showing the renameFile.vb, and I have no idea what is happening, since I really dont know how the file of Visual Studio works.
There are error messages showed on the list, it is,
Unable to open module file 'F:\RenamedFile_Location.vb': System Error &H80070003&
from line 1 of both RenamedFile.vb and RenamedFile.Designer.vb
I tested the program in the Release/Debug file in the OriginalFile, and the program still works, but still cannot open the Solution file
Any help and suggestions would be appreciated, I dont really understand why and how does this problem occurs, so if it is not able to be solved, I am going to redo my whole project.
I feel kind of silly asking this but I've been poking around and I don't know what is causing it. I have a directory structure that has a number of projects in it, it looks like this:
projects_root/project1
projects_root/project2
projects_root/project3
When I open any of these projects with Intellij it instead opens up the projects_root directory, so that all the projects in the directory are opened under my project tab. This is annoying as it clutters up my project view and it's causing some issues with my debug configurations etc. The strange thing is this was working fine until yesterday, that is opening project1 would open at the root of project1 instead of projects_root. I've changed no settings, the behaviour seemed to just start out of the blue. Has anyone seen behaviour like this before? Could anyone recommend a fix for this?
It appears that the content root of your IntelliJ project is incorrect. I can't tell you the cause for why this happened but you should be able to fix the content roots without needing to recreate each of the projects.
For each project, open up the respective IntelliJ project and follow the steps for removing a content root for all of the non-applicable content. E.g., for project1 remove projects_root/project2 and projects_root/project3.
I've built a project in WebStorm and then submitted the project to GitHub.
When I rebooted the computer and relaunched WebStorm (and the project), all I can see in the project pane is the root files, and none of the folders (yes the folders are there)
See the image below for reference.
Does anyone know how I can get those folders to re-appear in the project pane of Webstorm?
It can be caused by the corrupted .idea/modules.xml project file. You can either try to fix it manually (restore from Local History, version control or backup) or create the new project from scratch.
Check this issue for the hints/workarounds.
It happens sometimes in WebStorm 9.
The easiest way to fix it for me:
close WebStorm;
in project's folder remove .idea/ (hidden directory);
open your project, enjoy:)
Solution:
Creating a new project from existing sources
File => New => Project
Select "Empty Project"
Browse to the location of your project with folder issues
Click "Create"
Select "Create from Existing Sources" in the "Directory Is Not Empty" dialog
Why this solution:
Editing and deleting in various combinations of .idea and XML files did not solve the issue for me. Hence the solution above. Back up your .idea directory in case you have project customizations you want to keep. This likely overwrites them.
Outcome:
All the various folders I had created were now visible and the project worked as expected. The .idea directory was now formatted correctly with all the necessary files.
Find the .idea/modules.xml in your project root
make sure that these lines are correct :
<modules>
<module fileurl="file://$PROJECT_DIR$/.idea/NameOfYourProject.iml" filepath="$PROJECT_DIR$/.idea/NameOfYourProject.iml" />
</modules>
Replace NameOfYourProject.iml with the name of your project.
Then, make sure that the file .idea/NameOfYourProject.iml exists, if not , create it and put this in it :
<?xml version="1.0" encoding="UTF-8"?>
<module type="WEB_MODULE" version="4">
<component name="NewModuleRootManager">
<content url="file://$MODULE_DIR$" />
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
<orderEntry type="module-library">
<library name="PHP">
<CLASSES>
<root url="file://$MODULE_DIR$/../../php/PEAR" />
</CLASSES>
<SOURCES />
</library>
</orderEntry>
</component>
</module>
You do not need to delete whole .idea folder and reconfigure your whole project, just
delete the .idea/modules.xml
restart the IDE and your folders are there again!
I ran into the same issue and resolved it by invalidating the cache.
The option is under File > Invalidate Caches/Restart.
On the prompt click Invalidate and restart.
Note: The project in concern needs to be open before you do this.
I see this from time to time. I use Git, and I have my .gitignore file set up as recommended, specifically:
.idea/workspace.xml
.idea/tasks.xml
.idea/*.iml
I sometimes see this after cloning the repository, and when trying to figure out why, I came across this post and read the accepted answer.
I deleted the modules.xml file and reopened WebStorm (2016.2.4), and it was resolved. I looked at the new modules.xml and found that its contents were exactly the same as before, but my <projectName>.iml file was bigger.
So it seems to be a corruption in the .iml file, not modules.xml. I assume that deleting modules.xml triggers a rebuild of the .iml file. Not sure if this helps anyone with anything, but thought I would offer the extra insight.
floor 36 solve my problem. in WebStrorm 11
It happens sometimes in WebStorm 9. The easiest way to fix it for me:
close WebStorm;
in project's folder remove .idea/ (hidden directory);
open your project, enjoy:)
Try deleting workspace.xml and watchertask.xml then just restart the IDE. You must see your full source code in all folders there.
Finally I found the culprit, it was Team Foundation Server - Version Control Integration plugin from https://plugins.jetbrains.com/plugin/7961-team-foundation-server--version-control-integration/
I looked at the system/log/idea.log file and found that this plugin was producing Null exception whenever I open a new folder as a new project and breaks the content root auto detection by the IDE, and after I uninstalled this plugin, all folders show up as it should.
You might have this issue because of a culprit plugin, and disabling those which you have just installed recently just before this issue occurs, will resolve the issue. Check the log file and search for ERROR.
If it is found to be an important plugin you are actively using which you are not willing to disable, then a temporary fix is to open Settings->Directories and click Add content root button to add the root folder of your project, click Ok now folders will show up and indexing will begin, and of course you have to do this everytime you open a new folder as new project.