Author Topic: File path too long for dialog box  (Read 1184 times)

rjpontefract

  • Senior Community Member
  • Posts: 250
  • Hero Points: 10
File path too long for dialog box
« on: January 13, 2021, 09:25:56 PM »
SE 25.0.1.0 on macOS, I tried to jump to the definition of a symbol and was shown the attached dialog which is not overly helpful. Any chance SE could abbreviate the path so that it always shows the filename?

Dennis

  • Senior Community Member
  • Posts: 3966
  • Hero Points: 517
Re: File path too long for dialog box
« Reply #1 on: January 14, 2021, 09:27:51 PM »
Try this experimental hot fix.  It's pretty primitive, but if it works well for you, I'll integrate it.

rjpontefract

  • Senior Community Member
  • Posts: 250
  • Hero Points: 10
Re: File path too long for dialog box
« Reply #2 on: January 14, 2021, 09:31:51 PM »
Hi Dennis
It's just not going well for me today :-)
Any idea why I would see the attached error when I try to load the hot fix?
Cheers
Rick

Dennis

  • Senior Community Member
  • Posts: 3966
  • Hero Points: 517
Re: File path too long for dialog box
« Reply #3 on: January 14, 2021, 09:52:20 PM »
Timing.  You must have downloaded just before I replaced it with the fixed version.  Download it again and give it another shot.

rjpontefract

  • Senior Community Member
  • Posts: 250
  • Hero Points: 10
Re: File path too long for dialog box
« Reply #4 on: January 14, 2021, 10:06:33 PM »
Thanks, the new hot fix applied OK.  However, the dialog still doesn't show the filename :-(

Dennis

  • Senior Community Member
  • Posts: 3966
  • Hero Points: 517
Re: File path too long for dialog box
« Reply #5 on: January 14, 2021, 10:30:56 PM »
Open <config>/hotfixes/tags.e, then go to line 9989

Replace the line with:
Code: [Select]
   return _ShrinkFilename(file_name, max(vwidth intdiv 4, min(800,vwidth)));
Then Macro > Load...

(This was faster than creating a new hot fix).

Clark

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 6884
  • Hero Points: 530
Re: File path too long for dialog box
« Reply #6 on: January 14, 2021, 10:47:56 PM »
Too bad the Qt message box doesn't wrap long filenames unless they have space characters in them. The Qt Message box on Windows will wrap long filenames ONLY if they use forward slashes instead of backslashes (which is useless).

rjpontefract

  • Senior Community Member
  • Posts: 250
  • Hero Points: 10
Re: File path too long for dialog box
« Reply #7 on: January 14, 2021, 10:53:33 PM »
Hi Dennis

That's perfect, thanks!

Rick