Giter VIP home page Giter VIP logo

Comments (8)

rplzzz avatar rplzzz commented on May 30, 2024

Hmm. This is an easy fix in unix (including Mac OS X), but it turns out to be a real pain to come up with a solution that works on Windows also. I can implement a partial solution that:

  • On unix: checks whether or not the log directory exists, if not attempts to create it, and throws an exception on error (including failing to create the file in a directory that exists)
  • On windows: throws an error if it fails to create the file (but makes not attempt to fix obvious problems and offers no diagnosis).

Will that suit?

from hector.

bpbond avatar bpbond commented on May 30, 2024

I have no problem with Windows being a second-class citizen. Yes, on *nix machines, we auto-create if possible; on Windows, just error out. Sounds good.

from hector.

rplzzz avatar rplzzz commented on May 30, 2024

Pull request incoming. I'll leave the PR open for a day or so in case someone wants to test the windows behavior; otherwise, if nobody objects, I'll accept it myself, since it's a small change.

from hector.

bpbond avatar bpbond commented on May 30, 2024

Thanks!

from hector.

cahartin avatar cahartin commented on May 30, 2024

Windows VS doesn't recognize this:
#include <unistd.h>
Error: can not include unistd.h no such file or directory

is there something else I need to do?

from hector.

rplzzz avatar rplzzz commented on May 30, 2024

Hmm. Windows isn't supposed to process that line. Evidently it's not defining the _WIN32 macro. Let me figure out what it does define to indicate that the build is happening under windows.

from hector.

cahartin avatar cahartin commented on May 30, 2024

for now I just have it commented out.

from hector.

rplzzz avatar rplzzz commented on May 30, 2024

Try the winfix branch. I've tested it on linux, but we will need to test it on OS X as well as windows before we merge it (since this deals specifically with cross-platform issues, it really does need to be tested on each platform individually).

from hector.

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.