#9053 closed defect (worksforme)
debug log does not list macro load error
Reported by: | Owned by: | ||
---|---|---|---|
Priority: | low | Milestone: | |
Component: | general | Version: | 0.11.7 |
Severity: | minor | Keywords: | log macro bitesized |
Cc: | Thijs Triemstra | Branch: | |
Release Notes: | |||
API Changes: | |||
Internal Changes: |
Description
observed behaviour: wikipage gives "Error: Failed to load processor XXX, No macro or processor named 'XXX' found", when trying to use macro XXX. The errorlog, in DEBUG level, only mentions "Loading file plugin XXX…".
expected behaviour: when an error like this is shown on the wikipage, more details about the error can be found in the log file.
Context I'm trying to get the Anchor macro to work in 0.11.7, and I moved it to the environments plugins directory, with 777 and www-data user, but to no avail. The log file is not helping, while I think it should. (note that version 0.11.7 is not in the version popup)
Attachments (0)
Change History (10)
comment:1 by , 15 years ago
Keywords: | bitesized added |
---|
comment:2 by , 13 years ago
Version: | → 0.11.7 |
---|
comment:3 by , 13 years ago
Cc: | added |
---|---|
Keywords: | needinfo added |
comment:4 by , 13 years ago
Milestone: | next-minor-0.12.x |
---|---|
Resolution: | → worksforme |
Status: | new → closed |
I think we added some logging code in 0.12.x, in particular, the traceback when loading plugins. To the OP, please reopen if you can reproduce the issue with 0.12.x.
comment:5 by , 13 years ago
Keywords: | needinfo removed |
---|
comment:6 by , 12 years ago
I'm using trac 0.12.x version and trying to integrate addcommentmacro. Here is the exception that I'm getting. Any help would be appreciated. Thanks in advance
2012-07-02 15:03:58,032 Trac[formatter] ERROR: Macro AddComment(None) failed: Traceback (most recent call last): File "build\bdist.win32\egg\trac\wiki\formatter.py", line 720, in _macro_formatter return macro.process(args, in_paragraph=True) File "build\bdist.win32\egg\trac\wiki\formatter.py", line 304, in process text = self.processor(text) File "build\bdist.win32\egg\trac\wiki\formatter.py", line 291, in _macro_processor text) File "build\bdist.win32\egg\trac\wiki\macros.py", line 68, in expand_macro raise NotImplementedError NotImplementedError: 2012-07-02 15:03:58,033 Trac[formatter] DEBUG: Executing Wiki macro AddComment by provider <addcomment.macro.AddCommentMacro object at 0x0A6265F0> 2012-07-02 15:03:58,033 Trac[formatter] ERROR: Macro AddComment(None) failed: Traceback (most recent call last): File "build\bdist.win32\egg\trac\wiki\formatter.py", line 720, in _macro_formatter return macro.process(args, in_paragraph=True) File "build\bdist.win32\egg\trac\wiki\formatter.py", line 304, in process text = self.processor(text) File "build\bdist.win32\egg\trac\wiki\formatter.py", line 291, in _macro_processor text) File "build\bdist.win32\egg\trac\wiki\macros.py", line 68, in expand_macro raise NotImplementedError NotImplementedError:
comment:8 by , 12 years ago
Resolution: | worksforme |
---|---|
Status: | closed → reopened |
follow-up: 11 comment:9 by , 12 years ago
Resolution: | → worksforme |
---|---|
Status: | reopened → closed |
Your issue is a PluginIssue. Please don't reopen for it, please ask on the MailingList and / or IrcChannel.
comment:10 by , 12 years ago
More specifically, the macro you are trying to run doesn't override expand_macro()
. I looked at the code of th:AddCommentMacro, and the 0.11 version does have that method. Did you happen to install an earlier version (0.10 and earlier don't have the method)?
Anyway, please follow-up on the MailingList or IrcChannel. Thank you.
comment:11 by , 12 years ago
Replying to jomae:
Your issue is a PluginIssue. Please don't reopen for it, please ask on the MailingList and / or IrcChannel.
Sorry about reopening the ticket, I was not aware of MailingList. Thanks
I'm not able to reproduce this with 0.12 or 0.13.
A macro with a syntax-error gets logged:
Macro with unimplemented
expand_macro
:And another syntax error:
Looks more like a permissions problem?