Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stops Loading Models, or creating new ones #198

Open
jhsa opened this issue Jun 15, 2023 · 6 comments
Open

Stops Loading Models, or creating new ones #198

jhsa opened this issue Jun 15, 2023 · 6 comments

Comments

@jhsa
Copy link

jhsa commented Jun 15, 2023

I have installed the current latest version of LiveSpice.
Very often, it stops loading models (examples included) or even creating new schematics.
I have googled the problem and found out that deleting the "User.config" file would solve the problem.
Well, it does for some time, but then after using the app a couple times it happens again.
Thanks

@Morophla
Copy link

I have the same issue. Have you found a solution?

Thanks!

@jhsa
Copy link
Author

jhsa commented Mar 24, 2024

Nope.. As far as I know we have to delete the "User.config" file every time it happens.

@Morophla
Copy link

Oh... I don't even find a User.config file! Maybe I don't search at the right place... Where is yours?

@jhsa
Copy link
Author

jhsa commented Mar 24, 2024

I think something like this, you might have to enable "Hidden Items" to be visible on your File Explorer.

C:\Users\Your User Name\AppData\Local\LiveSPICE\LiveSPICE_Url_w5ye0vm5hlaotc22ot05vljtu3mbfnzi\1.0.0.0

Then inside the last folder you should find the user.config file.

@Morophla
Copy link

Ok! Got it! Thank you very much!

@movleax
Copy link

movleax commented Aug 27, 2024

I was experiencing this same issue.

edit:

Originally I thought there is a problem with LiveSPICE->Utils->DockingManagerExtensions.cs->SaveLayout(...), then I thought maybe it is a bug with AvalonDock...

Maybe either or is true, but I think this goes deeper with the way AvalonDock expects to be used.

All of these AvalonDock issues seem related to this LiveSPICE issue.
Dirkster99/AvalonDock#104
Dirkster99/AvalonDock#279
Dirkster99/AvalonDock#397
Dirkster99/AvalonDock#383

One of the issues, Dirkster99 suggests to look at the MLibTest project for saving and loading.

Looking at the MLibTest project, it seems this is using MVVM, events, asynchronous calls, and many-many other techniques. Whereas, I am not seeing a same architecture with LiveSPICE. I could be very wrong of course, but it's not showing an obvious 1:1 or anything close to that.

I was not able to get the MLibTest project to run, but if the author is correct, and the project does in fact save/load just fine, then maybe this could just be a case of AvalonDock expects to be used a certain way,

Furthermore, it seems that the loading code in MLibTest is using some kind of interface that will pickup the xml objects, attempt to cast/assign them into the View Models, then if there is a match, apply ContentID and other stuff to these and add to the App object's file (whatever that means).

In an effort for experimentation and digging deeper, I tried taking the example MLibTest code and massaging it into LiveSPICE. Alas, no luck.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants