Author Topic: beta4, python import autolist problem  (Read 217 times)

rowbearto

  • Senior Community Member
  • Posts: 1868
  • Hero Points: 121
beta4, python import autolist problem
« on: September 18, 2020, 04:25:58 pm »
I have 1 python file that I import that has may different functions and classes, lets call this "import_file.py" import_file.py is in my python project.

When I import that in another python file and then type:

Code: [Select]
import_file.
After typing the dot I do see a list of functions that are in that file, but typing any characters for this doesn't highlight anything.

Furthermore if I use the mouse to double-click an entry, it doesn't get chosen and the box just stays there.

If you can't reproduce on your own then I can create a package for you.

patrick

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 1467
  • Hero Points: 131
Re: beta4, python import autolist problem
« Reply #1 on: September 18, 2020, 05:23:29 pm »
Do you have any stacks in your configuration_dir/25.0.0/logs/stack.log?  I can't reproduce this or the paren highlighting problem, and both sound like they could be caused by one of the workhorse timers being killed.

rowbearto

  • Senior Community Member
  • Posts: 1868
  • Hero Points: 121
Re: beta4, python import autolist problem
« Reply #2 on: September 18, 2020, 05:35:53 pm »
Uploaded my stack.log to support. There is 1 stack from today.

rowbearto

  • Senior Community Member
  • Posts: 1868
  • Hero Points: 121
Re: beta4, python import autolist problem
« Reply #3 on: September 18, 2020, 05:37:09 pm »
After a restart of beta4 both these issues are gone.

patrick

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 1467
  • Hero Points: 131
Re: beta4, python import autolist problem
« Reply #4 on: September 18, 2020, 06:49:43 pm »
Yeah, that stack looks like the culprit.  I'll take a look at it.

rowbearto

  • Senior Community Member
  • Posts: 1868
  • Hero Points: 121
Re: beta4, python import autolist problem
« Reply #5 on: September 18, 2020, 06:59:04 pm »
From the log that stack looks like it occurred with 25.0.0.3, soon before I upgraded to beta4.

rowbearto

  • Senior Community Member
  • Posts: 1868
  • Hero Points: 121
Re: beta4, python import autolist problem
« Reply #6 on: September 18, 2020, 07:00:13 pm »
Well that stack.log shows 25.0.0.3 but the timestamp is after I posted the first issue, so maybe stack log is printing the wrong version?

patrick

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 1467
  • Hero Points: 131
Re: beta4, python import autolist problem
« Reply #7 on: September 18, 2020, 07:11:56 pm »
No, I think you're right about it being before you put beta 4 on, I misread the date.  And I was looking too far up in the file anyway.  The version should always match what's in Help -> About.  Unless def-use-timer was set to 0 (very unlikely), the timer should be restarted the next time you start SlickEdit, so I don't think a stack from a previous editing session could have done that.

I would have expected a stack logged for something anything that could kill a timer.  It could be I'm wrong about it being a timer, or just a bug that doesn't crash, but something else made the timer not get rescheduled.  Not as easy as I thought, I need to look a little closer at the code that drives those two features.