What steps will reproduce the problem? 1. Download one stencil, the Dojo one is fine. 2. Try to install it in 1.1.1
What is the expected output? What do you see instead? The stencil is not installed. It gives "TypeError: collection is undefined"
What version of the product are you using? On what operating system? I'm using Firefox 3.5.6 on Ubuntu 9.10 on PPC
None of the stencil collections workd. I have tried to create my own collection and it does not work either and gives the same error.
Comment #1
Posted on Jan 19, 2010 by Quick RabbitIssue reproduced on my machine: all collections fail when installing, with the error message described by Antoni.
I'm using Ubuntu 9.10 Intel 32bits and Firefox 3.6rc2
Comment #2
Posted on Feb 9, 2010 by Helpful Birdi'm having the same issue. any workarounds?
Comment #3
Posted on Feb 17, 2010 by Happy RhinoI'm getting this error as well.
Pencil 1.1-rc2 (from the download link, although the About page say 1.1 "build 1")
Ubuntu 9.10
Firefox 3.6
Comment #4
Posted on Apr 20, 2010 by Massive Catsame here, ubuntu 9.10, ff 3.5.9 pencil 1.1 build 1
Something to do with xulrunner??
Comment #5
Posted on Jul 28, 2010 by Grumpy Elephantsame here, ubuntu 10.04 64bit, ff 3.6.7, pencil 1.2. ubuntu/linux problem? all reporters are running ubuntu/linux
Comment #6
Posted on Jul 28, 2010 by Happy GiraffeI have installed the new version, removed the old stencils and have the error "TypeError: collection is undefined"
Ubuntu Linux 10.05 64 bits ff 3.6.8 and pencil 1.2
Comment #7
Posted on Jul 28, 2010 by Swift Wombati just tryed the stencils installation on windows xp, sp3 with ff 3.6.8 and pencil 1.2 and everything works. so it seems to be really issue of linux/ubuntu only.
Comment #8
Posted on Sep 8, 2010 by Helpful RhinoSame here. It's now more than a month later than the last message. Linux Mepis (Debian) with standalone Pencil. Any light?
Comment #9
Posted on Sep 8, 2010 by Happy LionSame here, on Ubuntu 10.04. ff 3.6.9.pre and pencil 1.2
Comment #10
Posted on Sep 13, 2010 by Swift DogSame here. 10.04 + ff 3.6.9 + p 1.2
Comment #11
Posted on Sep 27, 2010 by Quick RabbitHate to say it, but same here:
Ubuntu 10.04 + ff 3.6.10 + pencil 1.2
Comment #12
Posted on Oct 6, 2010 by Massive Bearsame here. ubuntu 10.04 firefox 3.6 pencil 1.2
Comment #13
Posted on Oct 12, 2010 by Grumpy HippoI was able to get this to work for the FlowChart.
First create a directory like ~/.mozilla/firefox/.default/extensions/pencil@evolus.vn/chrome/content/Stencil/FlowChart/ .
Put the contents of FlowChart_v8.zip into that directory.
Modify the file CollectionManager.js file in ~/.mozilla/firefox/.default/extensions/pencil@evolus.vn/chrome/content/Definition/
to include the line: CollectionManager.addShapeDefCollection(parser.parseURL("../Stencil/FlowChart/Definition.xml"));
after the line
CollectionManager.addShapeDefCollection(parser.parseURL("../Stencil/SketchyGUI/Definition.xml"));
Start firefox and it should work.
Comment #14
Posted on Nov 8, 2010 by Helpful CatI have found a workaround.
In the file ~/.mozilla/firefox/[YOUR PROFILE]/extensions/pencil@evolus.vn/chrome/content/Definition/ShapeDefCollectionParser.js replace
ShapeDefCollectionParser.prototype.injectEntityDefs = function (content, file) {
//getting the current local
var locale = Config.getLocale();
var dtdFile = file.parent.clone();
dtdFile.append(locale + ".dtd");
if (!dtdFile.exists()) {
dtdFile = file.parent.clone();
dtdFile.append("default.dtd");
if (!dtdFile.exists()) {
dtdFile = file.parent.clone();
dtdFile.append("en-US.dtd");
if (!dtdFile.exists()) {
return content;
}
}
}
var dtdContent = FileIO.read(dtdFile, ShapeDefCollectionParser.CHARSET);
var doctypeContent = "<!DOCTYPE Shapes [\n" + dtdContent + "\n]>\n";
content = content.replace(/(<Shapes)/, function (zero, one) {
return doctypeContent + one;
});
return content;
};
BY
ShapeDefCollectionParser.prototype.injectEntityDefs = function (content, file) {
return content;
};
You can import collections after restarting firefox and pencil.
regards
Comment #15
Posted on Nov 10, 2010 by Swift BearDidier's fix worked for me, though I'm concerned about what I've deleted.
Thanks!
Comment #16
Posted on Nov 11, 2010 by Quick BirdDidier's fix didn't work for me. After the change and restarting Pencil, when doing Tools->Install new collection..., I get an "Error installing collection" error: "Collection specification is not found in the archive. The file may be corrupted".
Pencil 1.2 build 0, Firefox 3.6.10, on Ubuntu 10.04.
Comment #17
Posted on Nov 11, 2010 by Helpful Cat@evanleibovitch my modification bypass the addition of the dtd to the collection definition xml file. @hajotka Sorry if it doesn't work for you. Could you give me the link for your collection ?
Comment #18
Posted on Nov 12, 2010 by Quick Bird@didier: I'm trying to install the Android UI prototyping stencils available at http://code.google.com/p/android-ui-utils/
Comment #19
Posted on Nov 12, 2010 by Helpful Cat@hajotka : which collection did you try ?
android-pencil-stencil-basic_0.1.zip and android-pencil-stencil-frame_0.1.zip are valid collection but android-icon-templates_0.1.zip it's not a collection. I get the same message as you if I try to load it. Isn't that the problem ?
Comment #20
Posted on Nov 14, 2010 by Happy CatDidier's solution works for me too. Ubuntu 9.04 kernel: 2.6.28-19-generic Firefox: 3.6.11 Pencil 1.2
Very, very good tool!
Thank you very much from Argentina Javier
Comment #21
Posted on Dec 7, 2010 by Helpful BirdUsing openSUSE 11.3 x86_64 (kernel 2.6.34.7-0.5-desktop) and Firefox 3.6.12 with Pencil 1.2.0, Didier's solution works for me too. Thanks Didier :-)
Regards, Werner
Comment #22
Posted on Jan 23, 2011 by Helpful CatDidiers solution works for me as well. Thanks!
Comment #23
Posted on Mar 17, 2011 by Helpful WombatSame issue with Ubuntu 10.10 + Firefox 3.6.15. The Didier's hack solve the problem.
Comment #24
Posted on Apr 21, 2011 by Helpful GiraffeThe root of the issue seems to be getLocale in Config.js. Attached is a patch that addresses the issue without having to alter ShapeDefCollectionParser.prototype.injectEntityDefs.
Comment #25
Posted on May 19, 2011 by Happy ElephantThanks a lot! Patch just worked like a charm, yoohoo :)
Pencil v1.2build0 standalone Debian Squeeze stable Templates v2.0
Comment #26
Posted on Jun 7, 2011 by Happy LionSorry, for a stupid question, but how can I apply this patch?
Pencil v1.2.0 firefox extension Ubuntu 11.04 Firefox 4.0
Comment #27
Posted on Aug 24, 2011 by Massive Monkey@didier's solution worked for me on Debian unstable with the standalone version of Pencil. Thanks mate!
Comment #28
Posted on Sep 8, 2011 by Grumpy RabbitUnfortunately @didier's fix didn't work for me because I haven't got a file called "ShapeDefCollectionParser.js"
Ubuntu 11.04 Firefox 6.0.2 Pencil v.1.2.26
And what do I do with the patch provided above if I haven't got any file "Config.js" in my system?...
Cheers
Comment #29
Posted on Sep 18, 2011 by Happy CatApplied patch from comment #24 on a standalone debian testing/unstable installation, pencil 1.2.0 and worked fine.
Comment #30
Posted on Sep 21, 2011 by Quick Camelpatch from comment 24 works for me on ubuntu against pencil 1.2.0.
Comment #31
Posted on Jan 8, 2012 by Swift CatHow do I install the patch? I am using Windows XP with the standalone .exe setup of Pencil.
Comment #32
Posted on Jan 15, 2012 by Quick OxHow do I apply this patch in standalone mac?
Comment #33
Posted on Jan 16, 2012 by Swift RhinoHi, I am trying in Windows 7 and I can't intall any of the Stencils available in this page http://pencil.evolus.vn/en-US/Downloads/Stencils.aspx
Comment #34
Posted on Jan 17, 2012 by Swift Rhino(No comment was entered for this change.)
Comment #35
Posted on Jan 19, 2012 by Helpful CatHi, same problem here. Running Window 7 downloaded Stand alone version 1.3.4. Can't get any of the Stencils runing under the latest version. Help would be great! Thanks, BigMatt
Comment #36
Posted on Apr 4, 2012 by Massive Monkeydoes it generate the xml like droiddraw ? if not how do I add my UI design by pencil in my xml?
Comment #37
Posted on Apr 14, 2012 by Massive WombatThe problem stencil is available but hidden. At some point you clicked the x in the top right corner, thus closing that collection. Right-click within the Collections window and select Show Hidden Collections. You will find them all there.
Comment #38
Posted on Oct 7, 2013 by Massive RhinoWhat steps will reproduce the problem? 1. Download one stencil, the Dojo one is fine. 2. Try to install it in Pencil 2.05
What is the expected output? What do you see instead? The stencil is not installed. It gives "Error installing collection".
A similar error message is known if I try to install an already-installed Template by "Tools / Manage Export Template…", button "Install New Template…", where it is right.
Here such error message is not right, as there is no name conflict, if a Stencil is not yet installed, or installed manually.
What version of the product are you using? On what operating system? I'm using the standalone version of Pencil 2.05 on Win7 ( I got Firefox 22 installed, with which the Firefox plugin does no work )
A workaround is to install the stencils manually: 1. Extract the archives in ”/Pencil/Stencils” directory. 2. For the standolone (xulrunner) version: By example, on win7 by default: ”%USERPROFILE%\AppData\Roaming\Pencil\Profiles{your-profile-name}\Pencil\Stencils” 3. For the Firefox extension version: By example, on win7 by default: ”%USERPROFILE%\AppData\Roaming\Mozilla\Firefox\Profiles{your-profile-name}\Pencil\Stencils” 4. Each Stencil has its own a directory in this directory, with a “Definition.xml” file (and some other optional files). By example: ”[…]\Pencil\Stencils\ExtJs.GUI_v11\Definition.xml”. ”[…]\Pencil\Stencils\ExtJs.GUI_v11\Icons[…]”.
Comment #39
Posted on Nov 19, 2013 by Massive MonkeyHi, I'm in the same situation as Rolf. I have exported a collection form Pencil (Firefox add-on) and tried to import it in Pencil stand alone, and I have got this message "Error installing collection" without any details. But I have successfully import "iOS Wireframe" for exemple…
Status: Fixed
Labels:
Type-Defect
Priority-Medium