how to use the from trait automatically multiple times
hi there!

i have multiple errortypes combined into an error enum inside a module of my project:

#[derive(debug)]

pub enum moduleerror {

a(dependencyerrora),

b(internalerror),

}

impl from<dependencyerrora> for moduleerror {

fn from(error: dependencyerrora) -> self {

modulee…
as long as you write down the hierarchy manually, there’s certainly the possibility to simplify such transitive from implementations with a macro. [i’ve written one here, feel free to take a look.](https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&gist=337cce675aa28e99ac030ca783c1c155) going even further one could try to use procedural macros with global state that uses annotations on the…
I have the same problem and added this to the DbContext:



```
private void PrintStackTrace()
{
  var st = new StackTrace();
  foreach (var sf in st.GetFrames())
    Console.WriteLine($"{sf.GetMethod().DeclaringType.Assembly.GetName().Name} {sf.GetMethod().DeclaringType.Name} {sf.GetMethod().Name}");
}

```

and call this function in the contructor and Dispose of the DbContext.


It seems to be a problem, if the DbContext is added with scoped lifetime to the dependency injection. I filed an issue for that.


<https://github.com/aspnet/EntityFrameworkCore/issues/10693> never mind, finally solved it. i called this.engine.runrenderloop while it’s already running, therefore causing the speed to run twice, because it added a loop/callback the 2nd time.

all i need to do for the ‘resume’ part of my function is to always call this.engine.stoprenderloop() before i call t… hi [@justusschl](/u/justusschl),

there is some import/export option for labels in debug mode, however i would not recommend to use it.

what you are trying to do should involve as little manual labor as possible (source of errors). i thought about it a bit and found something that could work. did you know the .ilp … [image] dueck456:

is there an easy way to detect when new code is flashed to the device so i can reinitialize the retained variables?

below is a link to a post by [@rickkas7](/u/rickkas7) about storing retained data in a struct.

[image] dueck456:

saving a know value to eeprom jumps to mind

there is … hi,we have no formal “copy file type and template” from environment test to prod.this is what i’ve done hundreds of times.assuming you created a new file type or copied an existing template. - do this same process in prod (or the other environment), ideally keep the same name and description - just keeps things clean.then update the tabs so the file separator and date formant is the same. if you created any external file template controls update this as well,finally, - in the file template details, i delete all records in the new prod, and then use the copy / past object to copy the details from test to prod. rather than analyzing to see what’s different in the details between test and prod, if we know test works, i would typically delete the details and copy object from test to prod.if you had any formula in test you can manually copy these as well. it’s a few steps, but it only takes a couple minutes. best regards,thomas yes, you can using a module.

you might have seen examples of module where a only a symbol is given, e.g. from the docs:

data = mx.sym.variable('data')

fc1 = mx.sym.fullyconnected(data, name='fc1', num\_hidden=128)

act1 = mx.sym.activation(fc1, name='relu1', act\_type="relu")

fc2 = mx.sym.fullyconn… >>when I compile, there are no errors,  

Ditch the compiler and use a different one. There is a link error.



>>void print ()



Wrong. should be `void testClass::print ()` the compiler will throw the following errors:  


10: error: increment of read-only variable **k**,  


12: error: **lvalue** required as increment operand. method a.increment() overlaps in class b.   
 therefore, regardless of the type of the variable obj, will be called the method corresponding to the actual type of the object - that is, b.increment().  
 
this method will use the variable i, declared in the same class b and having an initial value of 10.  
 
the resulting value - 11. [image] andrei:

a quick fix is to comment the line in the "on message" tab for the function node that is troubled

when you add a module in "setup", the "import as" name is made available to the function tabs...

[image]

... so you dont need to declare it nor do you need to set/get it from co…