-
Notifications
You must be signed in to change notification settings - Fork 520
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
OpenJSCAD throws fs.js error under node.js 7.0.0 #198
Comments
@mrsimicsak Thanks for the information. There's a major re-organization happening now. Do you think this is important enough for making a patch to 0.5.2? |
The short answer is I don't know. Scrolling through the Google+ group it seems like I am one of the few (only) people using the command line version which limits the impact of the problem. I tried applying the same fix to the old copy I have running on node v0.10.23 and it didn't break it, so it doesn't seem like backwards compatibility would be an issue. I would tend toward releasing a patch, mostly out of concern about new users. The other alternative is to add a known issue comment linking to this issue, and then fix it in the next release. |
@mrsimicsak did you also try under one of the LTS versions of Node ? |
@kaosat-dev I ended up on version 7.0.0 by installing node and npm and then installing 'n' and running 'sudo n stable'. I actually wasn't aware that there were LTS versions of node. Using 'n' to install the LTS version I ended up with version 6.9.2. reverting my change, and running openjscad again I don't have the problem. I just tried node 7.2.1 and the problem exists in that version as well. Based on this nodejs/node#7165 it looks like a change introduced in 7.0.0. |
@mrsimicsak thanks for the infos ! |
@mrsimicsak this should be completely fixed, as we have node 7.x as part of the tests on TravisCI, could you please check if it works for you ? |
After installing node v7.10.0 via nvm and the latest cli using the instructions on the github repo page, everything appears to be working fine. |
Ok great , thanks @mrsimicsak ! Closing this, will reopen if needed |
When running OpenJSCAD from the command line under node.js 7.0.0 the following error is thrown:
note: this is after applying the suggested fix in issue: #197.
Removing the
0,
at the end of line 261 inopenjscad
fixes the problem.I suspect this is caused by a node API change because the exact same line works in node v0.10.23, but I haven't been able to find when the API changed.
OpenJSCAD version:
~/OpenJSCAD.org$ git show
commit ea91305
Merge: 8269eff 1b94f54
Author: Z3 Development z3-dev@gfnews.net
Date: Sun Sep 11 11:08:52 2016 +0900
node version:
~/OpenJSCAD.org$ node -v v7.0.0
Ubuntu version:
~/OpenJSCAD.org$ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 14.04.3 LTS Release: 14.04 Codename: trusty
The text was updated successfully, but these errors were encountered: