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

rjpontefract

  • Community Member
  • Posts: 96
  • Hero Points: 4
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

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 3245
  • Hero Points: 461
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

  • Community Member
  • Posts: 96
  • Hero Points: 4
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

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 3245
  • Hero Points: 461
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

  • Community Member
  • Posts: 96
  • Hero Points: 4
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

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 3245
  • Hero Points: 461
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: 5771
  • Hero Points: 460
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

  • Community Member
  • Posts: 96
  • Hero Points: 4
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