Code Monkey home page Code Monkey logo

Comments (7)

maxamel avatar maxamel commented on July 22, 2024

I will be glad to do it.
I think I'll try to return to the structure of this method as we had in the beginning.
It looked ugly but seemed to work for me. I'll submit a pull request soon.

from rtree.

davidmoten avatar davidmoten commented on July 22, 2024

I wonder why it didn't work for me? What OS do you use? I'm on Linux.

from rtree.

maxamel avatar maxamel commented on July 22, 2024

I'm on Windows 8. Do you think there's a connection? I thought it could be a Java version issue.
But then the tests shouldn't have failed. We should've seen compilation errors.

from rtree.

davidmoten avatar davidmoten commented on July 22, 2024

So the OS might explain things because ImageIO.save calls native file routines.

from rtree.

davidmoten avatar davidmoten commented on July 22, 2024

Whatever you come up with,test it locally and it works submit a PR and Travis will automatically test your PR on linux. By the way when you submit a PR do it from a branch rather than master. Tis a convention. If you can't be bothered of course we can always get cobertura to ignore the ImageIO.save.

from rtree.

maxamel avatar maxamel commented on July 22, 2024

I've done some research on this. On linux locking files is advisory. This means it doesn't really prevent processes to access locked files. It's like a flag. If other processes don't cooperate with a process that locked a file, and don't check the file status it's useless. We need to change the "save" file for this. Meaning, check if the file is locked, if it is - throw an exception. This exception would be caught in our test. But it's up to you to decide if you want to go that way.

from rtree.

davidmoten avatar davidmoten commented on July 22, 2024

So I guess that means that running code coverage on linux we won't get 100%
because the branch from ImageIO.save that throws an IOException will never
get traversed. Thanks for looking at it, that's educational for me. I
reckon we run with the coverage exclusion that's commited now and call it a
job well done. Thanks for all the assistance on this one.

On 12 November 2014 18:47, maxamel [email protected] wrote:

I've done some research on this. On linux locking files is advisory. This
means it doesn't really prevent processes to access locked files. It's like
a flag. If other processes don't cooperate with a process that locked a
file, and don't check the file status it's useless. We need to change the
"save" file for this. Meaning, check if the file is locked, if not - throw
an exception. This exception would be caught in our test. But it's up to
you to decide if you want to go that way.


Reply to this email directly or view it on GitHub
#15 (comment).

from rtree.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.