Hello,
UPDATE:
Ok so I opened up my old project and it works fine.
But if I create a new project I get the same AdapterListView.cs error as below.
As well as not being able to create new UI Elements.
Help!
UPDATE:
I have resolved one issue, now I have a new issue.
I cannot create any UI Elements, either from right clicking in the Hierarchy, or using the drop down menu at the top Component > UI.
All the items are greyed out and I cannot create a Canvas, Image, Slider, Button, Text, etc…
I have tried removing and re installing the Unity UI and dependent TextMeshPro packages.
This has had no effect.
I am still unable to create UI elements.
I’m going to try and open a project that I was working on less than a month ago with no issues.
Then I will try installing a 2019 LTS version of Unity and see if that solves the issue.
Anyone have any ideas?
Original Post:
Resolved kind of, with a lot of effort, see solution at the bottom of the post.
Today I went to create a brand new project and get this strange error, prompting me to open a brand new never been opened project in Safe Mode.
There are 193 syntax errors coming from the AdpaterListView.cs file, from com.unity.collab-proxy@1.3.9, the Unity Collaborate Package.
here’s what one of the errors looks like. They all look roughly the same.
Library\PackageCache\com.unity.collab-proxy@1.3.9\Editor\Components\AdapterListView.cs(1,3): error CS1003: Syntax error, ',' expected
If I delete this package everything runs fine, but there are clearly things missing. For example I can no longer create any UI Components from the usual right click in Hierarchy window > UI > Canvas, Image, Slider, etc…
I was initially running Unity 2020.3.0f1, but then did a fresh install of Unity 2020.1.0f1, and tried to create a new project. I got the same error.
Anyways here’s what the AdapterListView.cs file looks like
e<this.properties.length;e++){if(this.properties[e].isDisplayableColor)return!0}return!1}static convertStatusStringToStatus(e){switch(e){case"Valid":return 1;case"UnrecognizedProperty":return 2;case"InvalidValue":return 3}return 0}getLonghandOriginal(e){return this.originalLonghand&&this.originalLonghand.length===this.properties.length?this.originalLonghand[e]:{name:"",value:"",isImportant:!1,isEnabled:!1}}commitNewProperty(){if(this.rule.isNew)return this.rule.commitNewRule(this);for(var e=-1,t=0;t<this.rule.properties.length;t++)if(this.rule.properties[t]===this){e=t;break}var i=e<this.rule.properties.length-1?this.rule.properties[e+1].uid:null;return new Promise((e,t)=>{this._model.addProperty(this.rule.uid,this._name,this._value,this._isImportant,i,i=>{if(i){this.updateFromRemote(i);e()}else t()})})}remoteUpdateProperty(e){var i=e.current;this.uid=e.uid;this.wasCreatedInSession=e.wasCreatedInSession;this.original=e.original;this.originalLonghand=e.originalLonghand;this.name=i.name;this.status=t.convertStatusStringToStatus(e.status);this.isEnabled=i.isEnabled;this.isApplied=e.isApplied;this.isDeleted=e.isDeleted;this.setValue(i.value,i.isImportant);this.updateChangeState()}}e.StyleProperty=t}(Dom||(Dom={}));!function(e){!function(e){e.ACCESSIBILITY_PROPERTIES_FILTER={AcceleratorKey:{DisplayName:"Shortcut Key",DefaultDisplay:!0,Description:"",AriaEquivalent:""},AccessKey:{DisplayName:"Access Key",DefaultDisplay:!0,Description:"",AriaEquivalent:""},AriaProperties:{DisplayName:"",DefaultDisplay:!0,Description:"",AriaEquivalent:""},AriaRole:{DisplayName:"Role",DefaultDisplay:!0,Description:"",AriaEquivalent:"role"},AutomationId:{DisplayName:"AutomationId",DefaultDisplay:!1,Description:"",AriaEquivalent:""},BoundingRectangle:{DisplayName:"Bounding Rectangle",DefaultDisplay:!0,Description:"",AriaEquivalent:""},ClassName:{DisplayName:"Class Name",DefaultDisplay:!0,Description:"",AriaEquivalent:""},ClickablePoint:{DisplayName:"Clickable Point",DefaultDisplay:!0,Description:"",AriaEquivalent:""},Controltype:{DisplayName:"Control type",DefaultDisplay:!1,Description:"",AriaEquivalent:""},ControllerFor:{DisplayName:"Controller For",DefaultDisplay:"",Description:"",AriaEquivalent:"aria-controls"},Culture:{DisplayName:"Culture",DefaultDisplay:!0,Description:"",AriaEquivalent:""},DescribedBy:{DisplayName:"Described By",DefaultDisplay:!0,Description:"",AriaEquivalent:""},"ExpandCollapse.ExpandCollapseState":{DisplayName:"Expanded State",DefaultDisplay:!0,Description:"",AriaEquivalent:"aria-expanded"},FlowsFrom:{DisplayName:"Flows From",DefaultDisplay:!0,Description:"",AriaEquivalent:""},FlowsTo:{DisplayName:"Flows To",DefaultDisplay:!0,Description:"",AriaEquivalent:"aria-flowto"},FrameworkId:{DisplayName:"Framework Id",DefaultDisplay:!1,Description:"",AriaEquivalent:""},"Grid.ColumnCount":{DisplayName:"Column Count",Desc
just one long line of code and it’s clearly missing stuff.
Just looking at the first part e<this.properties.length;
and the last part ,"Grid.ColumnCount":{DisplayName:"Column Count",Desc
it looks like some of the code was just not included in this file.
I uninstalled, rebooted and reinstalled and rebooted, both versions 2020.3.0f1 and 2020.1.0f1 and I’m still getting the same errors.
Does anyone have the proper code that belongs in this file?
AdapterViewList.cs
from Library\PackageCache\com.unity.collab-proxy@1.3.9
Unity Collaborate package
Does anyone have a solution?
Thanks!
EDIT: (SOLUTION)
So I copied and pasted the code from AdapterViewList.cs on a previous project into my new project.
The file being located at Library\PackageCache\com.unity.collab-proxy@1.3.9\Editor\Components
and it resolved this issue.
However now I have the new issue, see above.