[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;

[RESOLVED] PluginManager.EnablePlugin() crashes Webuilder

Postby pmk65 » Sat Apr 16, 2016 1:47 am

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
pmk65
 
Posts: 678
Joined: Sun Dec 20, 2009 9:58 pm
Location: Copenhagen, Denmark

Re: Bug: PluginManager.EnablePlugin() crashes Webuilder

Postby Aivars » Mon Apr 18, 2016 11:28 am

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

Re: Bug: PluginManager.EnablePlugin() crashes Webuilder

Postby Aivars » Mon Apr 18, 2016 7:27 pm

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
Aivars
Blumentals Software Developer
 
Posts: 2456
Joined: Thu Aug 22, 2002 1:40 pm
Location: Latvia

Re: Bug: PluginManager.EnablePlugin() crashes Webuilder

Postby pmk65 » Mon Apr 18, 2016 8:05 pm

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
pmk65
 
Posts: 678
Joined: Sun Dec 20, 2009 9:58 pm
Location: Copenhagen, Denmark

Re: Bug: PluginManager.EnablePlugin() crashes Webuilder

Postby Aivars » Mon Apr 18, 2016 10:31 pm

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: 2456
Joined: Thu Aug 22, 2002 1:40 pm
Location: Latvia

Re: Bug: PluginManager.EnablePlugin() crashes Webuilder

Postby Aivars » Tue Apr 19, 2016 7:20 pm

The issue has been fixed in the newest build.
Blumentals Software Programmer
User avatar
Aivars
Blumentals Software Developer
 
Posts: 2456
Joined: Thu Aug 22, 2002 1:40 pm
Location: Latvia


Return to HTMLPad / Rapid CSS / Rapid PHP / WeBuilder Support

Who is online

Users browsing this forum: No registered users and 8 guests