apla / atom-jscad

Previewing (J)SCAD 3D models inside Atom.
MIT License
29 stars 9 forks source link

Uncaught [object DOMException] when including relative path on Windows #8

Closed nazsolti closed 4 years ago

nazsolti commented 7 years ago

I'm getting this error when I include a file in the same directory as the main with: include('polygons.jscad')

The console's output:

C:\Users\hunagzso\AppData\Local\atom.atom\packages\atom-jscad\lib\atom-scad-preview-view.js:139 adding subscription Object {path: "/Users/hunagzso/Google Drive/3D Print New/Spigot/polygons.jscad", filename: "polygons.jscad"}

95b91bf9-ba87-4144-b0cd-83e90453cede:45 /Users/hunagzso/Google Drive/3D Print New/Spigot/polygons.jscad(/Users/hunagzso/Google Drive/3D Print New/Spigot/, polygons.jscad)

/Users/hunagzso/Google%20Drive/3D%20Print%20New/Spigot/polygons.jscad:1 GET file:///Users/hunagzso/Google%20Drive/3D%20Print%20New/Spigot/polygons.jscad net::ERR_FILE_NOT_FOUND

Seems like it doesn't specify the drive letter at very beginning for the GET. If I provide the full absolute path including the drive letter, the include works.

I'm using Atom 1.17.0 on Windows 10.