[RESOLVED] PluginManager.EnablePlugin() crashes Webuilder

Post your questions and problem reports here

Moderator: kfury77

Forum rules
Please try to follow these guidelines. This will help to receive faster and more accurate response.
  • Check the Support section of the corresponding product first. Chances are you will find your answer there;
  • Do not create new topics for already reported problems. Add your comments to the existing topics instead;
  • Create separate topic for each problem request. Do NOT post a number of non-related problem reports in a single topic;
  • Give your topic a meaningful title. Titles such as "A question," "Bug report" and "Help!" provide others no clue what your message is about;
  • Include the version number of the software you are using;
  • This is not an official customer support helpdesk. If you need a prompt and official response, please contact our support team directly instead. It may take a while until you receive a reply in the forum;
Post Reply
User avatar
pmk65
Posts: 678
Joined: Sun Dec 20, 2009 9:58 pm
Location: Copenhagen, Denmark

[RESOLVED] PluginManager.EnablePlugin() crashes Webuilder

Post by pmk65 »

When a plugin is enabled using PluginManager.EnablePlugin() and there's an error in the code (like a missing bracket), WeBuilder crashes. with a "List index out of bounds (4)" exception message.
To reproduce the error, install my DevMode plugin and write a buggy plugin and save it :D

When fixing the bug, would it be possible to get the PluginManager.EnablePlugin() to return the error from the enabled plugin?
(I just love that function :D :D )
Last edited by pmk65 on Tue Apr 19, 2016 9:25 pm, edited 1 time in total.
There are 10 types of people in the world: Those who understand binary and those who don't.
User avatar
Aivars
Blumentals Software Developer
Posts: 2462
Joined: Thu Aug 22, 2002 1:40 pm
Location: Latvia

Re: Bug: PluginManager.EnablePlugin() crashes Webuilder

Post by Aivars »

I'll take a look and try to fix this in the next update.
Blumentals Software Programmer
User avatar
Aivars
Blumentals Software Developer
Posts: 2462
Joined: Thu Aug 22, 2002 1:40 pm
Location: Latvia

Re: Bug: PluginManager.EnablePlugin() crashes Webuilder

Post by Aivars »

I wasn't able to reproduce this. In fact, if I disable notices in the DevMode plugin, it will show the compiler error message in the Messages panel, otherwise

Code: Select all

Script.Message("DevMode: Plugin \"" + name + "\" auto disabled/enabled");
hides it. If you can reproduce the issue whenever you can, either e-mail the bugreport or show me the screenshot of the 1st 2 tabs of the crash window.
Blumentals Software Programmer
User avatar
pmk65
Posts: 678
Joined: Sun Dec 20, 2009 9:58 pm
Location: Copenhagen, Denmark

Re: Bug: PluginManager.EnablePlugin() crashes Webuilder

Post by pmk65 »

I used my new Node-Sass plugin as test case and removed all other plugins except that and the DevMode plugin.

And it still crashes if the 2nd plugin has errors. No matter if the notice is hidden or not. (I have sent a bug report from the WeBuilder error panel now)
There are 10 types of people in the world: Those who understand binary and those who don't.
User avatar
Aivars
Blumentals Software Developer
Posts: 2462
Joined: Thu Aug 22, 2002 1:40 pm
Location: Latvia

Re: Bug: PluginManager.EnablePlugin() crashes Webuilder

Post by Aivars »

For some reason I haven't received it, can you upload/paste it online and PM me the link?
Blumentals Software Programmer
User avatar
Aivars
Blumentals Software Developer
Posts: 2462
Joined: Thu Aug 22, 2002 1:40 pm
Location: Latvia

Re: Bug: PluginManager.EnablePlugin() crashes Webuilder

Post by Aivars »

The issue has been fixed in the newest build.
Blumentals Software Programmer
Post Reply