question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

outputDirectory lost on reload (override non functional)

See original GitHub issue

Not sure if it’s just me. I’ll check on a separate PC tonight to verify and report back. But on latest version from nuget I’m no longer able to override the default directory.

Sequence is as follows:

  1. In the .efmodel designer -> click on any entity
  2. Choose a path from the dropdown in [outputDirectory] property
  3. Save the .efmodel
  4. Notice the file does not exist where specified
  5. Check the still open .efmodel designer, and property is there as you had it.
  6. Close the designer.
  7. Edit the .efmodel in raw text editor, property “outputDirectory=” is present and valid.
  8. reopen the designer.
  9. Property has suddenly disappeared from table, and the .efmodel raw text reflects the lack of property.

It seems reloading the efmodel causes the outputDirectory property to be physically deleted from the table’s serialized properties in xml. And the save operation does not produce the file properly. Furthermore the xml file indicates a isOutputDirectoryTracking value of false, which based on source code grep scan for assignment, appears to indicate that the string value is NULL during serialization. Which may explain why it’s dropped when deserialized back to C#. Guessing here, but not sure why it would be null, and yet present in the xml serialized output?

Anyone else experiencing this as well by chance?

Edit: Can confirm:

  • happens on multiple environments
  • fresh install win 10 and vstudio 2019 enterprise & latest version(1.3.0.12)
  • Recreated efmodel from scratch to confirm

Doesn’t appear to be asymptomatic, but not sure what’s wrong. Let me know any thoughts, and thank you!!! This product makes a major difference in the projects my team works on

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
msawczyncommented, Feb 18, 2020

Thank you both; I’ve got a bead on this one and it’ll be fixed in the upcoming release. I owe you a beer!

1reaction
msawczyncommented, Feb 8, 2020

Glad to hear I can make a contribution to you and your team’s lives being a little easier. But regarding what you’re seeing … hard to say. What you describe (and you’ve dug deeper than I normally hope for in a problem report) shouldn’t be able to happen.

If you get a moment, you might try 2.0RC1 to see if it exhibits the same behavior. Note that, as of this release, it won’t work with VS2017 so, if that’s your environment, it won’t be something that will help. I have yet to update the docs, so the new features aren’t fully described, but they’re pretty self-explanatory and listed in the changelog in the main readme both here and on the Marketplace.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Provider State is lost on hot reload - flutter
The problem comes from the navigator, the state is lost when the browser refresh. The workaround is to save the state with Hive...
Read more >
How to allow wget to overwrite files - linux
Another possibility: curl -O overwrites (but it uses a different way of choosing the file name, which may or may not matter to...
Read more >
Configuration
A guide to configuring and customizing your Tailwind installation.
Read more >
CopyWebpackPlugin
If you want to copy files in directory you need use dir option. We try to automatically determine the type so you most...
Read more >
dotnet restore command - .NET CLI
Learn how to restore dependencies and project-specific tools with the dotnet restore command.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found