Modify

Opened 3 years ago

Closed 3 years ago

Last modified 10 months ago

#9551 closed defect (fixed)

Error: Macro TracJSGanttChart(sample=1) failed %d format: a number is required, not unicode

Reported by: pbruch Owned by: ChrisNelson
Priority: high Component: TracJsGanttPlugin
Severity: blocker Keywords:
Cc: rjollos Trac Release: 0.12

Description

When I install the jsGantt plugin as described in the wiki and try the example

[[TracJSGanttChart(sample=1)]]

it results in the following error message:

Error: Macro TracJSGanttChart(sample=1) failed
%d format: a number is required, not unicode 

Here is my log trace:

DEBUG: Executing Wiki macro TracJSGanttChart by provider  tracjsgantt.tracjsgantt.TracJSGanttChart object at 0x7f761c14dbd0>
ERROR: Macro TracJSGanttChart(sample=1) failed: 
    text += 'var '+self.GanttID+' = new JSGantt.GanttChart("'+self.GanttID+'",document.getElementById("GanttChartDIV_'+self.GanttID+'"), "%s", "%d");\n' % (javascript_quote(format), showdep)

Environment: debian6, Babel0.9.5, trac0.12.2

How can I fix this????

Peter

Attachments (0)

Change History (6)

comment:1 Changed 3 years ago by pbruch

  • Priority changed from normal to high

comment:2 Changed 3 years ago by ChrisNelson

  • Status changed from new to assigned

comment:3 Changed 3 years ago by ChrisNelson

(In [10928]) Don't try to use %d for a string. Refs #9551.

comment:4 Changed 3 years ago by anonymous

  • Resolution set to fixed
  • Status changed from assigned to closed

thanks, it works now..

comment:5 Changed 3 years ago by rjollos

  • Cc rjollos added

comment:6 Changed 10 months ago by rjollos

#9514 closed as a duplicate.

Add Comment

Modify Ticket

Action
as closed The owner will remain ChrisNelson.
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.