New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Windows node-jq and jq fix #72
Conversation
@@ -70,6 +70,8 @@ class Editor extends EventEmitter { | |||
|
|||
// Path to store data file so it can be read for jq (required for large input) | |||
this.tmp = path.resolve(__dirname, '..', 'tmp', 'data.json') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this needed anymore?
@@ -249,7 +251,7 @@ class Editor extends EventEmitter { | |||
fs.writeFileSync(this.tmp, JSON.stringify(this.data)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We could prob use the same tmpRelative
path here. Let's change tmpRelative
back to to tmp
though if we delete the other one.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sure
LGTM 👍 |
@MaanooAk this ended up causing it not to work on Mac. we need to find a better solution, or at least something that separates the tmp path for both operating systems. |
I have no experience with mac, I am sorry I can't help (or test)... but using the old way for mac and the new way for everything else should be easy to implement. Can you test on mac? |
@MaanooAk Yeah I will try that today. Been really busy lately so I didn't even notice. |
node-jq
v.0.5.0 now supports windowsjq
has a limit to the length of the arguments, I changed the path of the tmp file from absolute to relative (= smaller) and it works.This pr resolves all jq issues in Windows (#56 and others?)