Comments (3)
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.
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.
@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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cgmerger.