vexe / VFW

MIT License
492 stars 67 forks source link

Failed to run script updater #92

Open varunvp opened 8 years ago

varunvp commented 8 years ago

Hey, I'm running Unity 5.3.4f1, and I get this error when I try to upgrade any plug in from Unity 4.x to 5.x. This is a fairly recent problem I've encountered(i.e., today.) I tried running Unity as administrator, but it still didn't work!

Failed to run script updater. Please, report a bug to Unity with these details

System.UnauthorizedAccessException: Access to the path 'Assets/Standard Assets/VFW/Vexe' is denied.
  at System.IO.FileStream..ctor (System.String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, Boolean anonymous, FileOptions options) [0x00000] in <filename unknown>:0 
  at System.IO.FileStream..ctor (System.String path, FileMode mode, FileAccess access, FileShare share) [0x00000] in <filename unknown>:0 
  at (wrapper remoting-invoke-with-check) System.IO.FileStream:.ctor (string,System.IO.FileMode,System.IO.FileAccess,System.IO.FileShare)
  at Mono.Cecil.ModuleDefinition.GetFileStream (System.String fileName, FileMode mode, FileAccess access, FileShare share) [0x00000] in <filename unknown>:0 
  at Mono.Cecil.ModuleDefinition.ReadModule (System.String fileName, Mono.Cecil.ReaderParameters parameters) [0x00000] in <filename unknown>:0 
  at Mono.Cecil.ModuleDefinition.ReadModule (System.String fileName) [0x00000] in <filename unknown>:0 
  at Mono.Cecil.AssemblyDefinition.ReadAssembly (System.String fileName) [0x00000] in <filename unknown>:0 
  at APIUpdater.Framework.Util.StringExtensions+<CollectAssemblyReferencesAndDependencies>c__Iterator0`1[System.String].MoveNext () [0x00000] in <filename unknown>:0 
  at System.Linq.Enumerable+<CreateSelectIterator>c__Iterator10`2[System.String,System.Reflection.Assembly].MoveNext () [0x00000] in <filename unknown>:0 
  at System.Linq.Enumerable.ToArray[Assembly] (IEnumerable`1 source) [0x00000] in <filename unknown>:0 
  at BooUpdater.BooUpdater.LoadAssembliesToReference (IEnumerable`1 references) [0x00000] in <filename unknown>:0 
  at BooUpdater.BooUpdater.SetupCompilerParameters (BooUpdater.BooUpdateContext context, IEnumerable`1 defines, IEnumerable`1 references) [0x00000] in <filename unknown>:0 
  at UnityScriptUpdater.UnityScriptUpdater.SetupCompilerParameters (BooUpdater.BooUpdateContext context, IEnumerable`1 defines, IEnumerable`1 references) [0x00000] in <filename unknown>:0 
  at BooUpdater.BooUpdater.CreatAndInitializeCompiler (BooUpdater.BooUpdateContext context, IEnumerable`1 inputs, IEnumerable`1 defines, IEnumerable`1 references) [0x00000] in <filename unknown>:0 
  at BooUpdater.BooUpdater.CompileScripts (IEnumerable`1 inputs, IEnumerable`1 defines, IEnumerable`1 references) [0x00000] in <filename unknown>:0 
  at BooUpdater.BooUpdater.RunUpdater (APIUpdater.Framework.Core.SourceFile[] inputs, IEnumerable`1 defines, IEnumerable`1 references) [0x00000] in <filename unknown>:0 
  at APIUpdater.Framework.Core.APIUpdaterBase.Update (APIUpdater.Framework.Core.SourceFile[] inputs, IEnumerable`1 defines, IEnumerable`1 references) [0x00000] in <filename unknown>:0 
  at ScriptUpdater.Program.UpdateLanguage (IScriptUpdater updater, APIUpdater.Framework.Configuration.CompilerResponseFile responseFile, System.String unityDataPath, System.String outputPath) [0x00000] in <filename unknown>:0 
  at ScriptUpdater.Program.Main (System.String[] args) [0x00000] in <filename unknown>:0 

UnityEditor.Scripting.Compilers.ScriptCompilerBase:BeginCompiling()

I had placed your VFW script in the STandard Assets folder when I got this error. When I remove it and place it in the assets folder, I still get the same error. I have already filed a bug report. I get the same error in 5.3.4f1.

ajboni commented 7 years ago

Hey did you ever fix this?

varunvp commented 7 years ago

I don't remember how I fixed it. But I do remember re installing it.