Resetting gemstash to original state - ruby

Looking through the documentation, I have not found anything that resets the entire cache to the original state.
I would like to delete all the gems that have been cached in gemstash.
I have tried deleting the gem_cache folder in gemstash, but when I rerun bundle install, nothing is populated in the gem_cache folder.
I have figured that it will only populate if all the files related to the gem is deleted in .bundle/ folder.
Is there an easier way to do this?
Any help would be appreciated
Thanks in advance

Deleting the files and folders in gem_cache is sufficient for resetting the cache. To repopulate the cache, make sure the file Gemfile.lock is deleted, to ensure that the dependencies are fetched from the source again. This means that it when fetching the dependencies, it would go through the gemstash, and therefore cached.

Related

Why do I keep getting node_modules file changes showing up on Git without touching my code?

I've got a pretty simple repository made up of a frontend folder in which I have a react app, and a backend folder that is mostly empty for now.
Every few minutes, regardless of whether or not I make any changes to any files, some node_modules file will pop up in GitHub desktop showing a difference.
screenshot of my github desktop
Do I need to add node_modules to my .gitignore file?
This didn't happen before, I don't know what happened to trigger this. I add the changes because I assume it's an important node_modules update but then it happens again a few minutes later.
I'd like to understand why this is happening and how I can prevent it from happening as it makes my commit history impossible to read.
Simplest solution would be to gitignore node modules like so...
/node_modules
Unless you have a specific reason to track changes to npm?
It's usually better to install fresh packages via npm install when setting up on a different enviroment/device.

How to force stack to re-fetch urls in a snapshot

I have a snapshot.yaml that looks like this
resolver: lts-14.0
packages:
- url: https://github.com/llvm-hs/llvm-hs/archive/refs/heads/llvm-9.zip
subdirs:
- llvm-hs
- llvm-hs-pure
I have pushed to the project at the end of that .zip URL, and I have manually downloaded the zip and looked to ensure that the changes I made are in fact present there.
Stack is using a stale previously downloaded copy of the zip. I cannot find it, and I have tried for some time. I even completely blew away my ~/.stack and set everything up again from scratch, and the stale cached version of the zip persists! Help?

How to recover files after getting permanently deleted

So recently, all files of a python project which I had been working on for weeks got accidentally deleted, and then I emptied my recycle bin, so it is gone now.I tried to "Restore Previous Versions" of the folder it was in in windows, but it said that there were no previous versions. So I tried using a disk drill to recover those files, but i could not even find them in the list of files that it came up with. So is there a different setting/configuration on disk drive which could be preventing me from recovering those files? Do I need to use another recovery software?Or is it going to be hard/impossible to recover the file? I have been working on this project for a long time, so any help would be hugely appreciated
If you do this on VSCode while using GIT. Recreate the file in the location you deleted it, then right click on the file and select file history. You should be able to restore most, if not all, of your data.
Just happened to me, figured this might help someone else in the future.
If you don't have any shadow copies to restore a previous version from, then speicalized undelete tools are your only hope. However, if the sectors containing the deleted files' contents have been overwritten since deleting them there is a chance all is lost.

VS2017 - TF10169

I have a small problem. I deleted project on azure devops. Then I deleted local directories. Now I still have "Detected: 1 delete(s)" in Pending changes. It is a delete operation for project dir.
I tried everything, I can't get rid of this pending change.
- I tried restoring dir, not helping.
- I tried to create the whole project again and promote the change.
- I tried deleting vs tfs cache
When I try to promote the change, I always get error TF10169: Unsupported pending change attempted...
Any suggestions?
I think I finally got this working.
I created project with same name as old one.
I tried to map it to the old folder on local disk
Then I tried to delte it all again and call tf destroy
After that I deleted the project and the change was finally gone!!

PBXCp error no such file or directory

I'm getting this PBXCp error saying there is no such file or directory even though i checked and the file is there. Tried going into targets and Copy Bundle Resources deleted the file in question from there and adding it again did not solve the issue. Any help is appreciated.
PBXCp is a build utility; it copies files.
Your error is caused by it trying to copy a file, and not being able to put the file at the indicated place.
For instance: I'm getting this error as I try to build an extension for an App that is not building; my issue was that PBXCp is trying to install the extension, which did build properly, into an app bundle (essentially, a directory) that doesn't exist, which fails.
Since you're using CocoaPods, check to see whether anything needs updating or reinstalling. You could also be getting this error if you are using multiple schemes, and the results of one build are needed by a later step. If the first build fails, this error will occur in the later build step.
I had the same issue, just find unnecessary files (they have red title name color)
I had similar issue after I added some extra files in my project by copy pasting them from another. Like suggested by many others, I tried to find the faulty file by checking in Project settings- Building Phases. Dint work. While copying, I also had copied a view controller in my storyboard. I reverted my change and re did it. Worked. May be I made some mistake while changing identifier name or something. Don't know. But if nothing works and u can't figure out what's wrong, undo and redo the copying again step by step. Hope it helps someone.

Resources