Closed Gasman2014 closed 7 years ago
Actually there is a two dialects of OpenJsCad. First one requires to use CSG primitives, like here and another dialect from http://openjscad.org with cube/cylinder/etc functions. Support for openjscad.org dialect was added in fbc6d165.
@Gasman2014 Actually the first version / previous version stopped working on the new Atom releases. So the @apla patch solved the problem, version 0.1.0 is just this patch and doesn't support the additional dialect. I will publish a new version now, with all the commits from @apla, they're merged and they do support this dialect.
Thank you - I like Atom for a lot of things so being able to do the odd bit of OpenSCAD would be really useful.
John
On 14 Jun 2016, at 20:51, Matias Insaurralde notifications@github.com wrote:
@Gasman2014 https://github.com/Gasman2014 Actually the first version / previous version stopped working on the new Atom releases. So the @apla https://github.com/apla patch solved the problem, version 0.1.0 is just this patch and doesn't support the additional dialect. I will publish a new version now, with all the commits from @apla https://github.com/apla, they're merged and they do support this dialect.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/matiasinsaurralde/atom-scad-preview/issues/3#issuecomment-225996133, or mute the thread https://github.com/notifications/unsubscribe/AIAyuY6VjYIQZMWfxv3G4J5MPPngSzqlks5qLwZXgaJpZM4I1rAx.
@Gasman2014 any issues with a new version?
As far as I understand it, the issue is caused by non-saved new files. (and not by a dialect issue).
so the issue is: Atom-scad-preview is not able to preview a temp, never-saved file.
Once you save the file as .jscad or .js the preview then work without issue.
Now if file is not saved, you'll see message about this when you launch renderer.
[Enter steps to reproduce below:]
Atom Version: 1.8.0 System: Mac OS X 10.11.5 Thrown From: atom-scad-preview package, v0.1.0
Stack Trace
Uncaught TypeError: Not a string or buffer
Commands
Config
Installed Packages