Issue 115703 - Silent error in python scripting engine
Summary: Silent error in python scripting engine
Alias: None
Product: General
Classification: Code
Component: scripting (show other issues)
Version: OOo 3.3 RC3
Hardware: PC Windows XP
: P3 Trivial (vote)
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
Keywords: needhelp
Depends on:
Reported: 2010-11-21 16:00 UTC by bmarcelly
Modified: 2014-03-04 11:18 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Note You need to log in before you can comment on or make changes to this issue.
Description bmarcelly 2010-11-21 16:00:24 UTC
1) Create in OOo user data a sub-folder /Scripts/python/

2) Modify to enable the logging of errors:
# Configuration ----------------------------------------------------
#LogLevel.use = LogLevel.NONE                # production level
LogLevel.use = LogLevel.ERROR               # for script developers
#LogLevel.use = LogLevel.DEBUG               # for script framework developers
LOG_STDOUT = False                           # True, writes to stdout (difficult
on windows)
                                            # False, writes to

3) Open
   Menu Tools > Macros > Execute macro
   Then click then Cancel button

4) Look at the file log.txt in user folder /Scripts/python/
You will see an error message like this one:

Sun Nov 21 16:52:42 2010 [ERROR] DirBrowseNode error: Unable to create Content!
 while evaluating
Sun Nov 21 16:52:42 2010 [ERROR] <class
''>: Unable to create
  C:\Program Files\ 3\Basis\program\ in
function getChildNodes() [contents = self.provCtx.sfa.getFolderContents(
self.rootUrl, True )]

This does not prevent scripts to run, but it is very disturbing when you are
debugging your own scripts.
Comment 1 ab 2010-11-30 10:40:48 UTC
ab->jbu: Please have a look
Comment 2 Rob Weir 2013-07-30 02:44:50 UTC
Reset assignee on issues not touched by assignee in more than 1000 days.