how to properly remove files added under "My Project" in solution explorer? - vb.net

I deleted the file Form1.vb on folder/explorer because I accidentally created it under MyProject in the solutions explorer. but when I tried to rebuild it I'm having below error already.
Severity Code Description Project File Line Suppression State
Error Unable to create a manifest resource name for "My Project\Form1.resx". Could not find file 'C:\Users......\My Project\Form1.vb'.

all data of files is stored in the solution itself, Go to Solution Explorer, Select the file
Either
1.) Right click the folder, Click Delete, Confirm Deletion Process if prompted.
2.) Left click the folder and hit the Delete key on your keyboard.
Do either of these will remove it from your solution and thus, the project. If you have folders being sync'd with git hub it will also update it this way, don't just straight up delete folders from the actual windows explorer though, this could cause pointer issues for reference.

I found the solution.
I created same file with same filename confirmed to replace this with the missing.
then added it again on "MyProject". Project -> Show All Files from the main menu.
I think what I needed was just the Project > show all files.
thank you to everyone who answered above it made me search for this

Related

Deleted VS Form Designer

I got this problem in visual studio project were i was able to clicked the FILE menu and Clicked "Save as 'FormDesigner'" to a separate folder expecting that i would be able to save the whole project to separate folder as backup file. But i was wrong about it. And then i permanently deleted the file. When i run my project this errors appears:
Unable to open module file
'D:SISBackup\StudentEnrollment.designer.vb': The system cannot find
the file specified.
Unable open module file
'D:SISBackup\StudentEnrollment.vb': The system cannot find the file
specified
But luckily the form still run the code. But i can no longer open the Form from Solution explorer. This error always appear from it:
Cannot find the file 'D:SISBackup\StudentEnrollment.vb'. It may have
been moved or deleted.
Can anybody help me with my problem. PLEASE i don't know what to do anymore. It's my school requirement. Please help me with this.
HELP!

'Resources' is not a member of 'WTApp.My'

I get this error and I can't start my application or edit it.
I've tried deleting the Resources folder and putting everything back and it doesn't help. I also checked my 'Resources.resx' custom tool namespace, and it's fine (uses "My.Resources").
I've tried deleting my images by moving them. It's as if the resx file is hidden from VB.
I really have no idea where to go from here :(
enter image description here
Application resources are added to Resources.resx file. It create a static property against each added resource while file are stored in a Resources folder physically on the file system however, they are embedded into application on compilation depending.
Because you have deleted the resources(images most likely) from Resources folder but application (Resources.resx) is still referencing to these files.
There are two ways to fix it.
1- Go to application resources TAB and delete all the resources & Added the back.
OR
2- Put all the resources into Resources directory. select all and include them (because you had deleted them once so, they may still present in the directory but are not included in project). if you do not see in folder(from visual studio then make sure to click show All Files button on the solution explorer.
This shows how to go to Resources TAB
This shows how to include resources which already exists in the folder (got deleted)

Can't see project folders in IntelliJ IDEA

Every once in a while, I open an old project and I can't see any of the folders in the intelliJ project viewer. I can see all the files at the root.. but no folders. Yes I can delete the .iml file and .idea folder and re-create the project, but come on.. there's gotta be an easier way to fix this.
Is there?
If you look in project settings (ctrl-shift-alt-s), you should see a module structure. If you instead see "Nothing to see", do the following:
In Project Structure -> Modules, press the + button,
press enter (since, for some weird reason, it won't let me click on "New Module")
In the window that pops up, click on the "..." next to Content root, find your root folder, and select it
Press ok
ignore any warning that says the name is already in use (or to that effect)
the simplest solution worked from me, just delete the .idea folder
keep in mind this will delete all of idea's current project configuration, it'll create the folder with default settings when reload the project again... but all other configuration will be lost if not properly backed-up
It might be because the project didn't have any modules defined. Try adding existing source code by hitting File > New > Module from Existing Sources and select the parent directory of the project for source code
Go to pom.xml file -> right click -> maven -> generate source and update folders. You will see your files and folder structures in left hand side.
All the project-specific settings for a project opened through Intellij IDE are stored in the .idea folder.
The .idea folder (hidden on OS X) in the solution root contains
IntelliJ’s project-specific settings files. These include per-project
details such as VCS mapping and run and debug configurations, as well
as per-user details, such as currently open files, navigation history
and currently selected configuration.
So, if you are not able to see the project file structure in your Intellij IDE, just delete the .idea folder,
rm -rf .idea
and reload the project, then after reload you'll be easily able to get your project structure displayed.
Thank you very much. I just remove the .idea folder and works in my case.
rm -rf .idea
For me, the java folder was not showing up. I went into File->Project Structure. In the second column, I selected on _main. In the third column, I selected the tab "sources". In what I call the fourth column, where the "+Add Content Root" is shown, I verified, the java source/folder was present. In my case, there was an extra source folder, which was the current location. I removed this, applied and the java folder immediately showed up.
Right click on the Project name -> Open Module Setting -> Check the application context path set it up at your project location.
Check your idea.log -- it may have some details explaining why or what is happening (Help | Reveal log in Explorer). Possibly one of the config files got corrupted.
You can always backup and delete .idea subfolder (project settings) and re-create project from scratch. When it's wroking again (after basic configuration) you may copy some of the files from that folder back to recover some of your settings (if there were many).
This happened to me on a new computer when I opened up a Java project in the newly installed Intellij.
The problem was that I had not installed any JDK on the machine.
I had to install a JDK and then go into the settings at ctrl-shift-alt-s and add a JDK by specifying the folder where I installed it. It's possible that IntelliJ would have found it if I closed it and reopened it.
In my case the solution was to create a new project, specifying the project type and creating it within the same directory path as the project that does not load the project files correctly.
PhpStorm automatically detects that the directory exists and gives you the option to create project from existing sources.
This can be found under:
File --> New project...
For gradle users: "Reload All Gradle Projects" option should help.

Xcode will not open my project

I where working with a project and I closed because my computer was geting slow. When I tried to open my solution again xcode quitted. So everytime I try to open my project I get this error:
I am not able to open my solution. IS THERE A WAY I CAN RECOVER MY PROJECT!?
Nothing mentioned above/below worked for me. Here's what I did instead:
Right click on the .xcodeproj file and select Show Package Contents. Then delete the project.xcworkspace file. Open the project in Xcode and voilà.
There are a couple of things you can try, first make sure Xcode is not running ,trash the ~/Library/Cache/ folder contents, and trash the contents of the ~/Library/Developer/Xcode/DerivedData/ folder, if you what to can just find the stuff for your project in ~/Library/Developer/Xcode/DerivedData/ and trash just that. Then restart your computer.
If that doesn't work, rename your faulty projects folder to so method like ' old', create a new project of the same name, and then move all of the source files from ' old' to you new project and add them. Its a bit painful I known but I have had to do this once to get a project working again.
Double click the actual file! NOT the recent item!
Turns out that double-clicking on the actual file instead of selecting it from the Welcome to Xcode window will help open the project as expected!
Also, after the first time open it with double-clicking the file, the window will be fixed by itself 🤷🏻‍♂️
In my case, the project was moved to my iCloud Drive without me noticing it.
If it happens to you too, just go to your Finder, locate the project and check if there is a cloud next to it. Just right click it and "Download now". Try again once the download is finished.
I was having this issue with Xcode 12. Opening Xcode, and selecting my project from 'Recent projects' list was causing Xcode to crash
My solution: I navigated to the folder and opened ProjectName.xcworkspace file, then it worked
If you're working with git, right click the project-name.xcodeproj > Show Package Contents, open the file project.pbxproj and check for conflict and resolve it.
Quit Xcode, then make a copy of the xcworkspace file (just in case). In finder, right-click the xcworkspace file and choose Show File Contents.
In that directory, open the xcuserdata directory and delete any contents. Start Xcode again and open the project.
In my case there was something wrong with the saved project state, so doing this resets the state and it opened normally.
I had the same error and none of the above helped me.
Solution that helped me: Create a new project, then without closing it, go to
File -> Open
and select your .xcworkspace file.

intellij usability question - how to add a button that opens working folder

There's a small feature I have been yearning about in intellij idea and I will give it a try in this forum, maybe it is already possible.
In brief: I want a button that opens the working folder of the project I am working on.
Since this is the folder I put my settings files I am doing the following operation dozens of times a day -
open the run/debug configuration.
go to my activbe project tab.
copy the working directory.
open run (win+r).
paste the folder path and press enter.
X dozens of times.
Is there a way to add a button somewhere that opens my working folder?
BTW: I know that in the project settings - External tools - I can add actions. but there is no workingFolder in the macros. is there a way to add the working folder? (eventhough a button would be better)
Thanks a lot.
If you need to manage files, why not do it right from IntelliJ? If you have to go to explorer, right click any file or folder in the project panel, and there's a "Show in Explorer" option in Windows (no default key mapping). There's also "Show Path" (ctrl+alt+F12), which lets you open Explorer to any parent directory of the selected file all the way up to the drive. Finally, "Copy Path" (ctrl+shift+C) will copy the absolute path to the clipboard. (This is in IDEA 10.5, but I know Copy Path has been there a long time.)