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

See #524. Added support for methodchain setting in prettydiff. #594

Merged
merged 2 commits into from
Nov 2, 2015
Merged

See #524. Added support for methodchain setting in prettydiff. #594

merged 2 commits into from
Nov 2, 2015

Conversation

hayatae
Copy link
Contributor

@hayatae hayatae commented Oct 8, 2015

This is to help address #524 and #591. It looks like the docs were a bit out of date when I ran coffee /docs, so there's some extra clang-format support noted in there that's unrelated to this change.

@hayatae
Copy link
Contributor Author

hayatae commented Oct 8, 2015

Whoops, I see that a unit test needs to be updated for the new setting. I'll get that fixed and do another request.

@hayatae
Copy link
Contributor Author

hayatae commented Oct 9, 2015

Oh great. Now the CI tests failed because they couldn't download atom from atom.io. Can someone with permission re-run the CI tests?

@Glavin001
Copy link
Owner

I restarted both CIs.

@hayatae
Copy link
Contributor Author

hayatae commented Oct 9, 2015

Thanks! Not sure why appveyor failed when it reported 0 failures though:
Finished in 16.949 seconds
54 tests, 194 assertions, 0 failures, 0 skipped
Tests failed
Command exited with code 1

On a related question, how do you run tests locally? I tried running apm test in the package root, but I get a whole bunch of errors that look like:
[57512:1009/010335:INFO:CONSOLE(410)] "Could not resolve 'language-svg' to a package path", source: /usr/share/atom/resources/app.asar/src/package-manager.js (410)

@Glavin001
Copy link
Owner

Running tests locally takes a little work. You have to install everything, including specific Atom packages (such as language-svg as you noted above), and third-party beautifiers with Operating System specific installation instructions, and then run all of the tests for every language and their default supported beautifier. It takes Travis CI under 5 minutes to do all of that.
You can take a look at https://github.com/Glavin001/atom-beautify/blob/master/.travis.yml#L19-L55 and https://github.com/Glavin001/atom-beautify/blob/master/build-package.sh to understand how Travis CI does the tests.

@Glavin001 Glavin001 added this to the v0.29.0 milestone Nov 2, 2015
@Glavin001 Glavin001 self-assigned this Nov 2, 2015
@Glavin001 Glavin001 merged commit dc641c4 into Glavin001:master Nov 2, 2015
@Glavin001
Copy link
Owner

Thank you for contributing!

@zachguo
Copy link

zachguo commented Nov 8, 2015

Is this in latest release (0.28.16)? I didn't check break_chained_methods, but it's still breaking method chains in JSX.

@hayatae
Copy link
Contributor Author

hayatae commented Nov 8, 2015

Unfortunately this didn't make it into 28.16. We'll have to wait for the next release. It looks like there's some other major issues going on with prettydiff right now which also need to be fixed though. I still can't use atom-beautify on my jsx files right now. :<

@Glavin001
Copy link
Owner

Published to v0.28.17

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants