When I was trying to create my first service, I received an error in the Unity Console about not being able to locate a file in the reality collective service package. I'm following the tutorial on a Mac. I believe that this error is due to a forward slash / back slash issue in the file path name. I've included screenshots below of the error with the path, and where I believe this is occurring in the code.
To Reproduce
Open Unity on a Mac.
Install the reality collective service framework
Create a service manager instance in the Unity scene
Create a configuration profile on the service manager instance
Create a service (Reality Collective > Service Framework > Create new service)
See the issue in the console
Expected behavior
No error should be thrown when creating a service.
Actual behavior
The following error is being thrown:
System.IO.FileNotFoundException: Could not find file "/Users/connordavis/Documents/GitHub/Ethar/EtharImageTracking/Library/PackageCache/com.realitycollective.service-framework@1.0.0-preview.3\Editor\Templates~\IService.txt"
File name: '/Users/connordavis/Documents/GitHub/Ethar/EtharImageTracking/Library/PackageCache/com.realitycollective.service-framework@1.0.0-preview.3\Editor\Templates~\IService.txt'
at System.IO.FileStream..ctor (System.String path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share, System.Int32 bufferSize, System.Boolean anonymous, System.IO.FileOptions options) [0x0019e] in <775ba1b5e20140d4847e9ee0ddb18d84>:0
at System.IO.FileStream..ctor (System.String path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share, System.Int32 bufferSize, System.IO.FileOptions options) [0x00000] in <775ba1b5e20140d4847e9ee0ddb18d84>:0
at (wrapper remoting-invoke-with-check) System.IO.FileStream..ctor(string,System.IO.FileMode,System.IO.FileAccess,System.IO.FileShare,int,System.IO.FileOptions)
at System.IO.StreamReader..ctor (System.String path, System.Text.Encoding encoding, System.Boolean detectEncodingFromByteOrderMarks, System.Int32 bufferSize) [0x00055] in <775ba1b5e20140d4847e9ee0ddb18d84>:0
at System.IO.StreamReader..ctor (System.String path, System.Text.Encoding encoding, System.Boolean detectEncodingFromByteOrderMarks) [0x00000] in <775ba1b5e20140d4847e9ee0ddb18d84>:0
at (wrapper remoting-invoke-with-check) System.IO.StreamReader..ctor(string,System.Text.Encoding,bool)
at System.IO.File.InternalReadAllText (System.String path, System.Text.Encoding encoding) [0x00000] in <775ba1b5e20140d4847e9ee0ddb18d84>:0
at System.IO.File.ReadAllText (System.String path) [0x0002c] in <775ba1b5e20140d4847e9ee0ddb18d84>:0
at RealityCollective.ServiceFramework.Editor.ServiceWizard.GenerateInterface (System.String newInterfaceName, System.Collections.Generic.List`1[T] usingList) [0x0003c] in /Users/connordavis/Documents/GitHub/Ethar/EtharImageTracking/Library/PackageCache/com.realitycollective.service-framework@1.0.0-preview.3/Editor/ServiceWizard.cs:343
at RealityCollective.ServiceFramework.Editor.ServiceWizard.<OnGUI>b__26_0 () [0x0009a] in /Users/connordavis/Documents/GitHub/Ethar/EtharImageTracking/Library/PackageCache/com.realitycollective.service-framework@1.0.0-preview.3/Editor/ServiceWizard.cs:210
UnityEngine.Debug:LogError (object)
Reality Collective - Reality Toolkit Bug Report
Describe the bug
When I was trying to create my first service, I received an error in the Unity Console about not being able to locate a file in the reality collective service package. I'm following the tutorial on a Mac. I believe that this error is due to a forward slash / back slash issue in the file path name. I've included screenshots below of the error with the path, and where I believe this is occurring in the code.
To Reproduce
Expected behavior
No error should be thrown when creating a service.
Actual behavior
The following error is being thrown:
Screenshots
The issue:
The code that is likely causing the issue:
Your Setup
Operating System:
Unity Version:
Packages