← All bug reports

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
  1. New File
  2. 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);

Comments (5)

andrew 2011-05-11

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)

deleted user 2011-05-11

the function is there (both cpp and header file), but still got the exception

andrew 2011-05-11

Could it be a debug / release mix up? I.e. building the debug version, running the release version or something similar?

deleted user 2011-05-11

there are some strange warnings on the console:

Debug:    KGlobal::locale::Warning your global KLocale is being recreated with a valid main
component instead of a fake component, this usually means you tried to call i18n related functions
before your main component was created. You should not do that since it most likely will not work 
...
Debug:    kfilemodule(23528)/kio (KDirModel) KDirModelPrivate::_k_slotDeleteItems: No node found
for item that was just removed: KUrl("file:///home/martin/Documents/1line.dxf") 
deleted user 2011-05-11

it's in both, release and debug bin

Closure comment

it's "qcad-bin" now, so I started the old binary