kaosat-dev / CoffeeSCad

DISCONTINUED ! Browser based 3D solid CAD editor, Openscad style, with a Coffeescript based syntax, using only Coffeescript + Javascript
MIT License
227 stars 53 forks source link

Can't load Dropbox project in Chrome 27 or Firefox 21 on Mac OSx #126

Open iamwilhelm opened 11 years ago

iamwilhelm commented 11 years ago

I wasn't able to load the dropbox project file.

In Firefox, the project doesn't expand: screenshot_6_24_13_9_33_am

In firefox dialog:

TypeError: nodeRequire is not a function
[Break On This Error]   

var http = nodeRequire('http');

/online/ (line 44)
GET http://coffeescad.net/online/app/core/mainMenu.tmpl

304 Not Modified
        569ms   
text.js (line 287)
GET http://coffeescad.net/online/app/core/projects/projectBrowser.tmpl

304 Not Modified
        621ms   
text.js (line 287)
GET http://coffeescad.net/online/app/core/settings/settings.tmpl

304 Not Modified
        743ms   
text.js (line 287)
GET http://coffeescad.net/online/app/core/settings/settingsHeader.tmpl

304 Not Modified
        640ms   
text.js (line 287)
GET http://coffeescad.net/online/app/core/settings/settingsHeaderAll.tmpl

304 Not Modified
        562ms   
text.js (line 287)
GET http://coffeescad.net/online/app/core/settings/settingsContent.tmpl

304 Not Modified
        583ms   
text.js (line 287)
GET http://coffeescad.net/online/app/core/settings/settingsContentAll.tmpl

304 Not Modified
        662ms   
text.js (line 287)
GET http://coffeescad.net/online/app/core/projects/projectBrowser2.tmpl

304 Not Modified
        659ms   
text.js (line 287)
GET http://coffeescad.net/online/app/exporters/bomExporter/bomExporter.tmpl

304 Not Modified
        273ms   
text.js (line 287)
GET http://coffeescad.net/online/app/exporters/stlExporter/stlExporter.tmpl

304 Not Modified
        291ms   
text.js (line 287)
GET http://coffeescad.net/online/app/editors/visualEditor/visualEditorView.tmpl

304 Not Modified
        373ms   
text.js (line 287)
GET http://coffeescad.net/online/app/core/utils/dialog.tmpl

304 Not Modified
        545ms   
text.js (line 287)
GET http://coffeescad.net/online/app/editors/hierarchyEditor/hierarchyEditorView.tmpl

304 Not Modified
        532ms   
text.js (line 287)
GET http://coffeescad.net/online/app/editors/codeEditor/codeEditorView.tmpl

304 Not Modified
        484ms   
text.js (line 287)
GET http://coffeescad.net/online/app/exporters/bomExporter/bomPart.tmpl

304 Not Modified
        624ms   
text.js (line 287)
GET http://coffeescad.net/online/app/exporters/bomExporter/bomPartList.tmpl

304 Not Modified
        650ms   
text.js (line 287)
GET http://coffeescad.net/online/app/editors/codeEditor/filesTreeView.tmpl

304 Not Modified
        252ms   
text.js (line 287)
GET http://coffeescad.net/online/app/editors/codeEditor/fileTab.tmpl

304 Not Modified
        313ms   
text.js (line 287)
GET http://coffeescad.net/online/app/editors/codeEditor/filesTab.tmpl

304 Not Modified
        294ms   
text.js (line 287)
GET http://coffeescad.net/online/app/editors/codeEditor/filesList.tmpl

304 Not Modified
        329ms   
text.js (line 287)
GET http://coffeescad.net/online/app/editors/codeEditor/console.tmpl

304 Not Modified
        306ms   
text.js (line 287)
GET http://coffeescad.net/online/app/editors/codeEditor/fileCodeViewAce.tmpl

304 Not Modified
        474ms   
text.js (line 287)
GET http://coffeescad.net/online/app/core/utils/dummy.tmpl

304 Not Modified
        397ms   
text.js (line 287)
fetched lib BrowserLibrary { length=0, models=[0], _byId={...}, more...}
browserStore.js (line 95)
GET http://coffeescad.net/online/examples/examples.json

304 Not Modified
        268ms   
jquery....min.js (line 2)
before init
coffeescad.app.js (line 228)
after init
coffeescad.app.js (line 263)
app started
coffeescad.app.js (line 171)
I see app: VisualEditor has started
coffeescad.app.js (line 185)
webgl renderer
visual...View.js (line 352)
THREE.WebGLRenderer 58
three.js (line 18438)
THREE.WebGLRenderer 58
three.js (line 18438)
#FFFFFF
visual...View.js (line 881)
3dView
visual...View.js (line 1015)
starting codeEditor
coffeescad.app.js (line 177)
I see app: CodeEditor has started
coffeescad.app.js (line 185)
setting active file ProjectFile { cid="c6", changed={...}, attributes={...}, more...}
filesListView.js (line 229)
starting hierarchyEditor
coffeescad.app.js (line 177)
I see app: HierarchyEditor has started
coffeescad.app.js (line 185)
starting project manager
projectManager.js (line 339)
"NetworkError: 500 Internal Server Error - http://coffeescad.net/online/falsedefault/style.css"
style.css
"NetworkError: 500 Internal Server Error - http://coffeescad.net/online/assets/css/style/img/glyphicons-halflings.png"
glyphi...ngs.png
"NetworkError: 500 Internal Server Error - http://coffeescad.net/online/assets/css/style/img/glyphicons-halflings-white.png"
glyphi...ite.png
options
projec...iew2.js (line 57)
load
projec...iew2.js (line 58)
getting projects from DropboxStore
projec...iew2.js (line 391)
getting projects from browserStore
projec...iew2.js (line 391)
browser store projects null storeURI projects
browserStore.js (line 115)
localStorage 1 item in Storage appCloseOk="true"
browserStore.js (line 516)
projects (an empty string)

In Chrome, I can't select the project names. screenshot_6_24_13_9_35_am

In chrome, the console log are:

Uncaught TypeError: Property 'nodeRequire' of object [object Object] is not a function coffeescad.net/:44
fetched lib 
BrowserLibrary {length: 0, models: Array[0], _byId: Object, _byCid: Object, localStorage: Backbone.LocalStorage.window.Store…}
 browserStore.js:95
before init coffeescad.app.js:228
failed to parse setting: TypeError: undefined is not a function settings.js:52
after init coffeescad.app.js:263
app started coffeescad.app.js:171
I see app: VisualEditor has started coffeescad.app.js:185
webgl renderer visualEditorView.js:352
THREE.WebGLRenderer 58 three.js:18438
THREE.WebGLRenderer 58 three.js:18438
#363335 visualEditorView.js:881
3dView visualEditorView.js:1015
starting codeEditor coffeescad.app.js:177
I see app: CodeEditor has started coffeescad.app.js:185
setting active file 
ProjectFile {destroy: function, save: function, _onIsActiveChanged: function, _onSaved: function, _onContentChanged: function…}
 filesListView.js:229
starting hierarchyEditor coffeescad.app.js:177
I see app: HierarchyEditor has started coffeescad.app.js:185
starting project manager projectManager.js:339
GET http://coffeescad.net/online/assets/css/style/img/glyphicons-halflings.png 500 (Internal Server Error) jquery-1.8.1.min.js:2
GET http://coffeescad.net/online/assets/js/libs/ace/theme-default.js 500 (Internal Server Error) ace.js:4652
GET http://coffeescad.net/online/assets/css/style/img/glyphicons-halflings-white.png 500 (Internal Server Error) /online/assets/css/style/img/glyphicons-halflings-white.png:1
options projectBrowseView2.js:57
load projectBrowseView2.js:58
getting projects from DropboxStore projectBrowseView2.js:391
getting projects from browserStore projectBrowseView2.js:391
browser store projects null storeURI projects browserStore.js:115
localStorage 
Storage {Settings: "General,KeyBindings,VisualEditor,CodeEditor,HierarchyEditor", Settings-CodeEditor: "{"name":"CodeEditor","title":"Code editor","theme"…arn"},"no_trailing_semicolons":{"level":"warn"}}}", Settings-General: "{"name":"General","title":"General","csgCompileMod…":false,"autoSaveFrequency":30,"theme":"default"}", Settings-HierarchyEditor: "{"name":"HierarchyEditor","title":"Hierarchy Editor"}", Settings-KeyBindings: "{"name":"KeyBindings","title":"Key Bindings"}"…}
 browserStore.js:516
projects  browserStore.js:530
kaosat-dev commented 11 years ago

Thanks for the detailed bug report Will ! This will be fixed very soon!