Comments (8)
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.
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.
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.
Thanks!
from hector.
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.
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.
for now I just have it commented out.
from hector.
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)
- Memory leak / other memory issues HOT 2
- Consolidate GA files? HOT 3
- DOECLIM variables & time series HOT 5
- Documentation v3 push HOT 5
- Input parameters in a centralized CSV HOT 4
- Zeroes getting returned from fetchvars HOT 4
- Build V3 Documentation
- Atmospheric CO2 returning high values HOT 5
- unitval::unitsName() needs unit testing
- Remove cout calls from ocean_csys - lines 162-177 HOT 4
- Two-pool soil model
- multiple-biomes.Rmd fails HOT 2
- Add to Hector publications
- Hector crashing with various NBP constraints HOT 1
- Pre-commit hook or test for C++ code formatting? HOT 2
- NPP reduction from LUC fluxes, again
- Interpolation behavior HOT 5
- clang-format shouldn't touch rcpp files!
- Automate the input_params and output tables HOT 1
- Increasing CO2 under 0 NBP constraint HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hector.