Supposedly I installed Synapse, but there is no tab called "Synapse" lazarus / 38-Networking and Web Programming ---------------------------------------------------------------------- RedOctober · 2018-02-17 03:18 Platform:  Windows Server Essentials 2016, Lazarus 1.8.1, FPC 3.0.5 I need to get the Synapse components.  I used the Online Package Manager, I checked "Synapse 40.1" then clicked "Install".  It seems to have rebuilt or installed (or whatever) properly and the OPM says it's installed, however I cannot find the "Synapse" tab in my Lazarus IDE.  I have close and reopened it, still nothing.  The OPM says I already have Synapse installed, but the Packages->Install/Uninstall doesn't list Synapse as an uninstallable package. Can some one tell me what happened, how to fix it, or maybe everything is correct and the Synapse components are actually on some other tab or named something other than "Synapse" Thanks in advance for any help you can provide. ---------------------------------------------------------------------- RedOctober · 2018-02-17 03:37 Ok, I found some documentation that says it's not a component set, so that's why I cannot find the tab for Synaps. http://www.ararat.cz/synapse/doku.php/public:howto Next question:  I want to simply get a webpage from a URL including it's HTTP response code.  I'm specifically looking for code 200 OK.  How is this done in Synapse? ---------------------------------------------------------------------- RedOctober · 2018-02-17 03:56 I cannot seem to get started with Synapse.  The example shown at: http://wiki.freepascal.org/Synapse#From_an_HTTP_server won't work for me because the complier can't find the identifier: httpsend ---------------------------------------------------------------------- taazz · 2018-02-17 05:55 open lazarus go to menu project\new project select the type of project you want (application, simple application etc).open the project inspector (menu project\project inspector) then the big blue plus on top and select new requirement. in the dialog that opens start typeing synapse or what ever the package name is select it and press create new requirement. Now you can use the units in your application open your application's main unit go to the uses clause and add the httpSend unit to it. Copy the download function from the web and paste it your main unit. write code to call the download function you just pasted. if it fails for any reason please provide the exception code and message. ---------------------------------------------------------------------- RedOctober · 2018-02-17 16:40 Hi taazz.  I'm still stuck. I have attached a .pdf to show you what is happening. I made the page size extra large so you can see the images. I'm not sure how to proceed. ---------------------------------------------------------------------- balazsszekely · 2018-02-17 16:51 RedOctober Synapse is a runtime package, so you must add it to the "Required packages" of your project(as in the attached image).  After this you can add httpsend to the uses clauses. ---------------------------------------------------------------------- taazz · 2018-02-17 17:02 Quote from: RedOctober on February 17, 2018, 05:40:54 pmHi taazz.  I'm still stuck. I have attached a .pdf to show you what is happening. I made the page size extra large so you can see the images. I'm not sure how to proceed. go to the menu package\open package and load the package (*.lpk) from your disk. Press compile once and close it, after that the IDE will refresh its internal data and learn of the existence of the package, you will be able to see it in the add requirement dialog. ---------------------------------------------------------------------- balazsszekely · 2018-02-17 17:04 Quotego to the menu package\open package and load the package (lpk) from you disk. Press compile once and close it after that the IDE will refresh its internal data and learn of the existanse of the package nad you will be able to see it in the add requirement dialog.If OP installed the package via OPM the above steps are not needed. The package is automatically compiled. ---------------------------------------------------------------------- taazz · 2018-02-17 17:19 Quote from: GetMem on February 17, 2018, 06:04:48 pmQuotego to the menu package\open package and load the package (lpk) from you disk. Press compile once and close it after that the IDE will refresh its internal data and learn of the existanse of the package nad you will be able to see it in the add requirement dialog.If OP installed the package via OPM the above steps are not needed. The package is automatically compiled. its not for the compilation, its the lazarus configuration update that is probably not updated. (i'm guessing). Some times I surprise my self on how bad my communication skills are. Just to make it clear what I'm saying is that, the lazarus known packages list is not updated with the runtime only packages (aka package not compiled in to lazarus) installed from OPM, by opening the package should automatically add it to the list but since I have never opened a package with out compilation I'm not sure that the act of opening is sufficient so I recommend to compile it once. ---------------------------------------------------------------------- RedOctober · 2018-02-17 18:19 Thanks tazz.  Your explanation worked.  I'm on my way now. ---------------------------------------------------------------------- taazz · 2018-02-17 19:26 Quote from: RedOctober on February 17, 2018, 07:19:39 pmThanks tazz.  Your explanation worked.  I'm on my way now. I'm glad I could be of service. ---------------------------------------------------------------------- balazsszekely · 2018-02-17 23:16 @taazz Just install any runtime package via OPM and see the result. Apparently we are leaving in a parallel universe. ---------------------------------------------------------------------- RedOctober · 2018-02-17 23:24 GetMem... the OPM has been a life saver.  It usually works, including registering in Lazarus for inclusion in the "Add a Requirement" list.  On Synapse that last piece is missing. ---------------------------------------------------------------------- taazz · 2018-02-17 23:29 Quote from: GetMem on February 18, 2018, 12:16:56 am@taazz Just install any runtime package via OPM and see the result. Apparently we are leaving in a parallel universe. can I get opm on lazarus 1.4.4? ---------------------------------------------------------------------- JuhaManninen · 2018-02-18 13:49 Quote from: taazz on February 18, 2018, 12:29:51 amcan I get opm on lazarus 1.4.4? No, you must update for 1.8 obviously. Did you instruct people about OPM without using it yourself? You really should update, many things have improved since 1.4.4. If you are afraid of the improved Unicode support, please don't be. It works very well! ---------------------------------------------------------------------- taazz · 2018-02-18 14:43 Quote from: JuhaManninen on February 18, 2018, 02:49:49 pmDid you instruct people about OPM without using it yourself? obviously not, I addressed a problem with a package installation not the reason the problem was created. I simple posted an assumption on why it happened, if I'm wrong then I'm wrong, but I do not see any other theories so far.