ghkweon / dwscript

Automatically exported from code.google.com/p/dwscript
0 stars 0 forks source link

Server demo does not compile #327

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Two problems here.

First, the server demo is missing a DPROJ file, and also references several 
mORMot and DWS units that are not included in the DPR, forcing users to rebuild 
the search paths manually.

Second, in unit USynopseSimpleWebServer, class TSynopseSimpleServer contains a 
reference: FDWS : TSynDWScript; But the class TSynDWScript is not defined 
anywhere in the source tree of DWS or mORMot.

Original issue reported on code.google.com by masonwhe...@gmail.com on 24 Jan 2013 at 7:55

GoogleCodeExporter commented 8 years ago
You should add the mORMot & DWS path to the IDE paths, not the projects, so 
that they're available for all projects.
If you need to use special paths for a project, then you can use the project 
paths.

FWIW if I had my paths committed, they would be useless to you unless you 
replaced my whole disk structure (since mORMot isn't specific to DWS, it isn't 
hosted in a subfolder of DWS here, but in another different path entirely)

DPROJ isn't delivered since it can end up containing local and work settings 
that are irrelevant outside the machine where the project is compiled, and 
manually cleaning up the DPROJ before a commit isn't realistic.

The currently active WebServer Demo isn't SynopseWebServer but 
HttpSys2WebServer, the SynopseWebServer currently no longer compiles as some of 
the units & classes it refers have been renamed. Work on it will resume once 
some structures in mORMot SynCrtSock get upgraded to http.sys 2.0, add interim, 
HttpSys2WebServer works on a fork of the mORMot unit that was upgraded to 
http.sys 2.0.

I've added a notice about the above in the SynopseWebServer code

Original comment by zar...@gmail.com on 25 Jan 2013 at 7:05