Giter Site home page Giter Site logo

Comments (17)

cezarypiatek avatar cezarypiatek commented on June 11, 2024

Ad1. I need to check that, can you provide a sample solution?
Ad2. "Implement Clone metho" - I don't provide such functionality. You probably confused MappingGenerator with something else.

from mappinggenerator.

bdaniel7 avatar bdaniel7 commented on June 11, 2024

Ad2. In the project wiki there is a paragraph

  • Generate ICloneable interface implementation - with a gif.

from mappinggenerator.

bdaniel7 avatar bdaniel7 commented on June 11, 2024

I added this project https://github.com/bdaniel7/MappingGeneratorTest

So if there is a ":" right after the class name, like when derived or implementing an interface, the Implement clone method menu doesn't appear.
If there is a space between class name and ":", the menu appears.

And Initialize with local values menu appears but doesn't generate anything,
Initialize with sample values menu appears and generates the dummy values.

from mappinggenerator.

cezarypiatek avatar cezarypiatek commented on June 11, 2024

Oh, sorry. I totally forgot that I implemented this clone-related feature 😄

Thanks for a sample solution, I will check that later and I will let you know.

from mappinggenerator.

cezarypiatek avatar cezarypiatek commented on June 11, 2024

I don't see any problem with "Implement clone" options, works fine in any "space" configuration.

5eAmDaeUDq

Tested on Rider 2020.2.1
image

You can also trigger this action directly on the clone method signature:

AYemK47BZP

from mappinggenerator.

cezarypiatek avatar cezarypiatek commented on June 11, 2024

"Initialize with local values" - this action is using only local variables and method parameters. It's not using enclosing type members. This is the current behavior.

from mappinggenerator.

bdaniel7 avatar bdaniel7 commented on June 11, 2024

Ok, I'm getting the menu when I have the cursor on the class name. Previously I had the cursor just at the end of class name.
But when I try to invoke the action, the IDE freezes. I have to close it from Task Manager. I'm using Rider 2020.2.4

from mappinggenerator.

cezarypiatek avatar cezarypiatek commented on June 11, 2024

How large is your solution and how complex is the cloned class?

from mappinggenerator.

bdaniel7 avatar bdaniel7 commented on June 11, 2024

Some classes have around 750 lines, including curly braces and empty lines. Other classes have 45 or 75 lines, with just 2 to 10 properties. And some IEquatable<> implementation.

from mappinggenerator.

cezarypiatek avatar cezarypiatek commented on June 11, 2024

does it hang on that sample solution too?

from mappinggenerator.

bdaniel7 avatar bdaniel7 commented on June 11, 2024

Nope.

from mappinggenerator.

cezarypiatek avatar cezarypiatek commented on June 11, 2024

So I guess this is due to solution size. This problem is already reported here #115

I tried to profile MappinGenerator several times but I wasn't able to find anything suspicions. Without real example I'm not able to diagnose this problem.

There are a few async operations which are run synchronously, I need to rewrite it and we will see if that can help.

from mappinggenerator.

bdaniel7 avatar bdaniel7 commented on June 11, 2024

Alright, in the meantime I will try a workaround.

from mappinggenerator.

cezarypiatek avatar cezarypiatek commented on June 11, 2024

@bdaniel7 might I ask you to test it once again using v1.19.452?

from mappinggenerator.

bdaniel7 avatar bdaniel7 commented on June 11, 2024

First, the compilation for the entire solution became waaay slower - when using dotnet watch run.
Even when just a file is modified.
Which makes the CPU and the fans go crazy...
Then, I got all kinds of warnings that I didn't get before, and that I had to disable with VSTHRD200,VSTHRD103,VSTHRD002,VSTHRD110,VSTHRD003.

from mappinggenerator.

cezarypiatek avatar cezarypiatek commented on June 11, 2024

Thanks for quick reply. It's my mistake, the analyzers were referenced incorrectly, should be fixed in v1.19.454

from mappinggenerator.

cezarypiatek avatar cezarypiatek commented on June 11, 2024

I'm closing this issue. The case with performance can be tracked here #115

from mappinggenerator.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.