Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Agilent MH12 method export #1344

Merged
merged 32 commits into from
Nov 29, 2023
Merged

Conversation

kaipot
Copy link
Contributor

@kaipot kaipot commented Dec 7, 2020

No description provided.

@kaipot kaipot self-assigned this Dec 7, 2020
Copy link
Contributor

@brendanx67 brendanx67 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we just make it so that the project in Executables uses the copy of the DLLs in the Methods folder to avoid having two copies? I think you should be able to make the project point at the other DLLs with a relative path containing ..\ parent folder navigation. Then the build system should be able to copy the DLLs from there.

@kaipot kaipot changed the title Agilent Ultivo method Agilent MH12 method export Jan 12, 2023
@rita-gwen rita-gwen merged commit f17d5a0 into master Nov 29, 2023
@chambm
Copy link
Member

chambm commented Nov 29, 2023

@rita-gwen This PR changed every line of Resources.resx:
13,859 additions, 13,850 deletions not shown because the diff is too large. Please use a local Git client to view these changes.
Line endings I guess? Since it's already merged I'm not sure what the best path forwards is. @nickshulman What do you think?

@nickshulman
Copy link
Contributor

I wonder why these line ending changes happen to Rita more than to anyone else.
The only thing that I have noticed which causes the line endings to switch to Unix is when I do a "Rename" using ReSharper.

By the way, if you want to see how much space a particular version of a file is taking up inside of the packfile, I think there is some information about how to use "git verify-pack" to do that here:
https://git-scm.com/book/en/v2/Git-Internals-Packfiles

@chambm
Copy link
Member

chambm commented Nov 29, 2023

So moving forward probably just a simple PR to revert the line ending changes? Otherwise every other PR that touches Resources.resx has to due a huge conflict resolution.

@nickshulman
Copy link
Contributor

Yes, a separate PR to fix the line endings sounds like a good idea.
Merge conflicts caused by line ending changes are usually not that bad. The github website has no idea how to handle them, but if you resolve the conflicts using TortoiseMerge, it usually handles it automatically and tells you that there are no conflicts.

@rita-gwen
Copy link
Contributor

rita-gwen commented Nov 29, 2023 via email

@rita-gwen
Copy link
Contributor

This is my global git config:

[core]
        autocrlf = true
        whitespace = cr-at-eol

@chambm
Copy link
Member

chambm commented Nov 29, 2023

The Github showing the whole file difference is the cue to look for that you had already committed the file with a line endings change. (You can also see it in the number of lines added and removed in the git status or TortoiseGit commit changes window.) I think TGit and git use the same core settings, so it's probably VS changing them. I also use autocrlf=true.

@rita-gwen
Copy link
Contributor

Actually, I'm looking at Resources.resx before and after this commit and I do not see line ending differences. They both are all CR/LF.

@nickshulman
Copy link
Contributor

Actually, I'm looking at Resources.resx before and after this commit and I do not see line ending differences. They both are all CR/LF.

In order to be able to see the line ending differences in the history, you need to turn off "AutoCrLf" in the git settings before you do the checkout.
I will forward you a copy of the "How to examine the line endings in files in the repository" email from last year.
When AutoCrLf is turned off the Tortoise diff will look like this, where there are different sorts of arrow characters at the end of the lines in the left and right panes.
image

@chambm
Copy link
Member

chambm commented Nov 29, 2023

TortoiseGit's "Show unified diff" can for some reason show the whitespace changes without changing autocrlf:
pwiz_tools/Skyline/Properties/Resources.resx | 23748 +++++++++++++------------
1 file changed, 11877 insertions(+), 11871 deletions(-)

diff --git a/pwiz_tools/Skyline/Properties/Resources.resx b/pwiz_tools/Skyline/Properties/Resources.resx
index a5bd6b724..a72b5805c 100644
--- a/pwiz_tools/Skyline/Properties/Resources.resx
+++ b/pwiz_tools/Skyline/Properties/Resources.resx
@@ -1,11871 +1,11877 @@

I'm guessing this got messed up when Kaipo did a merge from master with the wrong autocrlf setting, because I don't see any non-merge commits on this branch that make so many changes to Resources.resx.

@rita-gwen
Copy link
Contributor

No, there are just few lines of change.
This is the PR: #2794
Could you guys have a quick look before I merge it. Looks right to me, but just to be sure.

@rita-gwen
Copy link
Contributor

So, next time I see this dialog pop out should I just press OK and change everything to CR/LF?

@rita-gwen
Copy link
Contributor

Thank you, guys, appreciate your help with this!

@nickshulman nickshulman deleted the Skyline/work/20201207_agilent_ultivo branch March 28, 2024 23:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants