Open TCROC opened 3 years ago
Hello. Consulo fully ignore .asmdef. For now this issue have low priority. Maybe later
Ok. What would need to be changed / added for this to be implemented?
Just my time, which limited :)
Haha I understand that. Where is the code that you would have to start modifying? I also don't have much free time, but I might take a look if I get a spare moment.
And also, would it be possible to implement through the .csproj files that Unity generates? Or is it better to use the .asmdef files directly?
There long story - how Consulo work with Unity Project. After some time i decided to import projects without Unity or VS project files (some long code here https://github.com/consulo/consulo-unity3d/blob/master/plugin/src/main/java/consulo/unity3d/projectImport/Unity3dProjectImporter.java#L276)
About VS files.
First of all - when Unity generate them, it's try generate with MSBuild restriction. For example - it's don't known about full Unity Project. Not "source" files will be ignored. Unity will try reference to built-in system .NET framework, because it can't create reference to self framework.
I can't write it in a simple post:)
Second. MSBuild project files (vs files) can't not be loaded correctly without MSBuild runtime.
I have plan for MSBuild plugin implementation (https://github.com/consulo/incubating-consulo-msbuild) . Also need my time)
Sounds good! Thanks for the helpful links! I'll let you know if I get around to trying to tackle the asmdef feature. I'll also be curious to see how you implement because from a performance standpoint, your implementation is much more efficient than VS Code Omnisharp. I was originally using that, but it just takes waaaayyyy too long to load our projects (minutes). Consulo loads up in a matter of seconds! On our largest project! :) Very impressive.
There some issues with loading big projects, like Consulo try to analyze audio files (or some big unknown files). I'm planning add audio plugin in future (https://github.com/orgs/consulo/projects/14)
I'm also Unity dev, I need it :)
Awesome! :) Yep that's why we are using it :). I saw someone write a nice post about Consulo on Reddit. That's how we discovered it. I'll link in the post if I find it.
A repo for reproducing this bug can be found here: https://github.com/TCROC/ConsuloBug-Asmdef
Consulo is not following Unity's Assembly Definitions.
As can be seen, "Asmdef1" does not reference "Asmdef2" and Unity is throwing compiler errors.
However, Consulo is allowing me to reference SomeScript2 from SomeScript1 without errors even though it is an assembly that is not referenced by "Asmdef1"
OS: Ubuntu 18.04 Unity Version: 2019.4.14f1 Unity Consulo UPM Version: 2.4.0 consulo.log
Consulo About