-
Notifications
You must be signed in to change notification settings - Fork 13
Open
Description
After saving a file I am unable to load it. Instead this error is shown:
I opened TUI Designer, and immediately saved the file without editing anything. This is the resulting file:
# This file was generated at 30.11.2022 19:18:01
# Manually editing this file may result in issues with the designer
$Window = [Terminal.Gui.FrameView]::new()
$Window.Id = 'Window'
$Window.Title = 'Window'
$Window.X = 0
$Window.Y = 0
$Window.Width = [Terminal.Gui.Dim]::Fill()
$Window.Height = [Terminal.Gui.Dim]::Fill()
$ = [Terminal.Gui.Button]::new()
$.Text = ''
$.IsDefault = $False
$.HotKey = 'Null'
$.AutoSize = $False
$.Shortcut = 'Null'
$.TabIndex = 0
$.TabStop = $True
$.CanFocus = $True
$.Id = ''
$.WantMousePositionReports = $False
$.WantContinuousButtonPressed = $False
$.LayoutStyle = 'Computed'
$.X = [Terminal.Gui.Pos]::At(0)
$.Y = [Terminal.Gui.Pos]::At(0)
$.Width = [Terminal.Gui.Dim]::Sized(4)
$.Height = [Terminal.Gui.Dim]::Sized(1)
$.TextAlignment = 'Centered'
$.VerticalTextAlignment = 'Top'
$.TextDirection = 'LeftRight_TopBottom'
$.IsInitialized = $True
$.Enabled = $True
$.Visible = $False
$Window.Add($)
$Window
Some observations/unproven statements:
- One variable does not seem to have a name and is just called
$ - The variable probably has no name because it's generated from the
Id - Why is there a button object in this file in the first place?
So the first thing I tried is changing $ to $Button but unfortunately I still cannot open the file:
Completely removing these lines, resulting in a file like above, also doesn't work: (This is what I would have expected the file to look like)
# This file was generated at 30.11.2022 19:18:01
# Manually editing this file may result in issues with the designer
$Window = [Terminal.Gui.FrameView]::new()
$Window.Id = 'Window'
$Window.Title = 'Window'
$Window.X = 0
$Window.Y = 0
$Window.Width = [Terminal.Gui.Dim]::Fill()
$Window.Height = [Terminal.Gui.Dim]::Fill()
$Window
This happens on PS v5 and v7 regardless.
Also, I am running Windows 11 22000.1219
Any ideas on how to debug this any further?
Metadata
Metadata
Assignees
Labels
No labels

