Search Unity

  1. Are you interested in providing feedback directly to Unity teams? Sign up to become a member of Unity Pulse, our new product feedback and research community.
    Dismiss Notice

Compiler error after renaming component.

Discussion in 'Project Tiny' started by SorneBachse, Dec 12, 2018.

  1. SorneBachse

    SorneBachse

    Joined:
    Dec 27, 2012
    Posts:
    56
    Hey guys.

    Been enjoying this UTiny so far, but running into some issues. After i renamed one of my components, it broke the project. I can no longer build and play in a browser and Visual Studio has a lot of red squiggly lines when trying to access ut.

    Code (CSharp):
    1. Exception: Tiny: fs.js:646
    2.   return binding.open(pathModule._makeLong(path), stringToFlags(flags), mode);
    3.                  ^
    4. Error: ENOENT: no such file or directory, open 'D:\_UnityProjects\UTiny_Playground\FirstProject\First_Project\Tiny\Dist\runtimedll\RuntimeStripped.d.ts'
    5.     at Object.fs.openSync (fs.js:646:18)
    6.     at Object.fs.openSync (pkg/prelude/bootstrap.js:483:32)
    7.     at Object.fs.readFileSync (fs.js:551:33)
    8.     at Object.fs.readFileSync (pkg/prelude/bootstrap.js:679:36)
    9.     at allInputs.forEach.file (C:\snapshot\manager\tscompile\index.js:309:46)
    10.     at Array.forEach (<anonymous>)
    11.     at Object.run (C:\snapshot\manager\tscompile\index.js:308:19)
    12.     at Object.<anonymous> (C:\snapshot\manager\index.js:47:6)
    13.     at Module._compile (pkg/prelude/bootstrap.js:1252:22)
    14.     at Object.Module._extensions..js (module.js:661:10)
    15.  
    16. Unity.Tiny.TinyShell.RunInShell (System.String command, Unity.Tiny.ShellProcessArgs args) (at Library/PackageCache/com.unity.tiny@0.13.2-preview/Editor/Utility/TinyShell.cs:217)
    17. Unity.Tiny.TinyShell.RunTool (System.String name, System.String[] args) (at Library/PackageCache/com.unity.tiny@0.13.2-preview/Editor/Utility/TinyShell.cs:71)
    18. Unity.Tiny.TinyBuildUtilities.CompileTypeScript (System.IO.FileInfo tsConfigFile, System.IO.FileInfo outMetadataFile) (at Library/PackageCache/com.unity.tiny@0.13.2-preview/Editor/Export/TinyBuildUtilities.cs:397)
    19. Unity.Tiny.TinyScriptingManager.CompileScripts (Unity.Tiny.TinyBuildOptions buildOptions) (at Library/PackageCache/com.unity.tiny@0.13.2-preview/Editor/Context/TinyScriptingManager.cs:58)
    20. Unity.Tiny.TinyBuildUtilities.CompileScripts (Unity.Tiny.TinyBuildOptions buildOptions) (at Library/PackageCache/com.unity.tiny@0.13.2-preview/Editor/Export/TinyBuildUtilities.cs:430)
    21. Unity.Tiny.TinyBuildUtilities.CompileScripts () (at Library/PackageCache/com.unity.tiny@0.13.2-preview/Editor/Export/TinyBuildUtilities.cs:423)
    22. Unity.Tiny.TinyEditorApplication.LoadContext (Unity.Tiny.TinyEditorContext context, System.Boolean isChanged) (at Library/PackageCache/com.unity.tiny@0.13.2-preview/Editor/Windows/TinyEditorApplication.cs:936)
    23. Unity.Tiny.TinyEditorApplication.LoadTemp (Unity.Tiny.ContextUsage usage) (at Library/PackageCache/com.unity.tiny@0.13.2-preview/Editor/Windows/TinyEditorApplication.cs:859)
    24. Unity.Tiny.TinyEditorApplication+<>c.<Update>b__32_0 () (at Library/PackageCache/com.unity.tiny@0.13.2-preview/Editor/Windows/TinyEditorApplication.cs:140)
    25. UnityEditor.EditorApplication.Internal_CallDelayFunctions () (at C:/buildslave/unity/build/Editor/Mono/EditorApplication.cs:209)
    26.  
    And when I press "Update Runtime" :
    Code (CSharp):
    1. UnauthorizedAccessException: Access to the path 'D:\_UnityProjects\UTiny_Playground\FirstProject\First_Project\Tiny\Tools\manager\TinyToolsManager-win.exe' is denied.
    2. System.IO.__Error.WinIOError (System.Int32 errorCode, System.String maybeFullPath) (at <ac823e2bb42b41bda67924a45a0173c3>:0)
    3. System.IO.FileInfo.Delete () (at <ac823e2bb42b41bda67924a45a0173c3>:0)
    4. Unity.Tiny.TinyBuildUtilities.PurgeDirectory (System.IO.DirectoryInfo dir) (at Library/PackageCache/com.unity.tiny@0.13.2-preview/Editor/Export/TinyBuildUtilities.cs:511)
    5. Unity.Tiny.TinyBuildUtilities.PurgeDirectory (System.IO.DirectoryInfo dir) (at Library/PackageCache/com.unity.tiny@0.13.2-preview/Editor/Export/TinyBuildUtilities.cs:507)
    6. Unity.Tiny.TinyBuildUtilities.PurgeDirectory (System.IO.DirectoryInfo dir) (at Library/PackageCache/com.unity.tiny@0.13.2-preview/Editor/Export/TinyBuildUtilities.cs:507)
    7. Unity.Tiny.TinyRuntimeInstaller.Install (System.Boolean force, System.Boolean silent) (at Library/PackageCache/com.unity.tiny@0.13.2-preview/Editor/Export/TinyRuntimeInstaller.cs:344)
    8. Unity.Tiny.TinyRuntimeInstaller.InstallRuntimeMenuItem () (at Library/PackageCache/com.unity.tiny@0.13.2-preview/Editor/Export/TinyRuntimeInstaller.cs:383)
    9.  
     
  2. SorneBachse

    SorneBachse

    Joined:
    Dec 27, 2012
    Posts:
    56
    Hm, okay so a solution seems to be to re-import UTiny from the package manager. Still, would be nice to be able to rename your components :)
     
unityunity