Very unusual error that I have never seen. UNITY - unity3d

Im getting this weird error that I have never seen before and i have like 400 of them and they i think are all different. Here is an example Library\PackageCache\com.unity.test-framework#1.1.20\UnityEngine.TestRunner\NUnitExtensions\Runner\UnityTestExecutionContext.cs(125,34). This also happened right after my pc shorted out. I fixed it loaded up unity and all my files were gone. I was planning on trying to redo some of my stuff when this came up. I'm also having a warning about a meta data file existing but its packages cant be found. I don't know if these are connected or not. This is also a brand new project so its not anything old.

Answer: Go to your library and you will find all your projects and such there. If you locate to the project you are currently working on find a folder called package cache. Delete this and you will have no more errors!

Related

I can't log in to a project in Unity

What to do I'm doing a project with a friend and I'm throwing him the project files, he opens the project and shows this error in Unity Hub, this did not happen before, and after one moment it began to appear, I don't have such an error, the Internet is almost empty about it. What to do?
nice error
I solved the problem, I just needed to create a new folder for projects
I solved the problem, I just needed to create a new folder for projects
There are some solutions online eg. here
It seems like one possible solution is related to the Crash Handler or related to git VC.
One simple common solution is
One interim test solution is to try copying the Assets/ and ProjectSettings/ and Packages/ file to a brand new directory somewhere, then try opening that.

LibGit2Sharp problems

I am trying to use LibGit2Sharp in Unity 2018.2 beta, because previous versions of Unity doesn't support .NET Framework 4.7.1, which will be needed for LibGit2Sharp.
I wanted to try a few things first and came across the following problems:
if I try to clone a repository (I have used the example on GitHub first: https://github.com/libgit2/libgit2sharp/wiki/git-clone), I get an "LibGit2SharpException: failed to send request" error in Unity.
I have also tried to get information from a working copy. I create a Repository with new Repository(string path), get the RepositoryStatus from it with rep.RetrieveStatus(new StatusOptions()). Now, if I try to access the state of files, it causes a crash in Unity. No matter if I iterate through all files and want to print file.State, or want to get a specific FileStatus list from the whole status (example: status.Added). However, printing the filepaths works.
Fetching does not works either for me, it throws the same exception as the clone command.
I think the second one is maybe just an issue, but clone and fetch should work.
Update: sadly, I keep facing problems in my project with libgit2sharp in Unity. I want to make a commit, now if i try to iterate through the StatusEntries to stage the files, Unity just crashes, but sometimes it works. It is really hard to reproduce the bug, and often I get different crashlog-entries for the same process. The last time I have tried today the error was:
0x00007FFB417386CE (git2-6311e88) [c:\projects\libgit2sharp-nativebinaries\libgit2\src\diff_generate.c:1352] git_diff_tree_to_index
I have created a test-repository in my program using the Github API and cloned this to my pc, this works fine so far. And then if I create some files in the folder and want to make a commit, I run into the error above. Sadly this is one of several other issues and I can't really make progress with my project.
I have installed libgit2sharp and binaries with the Nuget Package Manager of Visual Studio.
Does anyone have experience with LibGit2Sharp and maybe some ideas of what I could be doing wrong, or why these things don't work for me?
Update 2: I'm still trying to solve the problem. I have now tested multiple times the different ways to get informations about the file-status of a repository. The best way to do it in my project would be with Repository.RetrieveStatus(filePath), now if I try this, it throws an AmbiguousSpecificationException. Can somebody explain, what does this exactly mean and how can I avoid it? I have also tried to force a literal path evaluation with Repository.RetrieveStatus(new StatusOptions() { DisablePathSpecMatch = true }); as recommended in the message of the AmbiguousSpecificationException, but then Unity crashes with the error-log in the first Update of this Post.
I had the same problem where Unity crashed on RetrieveStatus(); call. Seems like this might be a bug in LibGit2Sharp since RetrieveStatus("filepath") worked for me. I used the latest libgit2sharp commit (0dcaefc) and Unity 2018.3.0f2.
I used the absolute filepath and "\" instead of "/" (running on Windows 10).

Github made canser in my game

I am working on a project for shcool and in order to work with my partner effectivly we are using git hub. we are making the game in game maker, but there is a problem where a room called room0.room.gmx is giving me an error. I deleted it in the game maker file, and have deleted it in finder. It still is giving me issues so I right clicked on it in git hub to see if there was some version of it still existing.... it said the file dosent exist.... but it is contained somewhere in my computer. I cant find this anywhere on the internet! Please help!!!
I can't cure canser, but deleting the tumorous room won't be enought. You need to also delete it in the GameMaker studio project. The problem is that somewhere in your project file is a link to all the files you use. If you delete the room file, GameMaker has no clue and still thinks it exists somewhere, and still points to it.
Maybe it isn't exactly your problem, but a more detailed question would help.

Accidentally published CompositeC1 with precompile on

I accidentally published Composite C1 from Visual Studio with "Precompile during publishing" when I first set it up and have now come to realize that several plugins do not work with precompile turned on. Unfortunately I have no idea how to reverse this. I've tried several things to no avail. I usually end up with a 500.0 error. If I go to the admin interface everything is working properly, and I can even preview the pages, but from the customer side all I get is a 500.0 error.
Of course I could republish from the Visual Studio project I have, but that project has the default template on it. I've tried copying what appears to be changed on the server to the original project but I end up with a 500 error. I've tried removing all the precompiled stuff on the server but I end up with a 500 error. I'm pretty lost.
At this point I'm willing to do anything. Is there a doc explaining how to copy the content to a newly downloaded copy, kind of like an upgrade doc but "side-grading"? I am using the most current version at the time of writing this 4.2 Update 1
Thank you
Solved use the PackageCreator suggested by wysocki's answer. It was not exactly straight forward to create the package. The errors can very cryptic at times. So here are some of the issues I encountered and how I got past them:
wysocki was correct to suggesting starting with a bare bones installation even though my original project was started with the Venus theme. I tried both ways.
I encountered issues with the MasterLayout and the Page Template Features which are currently not supported by the PackageCreator, although they may be supported in future versions. The solution was to add the missing elements to the fresh C1 project from the original C1 installation in the App_Data/PageTemplates and App_Data/PageTemplateFeatures folders.
A few times I ran into an issue where I added the same page or function twice to the PackageCreator. This was obviously my fault, but it should be mentioned that you can add the same site element twice which throws and error on import. Make sure you are careful to only getting one of each when creating the package to be exported.
If you are getting and error and it uses and Id like "4061397b-ee9e-4512-984d-f2b2d41eb654" I've found that it was very helpful to extract the zip file you are trying to import and then search the extracted folders for that Id. The lines with the Id usually have more information on them that will help you to identify exactly what content page or whatever the error is being generated from.
If you are using installed packages in your project like SimpleSearch for example, make sure you don't add it's functions to the PackageCreator. Install them separately.
I had an issue where I somehow had an element in the Data section that didn't have a "type". The error simply "The type cannot be empty". This was obviously tough to find so I suppose the lesson is, less is more. If you think your project might have a few elements that are unnecessary, don't add them at first and see if the project you import them into complains about missing them. It's much easier to troubleshoot missing elements than it is to figure out which element is causing the issue that you really didn't need.
Is there a doc explaining how to copy the content to a newly downloaded copy
You can try and export content / templates / anything else related to a "package" via Composite.Tools.PackageCreator.
Its latest version gives you quite a lot of flexibility in what you can export ("package") - please its user manual.
Once the package is made and downloaded, you can go on and install it on a new website. If you export / import a lot of content / templates etc, it makes sense to have a "Bare Bones" site as the new one.
All the starter sites like "Neptune", "Venus" are installed as a bunch of packages in specific order during Composite C1's initial setup.

TapkuLibrary.h and <TapkuLibrary> not found - Lexical and Preprocessor Issues

I've had huge troubles with this for quite a while now.
A few days ago after rebuilding my project, I got an error saying "TapkuLibrary.h" was not found. I removed the files attached to the project and followed the directions exactly directed at https://github.com/devinross/tapkulibrary
However, when I tried to rebuild my project, the file is still not found!
I'm using XCode 4.6.1 building for iOS 6.1
I can see that the files attached to the xcode project from Tapku can be found because I can find them in the side bar. For some reason though, TapkuLibrary.h is not found.
Also, when I control a class, it links me to the right symbol for all files except TapkuLibrary.h which is, again, not found.
I'm quite stressed by this, so any clues would be immensely appreciated. Thank you so much in advance!
UPDATE:
I've tried gain to remove all the files and readd them to no avail.
Please look at the solution in this question: TapkuLibrary.h not found on archive
I think it's exactly the same issue you're having.