bugWeeChat - Bugs: bug #20023, set_plugin_config doesn't work...

 
 

bug #20023: set_plugin_config doesn't work after python script reload

Submitted by:  FORT Yannick <spider312>
Submitted on:  Thu 31 May 2007 05:01:17 PM UTC  
 
Category: pluginsSeverity: 3 - Normal
Item Group: commandStatus: Works For Me
Privacy: PublicAssigned to: Sebastien Helleu <flashcode>
Originator Name: Open/Closed: Closed
Release: 0.2.5IRC nick: 

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Thu 09 Aug 2007 09:40:13 AM UTC, comment #4:

Unfortunately, I can't reproduce this bug here. Is it possible to have an account on your machine to debug problem ? Thank you.

Sebastien Helleu <flashcode>
Project AdministratorIn charge of this item.
Sun 22 Jul 2007 11:23:56 AM UTC, comment #3:

I only tested with /python unload + load or /python reload, but i just tested with /plugin unload python then /plugin load python, and the bug is the same

FORT Yannick <spider312>
Wed 13 Jun 2007 12:10:55 PM UTC, comment #2:

It's not reproductible here. What command do you use to remove Python scripts ? /python unload or /plugin unload python ?
Anyway I tried both, all is ok here...

Please contact me by IRC if it's possible to have account on your machine to test problem. Thank you.

Sebastien Helleu <flashcode>
Project AdministratorIn charge of this item.
Thu 31 May 2007 05:14:23 PM UTC, comment #1:

i forgotten to say that using /setp on python.clonescan.* has the same result : no error, but no effects

FORT Yannick <spider312>
Thu 31 May 2007 05:01:17 PM UTC, original submission:

(untested with other plugins than python)

code revealing the bug :

if weechat.register(SCRIPT_NAME, SCRIPT_VERSION, "unload", SCRIPT_DESC):
setting = weechat.set_plugin_config("test","test")
weechat.prnt("Result of configuration testing (set) : "+str(setting))
if ( weechat.get_plugin_config("test") != "test" ):
weechat.prnt("Error while trying to access configuration, bug in weechat")
else:
weechat.set_plugin_config("test","") # unset

result on first load :
[18:56:42] -P- Result of configuration testing (set) : 1

result on second load :
[18:59:59] -P- Result of configuration testing (set) : 1
[18:59:59] -P- Error while trying to access configuration, bug in weechat

unloading/loading only the script or the python plugin have the same effect

FORT Yannick <spider312>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

Attached Files
file #13428:  clonescan.py added by spider312 (13KiB - text/x-python - I add current version of my script that reveal the "bug", try load/unload/load id, if it says "Error while trying to access configuration, bug in weechat", you're in it)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by flashcode (Updated the item)
  • -unavailable- added by spider312 (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 8 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sun 06 Sep 2009 07:06:41 PM UTCflashcodeOpen/ClosedOpen=>Closed
      ReleaseNone=>0.2.5
    Mon 13 Aug 2007 07:50:11 AM UTCflashcodeStatusIn Progress=>Works For Me
    Thu 09 Aug 2007 09:40:13 AM UTCflashcodeStatusNone=>In Progress
      Assigned toNone=>flashcode
    Sun 22 Jul 2007 11:28:36 AM UTCspider312Attached File-=>Added clonescan.py, #13428
    Fri 01 Jun 2007 11:51:09 AM UTCflashcodeCategoryNone=>plugins
      Item GroupNone=>command

    Back to the top


    Powered by Savane 3.1-cleanup1