-
-
Notifications
You must be signed in to change notification settings - Fork 158
Different dotnet tool run jb cleanupcode results locally and on appveyor #1104
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
Comments
Hi @ThomasBarnekow, sad to hear you're struggling with this. I'm using Visual Studio 2019 with Resharper on Windows 10 and @maurei uses Rider on Mac. We use the command-line runners regularly and have not experienced this problem. I can't think of a reason that explains this. What AppVeyor reports is the style we use. Some tips that might help:
|
Hi @bart-degreed, I am also using Visual Studio 2019 with ReSharper on Windows 10. I used the PowerShell script, which installed the jb tool. After that, it was also able to directly run the If the command disables any other settings layer and only uses the "solution team shared" part of the settings, I also don't understand how this happens. I can tell you that both Visual Studio and the command line produce the exact same result, which is in line with how I tend to lay out long parameter lists. Thus, is it possible that certain settings are not ignored? |
I don't know, could be a bug. Try resetting to the defaults. |
I think I've been successful with the following command, which I tried on just one file:
Note the It seems that your settings are silent on how long parameter lists are laid out while I have a non-disabled global setting that specifies how this is done. This is applied by ReSharper and leads to the difference. Not disabling that setting looks like a "bug" in your original command. To fix this, you should simply disable I have also successfully used the following command, which does not specify the settings explicitly but only excludes the relevant settings and implicitly leaves
|
Thanks for sorting this out, I've created a PR to fix this. |
DESCRIPTION
The results of the following build tool are much different on my local machine and the appveyor build server:
On the build server, the expected formatting is this:
When run locally on my machine, the above code is reformatted as follows (which is in line with what it looked like before and what was rejected by the build server):
This has lead to build failures in #1103.
STEPS TO REPRODUCE
Run the above command line on those or other files.
EXPECTED BEHAVIOR
Both locally and on appveyor, the expected code format is identical. When using ReSharper in Visual Studio, the code cleanup creates the expected code format.
If I had a choice, the second format (which is produced by ReSharper using the "JADNC Full Cleanup" on my local machine but unfortunately rejected on appveyor) is the expected format.
ACTUAL BEHAVIOR
When run locally and on appveyor, the above command produces different results, leading to unexpected build failures.
VERSIONS USED
nosql-resource-service
branch off ofmaster
The text was updated successfully, but these errors were encountered: