Good evening,
I discovered cloud9-ide a few weeks ago and I find its possibilities for workig in a projetc team incredible.
When I came up with it at our teammeating I mentioned it, and my collegue asked the question
"It is pretty nice that you can see what was changed and that you can reverse it, but does this can also restore deleted files?"
I stood there, awkwarldy, and had to admit that I have no idea if this works and if so, how?
Can someone help me out? Is restoring deleted file possible? This would be a HUGE contra, if not.
To restore a deleted file simply recreate it then look at the revision history. All previous versions will be there.
Related
My question is the same as the one posed here:
Ignore a folder in search results
I'm using PyCharm rather than IntelliJ-IDEA, but I'm guessing that features common to all JetBrains IDEs should work the same. If the accepted answer actually did what is suggested, it would be just what I'm looking for. But it doesn't work for me. It does something interesting, but not what I want.
I have marked directories I don't want searched as "Excluded". My problem is, files aren't excluded from my search results as suggested. The interesting thing is, matched file in the directories I've marked Excluded ARE HILIGHTED to indicate that they were found in one of those directories. So I know I've got everything set up right. The GUI is showing me which files I can myself ignore by way of hilighting them in the search results window. So if it's going that far, surely there must be an option somewhere to exclude them completely. I've looked and looked. I can't find such an option.
Here's a sample result so that you can see what I'm talking about in terms of the hilighting:
Here, what I want is for the first four files shown here to show up but not the remaining eight. Can anyone tell me how to get Excluded files to not show up at all in a Jetbrains Find in Files result window rather than just hilighting them differently? TIA.
I sent off a tech support request to Jetbrains. They got back to me in less than 24 hours (I've always had great response times from them). Here's what they said:
Your understanding is correct -- the excluded directories should not
appear in the search result. However, if you just marked the directory
as excluded, it may require a project refresh to update the indices.
This is done when you reopen the project.
If the issue is still reproduced after reopening a project, there may
be an issue with indices, so please try File | Invalidate Caches... |
(Check all boxes) Invalidate and Restart.
If that doesn't help as well, please check if the issue is reproduced
in a new empty project with a minimal structure to reproduce the
issue.
I had already tried reloading my project, then restarting PyCharm, and even rebooting my Mac. None of those things helped. I had thought to rebuild the indexes, but I've got a number of large projects and was concerned that I'd keep hitting delays every time I opened one of them if I cleared out all of PyCharm's caches. But that was about all I had left to try, and since Jetbrains told me to try that, I did.
...and...clearing all PyCharm caches fixed the problem! I no longer see any of the files in Excluded directories when using any of the search modes in the "Find In Files" dialog. To be quite sure that the re-indexing fixed this, before clearing the PyCharm caches, I made a point of closing everything, then opening just the one project I was having trouble with, and then doing a straightforward search. I saw files from Excluded dirs that shouldn't have been there. Then I cleared all the PyCharm caches, and quit and restarted PyCharm. Then I did the exact same search I had done just a few minutes earlier (it took about 5 minutes to re-index the project). The results this time were to only show me what I expected/wanted. The files in Excluded directories were gone from the search results.
This may sound strange, but I am having issues with Xcode mixing branches, or at least messing everything up.
I created a new branch (v1.4), then created a new data model and renamed an entity. Had to switch back to previous branch (v1.3) to check something and I get errors at run time on v1.3, it's looking for the new entity name from Branch v1.4 - what the %$^#% is happening. I searched the files, the new entity name is nowhere in v1.3.
I switch branches again to v1.2 and it ran fine. So, switched to V1.3 again - nogo. Switched back to v1.2 and it has the same issue now, runtime error because it can't find the new entity name.
What is happening? Anyone else have this issue?
Any thoughts/suggestions would be greatly appreciated.
OS X 10.11.6
Xcode 7.1.1
==[EDIT]===
I am not real familiar with GIT, just starting to learn. I ran the couple commands as mentioned, get nothing for either git diff commands.
Running git status --ignored I do get multiple files as untracked - still working on understanding why (Separate issue) - couple object files and 2 data models (Was 3, but manually added one to commit.
Also I get 3 ignored files:
.DS_Store
projectName.xcodeproj/project.xcworkspace/xcuserdata/
projectName/.DS_Store
That's as far as I've gotten. Not familiar enough with git to know if these ignored files are the ones I should delete.
Second option - will restoring from time machine fix this? It may be a little extra work for me to recreate v1.4 but probably less time than I've already spent trying to figure out how to fix it.
I do appreciate both comments so far - thank you.
==[SECOND EDIT]==
Thanks again for your comments.
However, do to time and schedule I perform a Time Machine backup before ElpieKay posted the last comment, so I will not be able to test it.
Reverting back did "fix" it as you'd expect, but I did lose several hours of work but life happens. I will keep this for if/when this happens again and try the git clean -df to see it fixes it.
On a side note - while I was switching back and forth between V1.3 and V1.4 trying to figure this out, 2 of the model versions disappeared on v1.4 - i.e. the name turned red in Xcode and when I viewed the contents of the file they were missing. I do not know if this is related or not, but I thought I would mention it. This happened one other time and I thought maybe I did something - I did a time machine restore to fix it last time. Wonder if git clean -df would have fixed it.
Like it says:
It would seem intuitive to just change it there and try again, but it's not actually editable.
To get to this point, I file-copied the original project, opened it in Bazaar Explorer, saw that it found the history okay, and proceeded to check out the project in its new home. After a minor bug fix, I tried to commit, and it did this.
This isn't a satisfactory answer for my original question, so I'll leave it open for one that is, but I've decided to abandon the migrated repository and make a new one with (partially) migrated contents instead.
I know it'll reset my version history, but I have enough other changes, having been distracted by other, higher-priority projects for a while and coming back fresh, that I think it makes sense to call it a new project that's only based on the old one.
I accidentally deleted my solution folder. No problem because I've got everything under source control. I did "Get Latest Version" because I'm the only developer and I check in very regularly. I now have 40 Warnings and 17 Errors which, from what I can tell, all relate to references.
This has happened several times before, but the errors were mostly about OAuth. Now there are a lot of different references listed.
In the past, I have just created a new project and copy and pasted my code in. This is very wrong, I know, but I have searched the internet and SO to no avail.
Does this happen to other people? and why? and how did you fix it? I have yet to discern a specific action of mine causing this. It appears random, but I know it's probably me.
Assuming you are using TFS, try Get Specifc Version. And select Overwrite writable files.
TFS thinks it knows which files are on your system (it's wrong) and won't give you a new copy unless you force it to.
<humor>
Q: How do you fix it?
A: Use a real source control system rather than TFS. (CVS, Subversion, Mercurial, git, etc...)
</humor>
I've been trying to figure out if it is possible to have a jackrabbit repository to be run completely in memory.
Whatever I try in order to run the repository fully in memory, I still end up with a repository directory full of files on my disk?
If anyone has figured this out I'd much appreciate if you could explain how to achieve it.
Thanks
Piersyp
See this 4+ year old blog post, which hopefully still applies and is helpful: http://modeshape.wordpress.com/2008/02/22/speedy-unit-testing-with-jackrabbit/