|
Emmanuel
User
Location: Ottawa, Canada
Joined on: 13-Jan-2006 23:14:31
Posted: 164 posts
|
LLBLGen Pro 5.0.4 (17 June 2016) on Windows 10 Generating for SQL Server using LLBLGen Pro Runtime Framework for .NET 4.5.2, C# using SD.Presets.Adapter.General
I tried to change the 'Typed view output type default' to 'PocoWithLinqQuery' and then generate my project but I get a dialogue saying there is a validation error.
My issue is that, when I try to access the 'Errors & Warnings' window by clicking the 'Window | Open Windows' menu item, nothing happens. There's a little triangle next to 'Open Windows' that suggests there is a cascading menu that will open but clicking or hovering does nothing. I've tried restarting LLBLGen and that doesn't work. I've tried restarting LLBLGen and opening the window without doing anything first and that doesn't work either. I've also tried restarting Windows 10.
|
|
|
Otis
LLBLGen Pro Team
Location: The Hague, The Netherlands
Joined on: 17-Aug-2003 18:00:36
Posted: 37632 posts
|
Emmanuel wrote: |
LLBLGen Pro 5.0.4 (17 June 2016) on Windows 10 Generating for SQL Server using LLBLGen Pro Runtime Framework for .NET 4.5.2, C# using SD.Presets.Adapter.General
I tried to change the 'Typed view output type default' to 'PocoWithLinqQuery' and then generate my project but I get a dialogue saying there is a validation error.
My issue is that, when I try to access the 'Errors & Warnings' window by clicking the 'Window | Open Windows' menu item, nothing happens. There's a little triangle next to 'Open Windows' that suggests there is a cascading menu that will open but clicking or hovering does nothing. I've tried restarting LLBLGen and that doesn't work. I've tried restarting LLBLGen and opening the window without doing anything first and that doesn't work either. I've also tried restarting Windows 10.
|
The tab is usually docked at the bottom, do you see it there or other windows docked there?
In any case, you can reset the panes, by removing the file: panelstate50.xml from the folder: C:\Users\<your user id>\AppData\Roaming\LLBLGen Pro
It's strange though, as the pane isn't floatable, so it's odd it's gone, I can't think of a way to get rid of it in the designer. Do you recall what you did or what changed to get this state so we can try to reproduce it?
|
|
|
Emmanuel
User
Location: Ottawa, Canada
Joined on: 13-Jan-2006 23:14:31
Posted: 164 posts
|
There were no tabs docked on the bottom but there was a pin icon which, when clicked, caused all the windows tabs to appear at the bottom.
Maybe the Windows | Open Windows didn't cascade because the UI though the windows were already opened when then were, in fact, hiding somehow at the dock on the bottom?
Anyways, I'm up and running. Thanks.
Edit: And, no, I'm sorry but I don't remember doing anything in particular. I haven't had a validation error in a long time.
|
|
|
jovball
User
Location: USA
Joined on: 23-Jan-2005 19:53:47
Posted: 393 posts
|
FYI, I had the same problem with all of the windows at the bottom disappearing. I deleted the file in AppData and they came back.
If I can figure out how I "lost" them, I'll post something here.
|
|
|
Otis
LLBLGen Pro Team
Location: The Hague, The Netherlands
Joined on: 17-Aug-2003 18:00:36
Posted: 37632 posts
|
Strange! Indeed please let us know how to reproduce this so we can fix it. You did undock them or something (e.g. Place them on another monitor), did you use the designer in visual studio?
|
|
|
jovball
User
Location: USA
Joined on: 23-Jan-2005 19:53:47
Posted: 393 posts
|
I'm using the standalone designer and I didn't (knowingly) undock them. I'll pay more attention to those windows from here to see if I can figure out what I did.
|
|
|
Otis
LLBLGen Pro Team
Location: The Hague, The Netherlands
Joined on: 17-Aug-2003 18:00:36
Posted: 37632 posts
|
jovball wrote: |
I'm using the standalone designer and I didn't (knowingly) undock them. I'll pay more attention to those windows from here to see if I can figure out what I did. |
Ok, and if you run into this next time, please attach the panelstate file so we can check whether it's bad coordinates the panels are docked or whether they're minimized or something like that. We'll also see if we can add some code to circumvent problems that might arise in the future. The file is loaded by the panel manager which is a devexpress control so it's a bit out of our hands, but we could still check whether the panels are visible and if not, make them visible.
|
|
|
Scrooge
User
Location:
Joined on: 09-Oct-2017 12:38:08
Posted: 5 posts
|
Otis wrote: |
jovball wrote: |
I'm using the standalone designer and I didn't (knowingly) undock them. I'll pay more attention to those windows from here to see if I can figure out what I did. |
Ok, and if you run into this next time, please attach the panelstate file so we can check whether it's bad coordinates the panels are docked or whether they're minimized or something like that. We'll also see if we can add some code to circumvent problems that might arise in the future. The file is loaded by the panel manager which is a devexpress control so it's a bit out of our hands, but we could still check whether the panels are visible and if not, make them visible. |
Hi Otis,
I've just run into this issue while trialling 5.2, the window disappeared after LLBLGen started throwing exceptions regarding a null reference to a RichTextBox object. The exception dialogue flashed up four or five times before I closed the application & reopened, sans the "Errors and Warnings" window.
The issue doesn't appear to be in the "panelstate52.xml" file as removing this file by itself did not rectify the issue, clearing the folder entirely did.
I've attached the three two suspect configuration files, hopefully they'll be of use.
Edit: attachment limitation
|
|
|
Scrooge
User
Location:
Joined on: 09-Oct-2017 12:38:08
Posted: 5 posts
|
And file number three, just in case.
Might be worth bumping the attachment count up by one.
|
|
|
Walaa
Support Team
Location:
Joined on: 21-Aug-2005 16:03:48
Posted: 14529 posts
|
Quote: |
the window disappeared after LLBLGen started throwing exceptions regarding a null reference to a RichTextBox object. The exception dialogue flashed up four or five times before I closed the application & reopened, sans the "Errors and Warnings" window. |
Any chance you have a screen shot or the text of that exception?
|
|
|
Otis
LLBLGen Pro Team
Location: The Hague, The Netherlands
Joined on: 17-Aug-2003 18:00:36
Posted: 37632 posts
|
Scrooge wrote: |
And file number three, just in case.
Might be worth bumping the attachment count up by one. |
(you can zip files and attach the zip ) Will look into the problem with the files but it might very well be it's not reproducible. We indeed need the exception text. You can copy the exception to the clipboard in the exception dialog, please paste the text here.
|
|
|
Scrooge
User
Location:
Joined on: 09-Oct-2017 12:38:08
Posted: 5 posts
|
Walaa wrote: |
Quote: |
the window disappeared after LLBLGen started throwing exceptions regarding a null reference to a RichTextBox object. The exception dialogue flashed up four or five times before I closed the application & reopened, sans the "Errors and Warnings" window. |
Any chance you have a screen shot or the text of that exception?
|
Sorry guys, I'm afraid I just spam-clicked the exception message window until it disappeared (I think there may have been five exception dialogues overlaid on one another), I wasn't expecting it to be useful in tracking down an issue.
It was a very short message informing me that a NullReferenceException had been raised when accessing a RichTextBox object.
I had the "Errors & Warnings" panel unpinned so that it would auto-hide, and did notice that the "ErrorWarningMessagesDisplay" menu buttons in the toolbar did not bring up the panel, the four tab buttons in the bottom-left of the program window that allow navigation within the panel were not showing.
I believe I was running "Feature Hint" > "Perform" options just before the error occurred, with two errors being displayed in the "Errors & Warnings" list.
Otis wrote: |
Scrooge wrote: |
And file number three, just in case.
Might be worth bumping the attachment count up by one. |
(you can zip files and attach the zip ) Will look into the problem with the files but it might very well be it's not reproducible. We indeed need the exception text. You can copy the exception to the clipboard in the exception dialog, please paste the text here. |
... I have no idea why I didn't think of that...
If I can get the exception to pop back up I'll make sure to copy it and drop it into a reply.
|
|
|
Otis
LLBLGen Pro Team
Location: The Hague, The Netherlands
Joined on: 17-Aug-2003 18:00:36
Posted: 37632 posts
|
The guistate52.xml file contains 1 recent file, but has as 'AmountRecentFilesStored' value: 3. Also the file contains whitespace, as if it's edited in an editor.
Please explain these 2 things, especially the last one: did you edit the file in an editor? It's written without whitespace and assumed it doesn't contain any.
That the # of 'recent files' is 3 but there is just 1 file mentioned in the xml causes a problem with the recent files and gives an exception at startup, not about a rich text box tho.
We've added code to avoid this load error in the future to v5.2 (and merge with v5.3). We'll release a hotfix later today with that update.
I see there are panels missing, we'll look into that now.
(edit) the panels data is simply missing from the xml file. So when it's loaded back, these aren't re-created. I think this happened because some exception occurred before they could be created (so they weren't there), designer was closed (so the file was overwritten, but as the panels weren't there, their state wasn't written into the file), and next time the panels weren't there.
We'll add code to recreate them if they're missing after the deserialization of the state data so this can't happen again.
|
|
|
Scrooge
User
Location:
Joined on: 09-Oct-2017 12:38:08
Posted: 5 posts
|
Yeah sorry that was me I used the XML format plug-in in Notepad++ to review the files. There were three recent projects, I cleared them down to one. Not 100% on data leakage policy in this role so figured better safe than sorry.
|
|
|
Otis
LLBLGen Pro Team
Location: The Hague, The Netherlands
Joined on: 17-Aug-2003 18:00:36
Posted: 37632 posts
|
Scrooge wrote: |
Yeah sorry that was me I used the XML format plug-in in Notepad++ to review the files. There were three recent projects, I cleared them down to one. Not 100% on data leakage policy in this role so figured better safe than sorry. |
ah ok, that clears things up in that area. So the exception I saw was not the one you saw.
|
|
|
Scrooge
User
Location:
Joined on: 09-Oct-2017 12:38:08
Posted: 5 posts
|
My bad, I should have mentioned. /me throws spanners everywhere
|
|
|
Otis
LLBLGen Pro Team
Location: The Hague, The Netherlands
Joined on: 17-Aug-2003 18:00:36
Posted: 37632 posts
|
|
|
Otis
LLBLGen Pro Team
Location: The Hague, The Netherlands
Joined on: 17-Aug-2003 18:00:36
Posted: 37632 posts
|
A workaround has been implemented, which restores the panels with contents if they're missing.
This is available in the hotfix build for v5.2, v5.2.4, now available on the website. Will also be merged into v5.3
|
|
|