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

Convert to PPXlib #68

Merged
merged 5 commits into from
Apr 3, 2021
Merged

Convert to PPXlib #68

merged 5 commits into from
Apr 3, 2021

Conversation

anmonteiro
Copy link
Member

This PR converts decco to use ppxlib. The conversion is straightforward. I structured it into 2 commits:

  1. 0ffda3c upgrades the esy dependencies in ppx_src/package.json and commits the esy lockfile directory
  2. 229b04d upgrades the PPX to use ppxlib.

Note that, while we're building the PPX with OCaml 4.12, it works well with a current ReScript compiler (on 4.06) – ppxlib does the heavy lifting here.

Test plan

npm test passes.

@ryb73
Copy link
Member

ryb73 commented Apr 2, 2021

Hey @anmonteiro thanks for the PR! Looking at it now.

I've noticed that Travis hasn't been picking up new PRs/branches for build. I think it may be because the repo was added to the reasonml-labs org? I sent a request to the org for Travis to access this repo, let me know if you see that request and/or are able to get Travis builds working for the org/repo. Thanks!

@anmonteiro anmonteiro force-pushed the anmonteiro/convert-to-ppxlib branch from 229b04d to 2a8ff66 Compare April 2, 2021 23:24
@anmonteiro
Copy link
Member Author

Done

Copy link
Member

@ryb73 ryb73 left a comment

Choose a reason for hiding this comment

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

LGTM, looks like you might need to update a file path somewhere for Travis to approve it

Comment on lines 15 to 16
/* |> (v) => Location.Error(v) */
/* |> raise; */
Copy link
Member

Choose a reason for hiding this comment

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

Is Location.raise_errorf equivalent to the previous code? Is it necessary to keep this commented code around?

Copy link
Member Author

Choose a reason for hiding this comment

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

it is. I don't know why I kept it!

@anmonteiro
Copy link
Member Author

Thanks @ryb73, I just fixed the CI build and addressed your comments.

@ryb73 ryb73 merged commit 4dc4bfe into master Apr 3, 2021
@ryb73 ryb73 deleted the anmonteiro/convert-to-ppxlib branch April 3, 2021 00:46
@ryb73
Copy link
Member

ryb73 commented Apr 3, 2021

Thanks @anmonteiro !

@@ -12,7 +13,7 @@ script:
- yarn build-ppx
- yarn build-lib
- npm test
- mv ppx_src/_esy/default/build/default/.ppx/ppx_decco/ppx.exe ppx-$TRAVIS_OS_NAME.exe
- mv ppx_src/_esy/default/build/install/default/lib/ppx_decco/ppx.exe ppx-$TRAVIS_OS_NAME.exe
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm not sure this is correct, when I tried building it that ppx.exe is a symlink.

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.

3 participants