Sorry, I didn't want to open a duplicate of an issue that already appears to have been resolved. I'm assuming it's something I'm configuring incorrectly, but I can certainly open something on github if you'd prefer. For the time being, though...
Without any custom assemblies, autocomplete works as expected. When I add my assemblies, autocomplete works for them, but stops working for the standard libraries.
- Code: Select all
"completesharp_assemblies": [
"/Applications/Unity/Unity.app/Contents/Frameworks/Managed/UnityEngine.dll",
"/Applications/Unity/Unity.app/Contents/Frameworks/Managed/UnityEditor.dll"
],
- Code: Select all
using UnityEngine;
using System.Collections;
public class Test {
System.
}
Console shows this for normal, no-custom-assembly (working) attempt to autocomplete "System."(-1, -1, u'System', None, u'.')
stderr: got: -findclass;;--;;System
stderr: Exception: An empty file name is not valid.
stderr: at System.IO.FileSystemInfo.CheckPath (System.String path) [0x00000] in <filename unknown>:0
stderr: at System.IO.FileInfo..ctor (System.String fileName) [0x00000] in <filename unknown>:0
stderr: at (wrapper remoting-invoke-with-check) System.IO.FileInfo:.ctor (string)
stderr: at CompleteSharp+MyAppDomain.CheckUpdate () [0x00000] in <filename unknown>:0
stderr: execute args: -findclass
stderr: execute args: System
stderr: Trying UnityEngine.System
stderr: Trying System.Collections.System
stderr: Trying System.System
stderr: Trying System
stderr: System
absolute is System (3.395081 ms)
finding what to complete took 0.004053 ms
completing System.
stderr: got: -complete;;--;;System;;--;;
stderr: Exception: An empty file name is not valid.
stderr: at System.IO.FileSystemInfo.CheckPath (System.String path) [0x00000] in <filename unknown>:0
stderr: at System.IO.FileInfo..ctor (System.String fileName) [0x00000] in <filename unknown>:0
stderr: at (wrapper remoting-invoke-with-check) System.IO.FileInfo:.ctor (string)
stderr: at CompleteSharp+MyAppDomain.CheckUpdate () [0x00000] in <filename unknown>:0
stderr: execute args: -complete
stderr: execute args: System
stderr: execute args:
completion took 215.743065 ms
total 219.970942 ms
When I add the above assemblies, the same attempt yields:(-1, -1, u'System', None, u'.')
stderr: Loading: /Applications/Unity/Unity.app/Contents/Frameworks/Managed/UnityEngine.dll
stderr: Loading: /Applications/Unity/Unity.app/Contents/Frameworks/Managed/UnityEditor.dll
stderr: got: -findclass;;--;;System
stderr: execute args: -findclass
stderr: execute args: System
stderr: Trying UnityEngine.System
stderr: Trying System.Collections.System
stderr: Trying System.System
stderr: Trying System
stderr: Exception: The classes in the module cannot be loaded.
stderr: at (wrapper managed-to-native) System.Reflection.Assembly:GetTypes (System.Reflection.Assembly,bool)
stderr: at System.Reflection.Assembly.GetTypes () [0x00000] in <filename unknown>:0
stderr: at CompleteSharp+MyAppDomain+Hack.Execute (System.String[] args, System.Collections.ArrayList modules) [0x00000] in <filename unknown>:0
absolute is Test (529.119968 ms)
stderr: got: -returntype;;--;;Test;;--;;System
stderr: execute args: -returntype
stderr: execute args: Test
stderr: execute args: System
stderr: Exception: The classes in the module cannot be loaded.
stderr: at (wrapper managed-to-native) System.Reflection.Assembly:GetTypes (System.Reflection.Assembly,bool)
stderr: at System.Reflection.Assembly.GetTypes () [0x00000] in <filename unknown>:0
stderr: at CompleteSharp+MyAppDomain+Hack.Execute (System.String[] args, System.Collections.ArrayList modules) [0x00000] in <filename unknown>:0
Test.System =