FS#71Save fails with uncaught exception
- Type
- Bug
- Status
- Closed
- Resolution
- Not a bug
- Category
- QCAD (main)
- Severity
- High
- Priority
- Normal
- Reported version
- Development
- Operating system
- Linux (All / Other)
- Reported
- 2011-05-11 by anonymous
- Closed
- 2011-05-11 by deleted user
- New File
- Save, enter name without extension
Uncaught exception at /home/martin/workspace/rsframework/scripts/File/SaveAs/../Save/Save.js:40: TypeError: Result of expression 'di.getCorrectedFileName' [undefined] is not a function.
40 fileName = di.getCorrectedFileName(fileName, fileVersion);
Closure comment
it's "qcad-bin" now, so I started the old binary
Comments (5)
Might need a rebuild. Function 'getCorrectedFileName' should be defined in src/scripting/ecmaapi/REcmaDocumentInterface.cpp : 163
Edit: If not, the ECMA script generator might have failed there (check with svn diff src/scripting/ecmaapi/REcmaDocumentInterface.cpp)
the function is there (both cpp and header file), but still got the exception
Could it be a debug / release mix up? I.e. building the debug version, running the release version or something similar?
there are some strange warnings on the console:
it's in both, release and debug bin