Dead Codeblocks unable to edit

Hi folks! So I’ve seen old posts with similar issues to this but 6 years later, may be a different issue. Running Dynamo 2.12 in Revit 2022.1.2. When I place a new codeblock it is empty and cannot be edited (except for the title) – the “Your Code Goes Here” text is missing, so basically no text input available. Getting a “Failed to apply NodeViewCustomization for CodeBlockNodeModel” in the console. Full readout below. Help!

>Failed to apply NodeViewCustomization for CodeBlockNodeModel
>System.ArgumentException:
>parsing "\b(Arc|Curve|Geometry|IDisposable|IGraphicItem|BoundingBox|CoordinateSystem|Vector|Point|Plane|Surface|UV|PolyCurve|Solid|NurbsCurve|Cuboid|PolySurface|Circle|CoEdge|Edge|Loop|Vertex|Cone|Topology|Face|Cylinder|Ellipse|EllipseArc|Helix|IndexGroup|Line|Mesh|NurbsSurface|Polygon|Rectangle|Sphere|TSplineEdge|TSplineUVNFrame|TSplineFace|TSplineVertex|TSplineInitialSymmetry|TSplineReflection|TSplineTopology|TSplineSurface|Get|Dictionary|Color|Color_IndexedColor2D|Color_IndexedColor1D|IComparable|ColorRange1D|DefaultColorRanges|ColorRange|Compare|DateTime|DayOfWeek|TimeSpan|DummyPythonEvaluator|Data|List|Math|Object|Quadtree|Node|UVRect|Sorting|String|Thread|Types|Web|FileSystem|Image|Excel|WorkBook|WorkSheet|Data|IronPythonEvaluator|CPythonEvaluator|Function|List|ConversionDirection|ConversionUnit|ConversionMetricUnit|Conversions|Location|SIUnit|Length|IEquatableOfLength|LengthUnit|Area|IEquatableOfArea|AreaUnit|Volume|IEquatableOfVolume|VolumeUnit|Insolation|IEquatableOfInsolation|InsolationUnit|ConvexHull|Del..." - Unterminated [] set.
>>at System.Text.RegularExpressions.RegexParser.ScanCharClass(Boolean caseInsensitive, Boolean scanOnly)
>>at System.Text.RegularExpressions.RegexParser.CountCaptures()
>>at System.Text.RegularExpressions.RegexParser.Parse(String re, RegexOptions op)
>>at System.Text.RegularExpressions.Regex..ctor(String pattern, RegexOptions options, TimeSpan matchTimeout, Boolean useCache)
>>at System.Text.RegularExpressions.Regex..ctor(String pattern)
>>at Dynamo.Wpf.Views.CodeHighlightingRuleFactory.CreateClassHighlightRule(EngineController engineController)
>>at Dynamo.Wpf.Views.CodeHighlightingRuleFactory.CreateHighlightingRules(TextEditor editor, EngineController controller)
>>at Dynamo.UI.Controls.CodeBlockEditor..ctor(NodeView nodeView)
>>at Dynamo.Wpf.CodeBlockNodeViewCustomization.CustomizeView(CodeBlockNodeModel model, NodeView nodeView)
>>at lambda_method(Closure , NodeModel , NodeView )
>>at Dynamo.Wpf.NodeViewCustomizationLibrary.TryApplyCustomization(NodeModel model, NodeView view, InternalNodeViewCustomization customization)

Remove all add-ins from Revit, reboot, and try again. You may also have to do the same with your installed packages (just remove the directory reference and reboot Revit). Sometimes a close/reopen will fix the issue if something loaded improperly, but it’s almost always a conflicting add-in or package.

Classic, try something yesterday with no luck and today it works. Successfully re-added dynamo packages and it still works so it is a Revit add-in conflict. Thanks!

Lol that’s the way it goes.