Giter Club home page Giter Club logo

Comments (3)

ajakubo1 avatar ajakubo1 commented on August 23, 2024

Is there any chance you can provide me with an example .zip file with the problematic structure so I can replicate it easily? Unless it's like something common. I didn't notice using clauses being duplicated in the example I think (although - to tell you the truth - I didn't test it out with two separate .cs files, I just assumed it works exactly as it does on a python project).

Do remember that this file for C# settings https://github.com/ajakubo1/CGMerger/blob/main/templates/default-csharp/cgmerger.conf is quite important. especially this part, that is matching those using lines:

exclude_line_regex = ^using

or by manually running cgmerge.py --exclude-line-regex ^using

from cgmerger.

ajakubo1 avatar ajakubo1 commented on August 23, 2024

Ok, so we analyzed with @Nerwosolek the situation a bit and it turns out that the whole problem is that I open the file without specified encryption and visual studio is adding to all of the files something called BOM https://en.wikipedia.org/wiki/Byte_order_mark - which is completely screwing with the regex (first using is not filtered out). I already have a fix for it and I will create a PR and merge it in a sec.

from cgmerger.

ajakubo1 avatar ajakubo1 commented on August 23, 2024

@Nerwosolek - can you confirm that my fix works?

pull the latest changes (lookout though, the templates are gone - I will create another repo for them) and run pip3 install <cgmerger folder>. You will be then able to use the command locally from command line. Just run cgmerger in terminal.

from cgmerger.

Related Issues (8)

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.