Comments (3)
in the same vein, trying to pipe in a gff also fails
> Get-Content module.ifo | nwn_gff -l gff -o moduletest.json
util.nim(11) readStrOrErr
Error: unhandled exception: wanted to read 16 but only got 9 [IOError]
This traces back to these lines. - Again occurred in my nwnt test and then replicates with nwn_gff.
from neverwinter.nim.
- Does this happen on Windows only, or on Linux too?
- Does this happen on win32 i386 builds of nwn_gff too?
from neverwinter.nim.
Using the downloaded win32 i386 build,
- The first error still occurs in the same way (i.e. just trying to print to the terminal)
- the second error does not occur, redirecting stdout to a file does not error
nwn_gff -i module.ifo.json -k gff > test.txt
. text.txt is not binary identical to the original module.ifo, and renaming test.txt to an test.ifo and attempting to jsonify it (or nwnt it) fails with the error:
util.nim(11) readStrOrErr
Error: unhandled exception: wanted to read 16 but only got 0 [IOError]
- Trying to pipe in the gff continues to fail with the same error as my earlier comment (wanted 16 but got 9) as opposed to trying to pipe in this output above where it's 'gets' 0.
Using the linux build, via WSL (don't have a linux box)
- different error, but still a failure
nwn_gff -i module.ifo.json -k gff
io.nim(153) raiseEIO
Error: unhandled exception: cannot retrieve file position [IOError]
-
Pushing to a file instead of stdout successfully creates a test.txt that is binary-identical to the original module.ifo.
nwn_gff -i module.ifo.json -k gff >test.txt
-
cat module.ifo | nwn_gff -l gff -o moduletest.json
also works as expected - Output json is the same as simply using-i module.ifo
Happy to accept that outputting gff to terminal (as in 1) is not actually useful, but would expect windows to act as linux for 2) and 3). I'm also a windows scrub though, so maybe I'm misunderstanding piping somewhere.
from neverwinter.nim.
Related Issues (20)
- nwn_script_comp: Too many open files
- nwn_script_comp: Allow case-insensitive script parsing HOT 3
- Script comp fails on PRC includes HOT 1
- nwn_script_comp: v1.7.1 doesn't properly utilize threads HOT 2
- nwn_script_comp: Existing but null/empty include files trigger an "ERROR: FILE NOT FOUND" when compiling the script HOT 1
- nwn_script_comp: Mismatched data type between function declaration and implementation is not properly detected
- scriptcomp: Ability to emit warnings
- nwn_script_comp: type mismatch on assignment isn't detected in non-void-main and non-starting-conditional scripts
- nwn_script_comp: Wrong error type detected upon using an unknown identifier as an if() argument
- Error when using a positive value with the + sign HOT 1
- nwn_nwsync_write throw error about size HOT 1
- scriptcomp: Avoid needless heap allocs HOT 2
- Windows releases have double ".exe.exe" extensions HOT 3
- Install Error: cannot open file: std/db_sqlite HOT 2
- nwn_script_comp: Illegal storage access
- scriptcomp: ERROR: "for" STATEMENT CANNOT BE FOLLOWED BY A NULL STATEMENT.
- nwn_script_comp: Info level logs sent to stderr instead of stdout in node HOT 6
- nwn_script_comp: Custom directories for includes doesn't seem to be supported HOT 2
- nwn_script_comp: Cannot compile an include file on its own HOT 2
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 neverwinter.nim.