-
Notifications
You must be signed in to change notification settings - Fork 306
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
Remove Scalariform from process-sources phase #210
Remove Scalariform from process-sources phase #210
Conversation
All automated tests passed. |
Can you also update the CONTRIBUTING.md with info how to run it? |
Good call - done. |
This is odd. When I run |
What are the particular differences? I was running into behavior similar to that but thought it was a peculiarity to my setup. |
It also seems like running it manually ignores all the configuration options in pom.xml? |
All automated tests passed. |
How are you running it manually? mvn process-sources? |
This special ID tells Maven to use this configuration when running from the command line.
Interesting. Apparently we needed this special id to get Maven to use the configuration tags if it was run from the command line, and not as part of an existing phase. |
Things are looking better now. I'll send a snippet of code to drop in |
All automated tests passed. |
@fnothaft Previously it was part of the process-sources phase, but we discussed in IRC making it run manually. So the instructions I wrote used Maven's syntax for executing a specific plugin. However, due to some Maven peculiarity, this won't use the <configuration> parameters, unless it also has a <id>default-cli</id> tag in the <execution> section. |
@nealsid ah, right. Thanks for the clarification! |
@nealsid Can you add this test for Jenkins?
|
Added. Thanks, @massie |
Refer to this link for build results: https://amplab.cs.berkeley.edu/jenkins/job/ADAM-prb/270/ |
Jenkins, test this please. |
Refer to this link for build results: https://amplab.cs.berkeley.edu/jenkins/job/ADAM-prb/271/ |
Jenkins, test this please. |
All automated tests passed. |
This looks good to me. I'll wait to merge until we hear from someone else. @heuermh, This change will keep scalariform from running at compile time (it needs to be run explicitly from the commandline) and adds a Jenkins check to the pull request builder. Does that approach make sense to you or do you have recommendations for other ways to handle this? |
@massie Running on demand and with a Jenkins check sounds reasonable to me. My gripe with the settings & changes made in commit b320f02 were just about the setting that adds whitespace in the middle of a line
Does anyone actually type code that way? I knew a guy once who formatted his variable names that way and well that is not a story for public github comments. :) Thanks for letting me voice a opinion, even though I'm not actually a core ADAM developer. |
@heuermh I generally prefer to format case/switch/match statements like that. I think you may find that this varies a bit across language backgrounds; I spent a lot of time as a hardware developer (using Verilog), and that inline whitespace is standard style. IMO, for match statements, it makes it a lot easier to tell the differences between the cases you are matching to. I don't feel terribly strongly one way or the other, but I don't think this formatting is terribly unusual. |
…fixes Remove Scalariform from process-sources phase
Thanks, Neal! |
We discussed on IRC that we shouldn't do this as part of the build.
You can run it like so: