Recent

Author Topic: Wiki, a dead link in page "Components and Code examples"  (Read 1426 times)

d7_2_laz

  • Hero Member
  • *****
  • Posts: 592
Wiki, a dead link in page "Components and Code examples"
« on: December 09, 2024, 07:41:25 pm »
Wiki page: https://wiki.freepascal.org/Components_and_Code_examples

Within the text "Notepad++ plugin template for Lazarus - A demo template ..." there's a link to
https://bitbucket.org/reiniero/notepad-pluginlazarus
which does not work (unfortunately, sigh .... it's oftenly referred to within a couple of forum's articles).

EDIT:  or is it so that one does mandatorily need an account on bitbucket ? (if so, then sorry for the noise, but i'd guess that wouldn't be a preferred place for such a repository inside).
« Last Edit: December 09, 2024, 07:56:45 pm by d7_2_laz »
Lazarus 3.6  FPC 3.2.2 Win10 64bit

TRon

  • Hero Member
  • *****
  • Posts: 3781
Re: Wiki, a dead link in page "Components and Code examples"
« Reply #1 on: December 09, 2024, 07:51:37 pm »
" there's a link to
https://bitbucket.org/reiniero/notepad-pluginlazarus
which is dead  (unfortunately, sigh .... it's oftenly referred to within a couple of forum's articles).
Unfortunately the same fate was bestowed upon the author so pardon him for not having corrected that. I do not know if BigChimp's repositories/projects where saved somewhere (I know of a couple but not all). Luckily this one was saved here.
I do not have to remember anything anymore thanks to total-recall.

d7_2_laz

  • Hero Member
  • *****
  • Posts: 592
Re: Wiki, a dead link in page "Components and Code examples"
« Reply #2 on: December 09, 2024, 08:04:29 pm »
Thanks TRon for the info, although such are really sad news.
Thank you as well for the download link.
Lazarus 3.6  FPC 3.2.2 Win10 64bit

TRon

  • Hero Member
  • *****
  • Posts: 3781
Re: Wiki, a dead link in page "Components and Code examples"
« Reply #3 on: December 09, 2024, 08:25:37 pm »
You're welcome d7_2_laz.

Indeed sad news, but I guess such is life (sadly we've lost more such good members/contributors over the years).

I also noticed this repository which might be an exact copy (or perhaps an update). I haven't verified. Perhaps it can be of help with your issue(s).

« Last Edit: December 09, 2024, 08:35:35 pm by TRon »
I do not have to remember anything anymore thanks to total-recall.

d7_2_laz

  • Hero Member
  • *****
  • Posts: 592
Re: Wiki, a dead link in page "Components and Code examples"
« Reply #4 on: December 09, 2024, 08:42:07 pm »
Thank you very much for this information too, TRon!

Btw, i already had been wondering that the last contributions from BigChimp were so long ago ..
Lazarus 3.6  FPC 3.2.2 Win10 64bit

d7_2_laz

  • Hero Member
  • *****
  • Posts: 592
Re: Wiki, a dead link in page "Components and Code examples"
« Reply #5 on: December 09, 2024, 09:50:44 pm »
Tried the repository mentioned in reply #1, but no real progress.

Strange, this error:

Code: Pascal  [Select][+][-]
  1. procedure _GetWord; cdecl;
  2. begin
  3.   (GetNPPPluginInstance as THelloWorldPlugin).GetWord;
  4.  
  5.   // ==> Compiler error: identifier idents no member "GetWord"
  6.  
  7. end;
("GetWord" is not implemented/exposed in nppplugin.pas, only commented beyond "Example code herein).
Corrected that, as well as some others in nppplugin.pas eg. function "GetString" that was also missing.

After some corrections, at the end the same exception as mentioned in the original issue article.

The repository mentioned in reply #3 appears to use a NPP 32bit-version

Seems we have no really working example for the latest software versions.
« Last Edit: December 09, 2024, 10:22:16 pm by d7_2_laz »
Lazarus 3.6  FPC 3.2.2 Win10 64bit

TRon

  • Hero Member
  • *****
  • Posts: 3781
Re: Wiki, a dead link in page "Components and Code examples"
« Reply #6 on: December 09, 2024, 10:33:27 pm »
Yet another attempt then  :)

Someone seem to have been working (or is working on) a np++ plugin for Delphi (which also seem to include support for Lazarus) here. Original announce message here

Personally I do not do windows anymore (don't have it, nor develop for it anymore) so unfortunately can't help out there.
I do not have to remember anything anymore thanks to total-recall.

d7_2_laz

  • Hero Member
  • *****
  • Posts: 592
Re: Wiki, a dead link in page "Components and Code examples"
« Reply #7 on: December 09, 2024, 10:53:21 pm »
Sounds good, in so far as last commits in 2024, NPP 64bit and Lazarus are referred .... stuff for tomorrow  :)  Thanks!  :)
Lazarus 3.6  FPC 3.2.2 Win10 64bit

d7_2_laz

  • Hero Member
  • *****
  • Posts: 592
Re: Wiki, a dead link in page "Components and Code examples"
« Reply #8 on: December 10, 2024, 01:10:43 pm »
Yep ... good hint, TRon!  :)
Quick check of the rdipardo repository as from reply #6 (with special regard to docking form) as follows.

My steps (i don't like installation procedures for particular purposes):
- copied "Source\Forms" subdir directly beyond the "Lazarus" sub-dir (where the lpi project file resides)
  As having seen that subdir "Forms" is part of the compiler options Include path
  (later on i plan to restructure a bit).
  And as having seen that other items are accessed with relative paths in the uses clauses (eg. '..\Source\....')
- Added "-dNPPUNICODE" to the project option 'user-defined settings', as mentioned in one of the readme files 
- Compiled & linked (without problems)
- Copied the result files HelloWorld.dll and HelloWorld.dbg to a new <N++_folder>\plugins\HelloWorld subdir.

Started N++ and saw the submenu items in "HelloWorld", especially ticked/checked "Load docking form".
Result (Win 10 64bit; Lazarus 3.6 64 bit; N++ version 8.7.2 64 bit:
Note that there a diverse deliveries offered with regard to Scintilla API and NPP versions.

That i'd call a working example for the environment mentioned ...  :)
My test version attached.

Besides: interestingly, the project does already respect the N++ dark mode themeing.
It would be intersting to sse how it behaves with other controls within the docking form, und if or how that can be adapted if needed.
Lazarus 3.6  FPC 3.2.2 Win10 64bit

d7_2_laz

  • Hero Member
  • *****
  • Posts: 592
Re: Wiki, a dead link in page "Components and Code examples"
« Reply #9 on: December 10, 2024, 02:06:14 pm »
And here the slightly modified version without file duplications, but keeping the project specific items apart from the NPP common stuff.

(Also i wanted to know how a treeview and a listview would look like regarding the themeing. The treeview stays unthemed (light), the listview themed (dark)).
Lazarus 3.6  FPC 3.2.2 Win10 64bit

TRon

  • Hero Member
  • *****
  • Posts: 3781
Re: Wiki, a dead link in page "Components and Code examples"
« Reply #10 on: December 10, 2024, 06:21:50 pm »
Thank you for reporting back d7_2_laz and your contribution. Glad to hear that this seem to work.
I do not have to remember anything anymore thanks to total-recall.

d7_2_laz

  • Hero Member
  • *****
  • Posts: 592
Re: Wiki, a dead link in page "Components and Code examples"
« Reply #11 on: December 10, 2024, 08:42:35 pm »
Worthy to note is that (as mentioned) there is a table of versions, means: which version of the plugin is playing together with which version of the Scintilla API resp. of Notepad++. That might reduce the risc of unrecognizable errors that may arise from this side ...
Lazarus 3.6  FPC 3.2.2 Win10 64bit

d7_2_laz

  • Hero Member
  • *****
  • Posts: 592
Re: Wiki, a dead link in page "Components and Code examples"
« Reply #12 on: December 12, 2024, 08:47:40 pm »
(In difference to the other npp plugin templates i had tried before:)

i cannot achieve here (for the project attached in reply #6) to set a 'host application' in the start parameters and to see then the "Start" functionality in the menu or toolbutton enabled afterwards. Both stay disabled.

Does anybody maybe know what one has to do for to unlock/enable the "Start" functionality after having set the host application for to be able to debug a plugin dll?

EDIT: better. to split this to a separate topic. - Here:
https://forum.lazarus.freepascal.org/index.php/topic,69584.0.html
« Last Edit: December 12, 2024, 11:10:51 pm by d7_2_laz »
Lazarus 3.6  FPC 3.2.2 Win10 64bit

 

TinyPortal © 2005-2018