Skip to content
This repository has been archived by the owner on Jan 13, 2025. It is now read-only.

Add support for java.nio.file package #47

Merged
merged 3 commits into from
Oct 29, 2019
Merged

Add support for java.nio.file package #47

merged 3 commits into from
Oct 29, 2019

Conversation

quelgar
Copy link
Contributor

@quelgar quelgar commented Aug 27, 2019

Still very much WIP!. Quite a lot of stuff still to fix up.

This is now in decent shape. No tests yet, however.

@pshemass
Copy link
Collaborator

pshemass commented Sep 23, 2019

@quelgar do you need help with this?

maybe we could split this in smaller releasable pieces?

@quelgar
Copy link
Contributor Author

quelgar commented Sep 24, 2019

Yeah, this was quite a bit bigger than I anticipated. I’ll push my latest changes, then perhaps we can merge and people can pick up items to work on. I think I have covered pretty much everything, but I haven’t tested much, so there’s likely more work needed. Also needs tests to be written.

@quelgar quelgar force-pushed the add-file-package branch 2 times, most recently from 17a157b to dad3d1b Compare September 29, 2019 06:46
@pshemass
Copy link
Collaborator

pshemass commented Oct 7, 2019

@quelgar it looks like compilation is failing for 2.13 because of JavaConverters deprecation. Please look into that and let me know if you are able to fix this.

@quelgar
Copy link
Contributor Author

quelgar commented Oct 7, 2019

@quelgar it looks like compilation is failing for 2.13 because of JavaConverters deprecation. Please look into that and let me know if you are able to fix this.

Yep. I was planning on fixing it with a simple wrapper with 2.12 and 2.13 variants. I've struggled a bit with the tooling for cross-building. Neither IntelliJ or Metals seem to let you pick a different Scala version, looks like I have to temporarily change build.sbt and reload everything.

@pshemass
Copy link
Collaborator

pshemass commented Oct 8, 2019

@mijicd do you know how to handle this?

@mijicd
Copy link
Member

mijicd commented Oct 8, 2019

@pshemass quick & dirty fix is to use silencer (we did it in core for collection issues). I will follow up on the issue over the weekend and see if there's a better way.

@quelgar
Copy link
Contributor Author

quelgar commented Oct 27, 2019

Ok, I've rebased, silenced the JavaConverters warnings under 2.13, fixed the mdoc code.

Still haven't written many tests, I'm afraid.

@quelgar quelgar marked this pull request as ready for review October 27, 2019 11:46
@pshemass
Copy link
Collaborator

@quelgar could you list here tests that you want to add I can write some?

@mijicd
Copy link
Member

mijicd commented Oct 28, 2019 via email

Most of the functionality is wrapped. Some APIs that aren't
friendly to functional effects are not wrapped, such as the file
copy methods using Java input and output streams. Perhaps a reasonable
wrapper API can be found for these in future.

Very little in the way of tests yet.

The silencer plugin is used to silence warnings about JavaConverters
being deprecated, so we can support 2.13 without tedious indirection.
@quelgar
Copy link
Contributor Author

quelgar commented Oct 29, 2019

It would be great to have tests for the more complex stuff, like the directory listing/walking stuff in zio.nio.file.Files that returns ZStream. The attribute stuff in that class is also a little involved.

Probably better to do hackathon work on a new branch, so I'd vote we merge this one now.

@mijicd
Copy link
Member

mijicd commented Oct 29, 2019

Let's merge it then, but, if possible, could you open the test issues and add them to the hackathon board?

@quelgar
Copy link
Contributor Author

quelgar commented Oct 29, 2019

Done, issue #100

@quelgar quelgar merged commit 4f6085d into master Oct 29, 2019
@quelgar quelgar deleted the add-file-package branch February 15, 2020 14:07
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants