3P icon indicating copy to clipboard operation
3P copied to clipboard

Using Linux: syntax check

Open DenDuze opened this issue 5 years ago • 3 comments

Is your feature request related to a problem? Please describe.

Describe the solution you'd like

Describe alternatives you've considered

Additional context

DenDuze avatar Feb 06 '20 08:02 DenDuze

Hi,

This is not really a bug or request for changes .... This 3P looks very promissing, maybe some more manuals would be nice but still looking at possibilities.

Now I would like to use this 3P as following (but I'm not sure if that will be possible now or in the future). If it is possible can you give me some guidelines on how to do it.

I have sources on a Linux server. I use WinScp to connect to that server and select the source that I want to edit. I defined in Winscp that 3p is my editor for .p-files, so when I doubleClick that .p, WinScp will tranfer it to my local PC and open that in 3P. Now I have the sweets like code-coloring and code-completion But I would also like that I could have syntax checking! For that I need to provide the connection for the Linux DB and the Linux propaths. Is that possible with 3P? Ofcourse 3P should then use those settings while the syntax check is performed but I guess that is not possible? To solve this I could als create the same DB-structure on my Windows machine and connect to that one but I would still have problems because when I use classes in my sources 3P can not find those if it can't handle those Linux paths (or I need to duplicate all sources to my Windows machine - what is not what I want to do)

So my question to you is: Can we handle such situations with 3P? This would be great but again, I guess that will not be possible

Regards (en keep up the good work)

DenDuze avatar Feb 06 '20 08:02 DenDuze

Hello,

To have a proper set up of 3P and being able to compile/check syntax and autocomplete your database items (tables/fields) you need:

  • an install of openedge for windows (prowin.exe) on your computer
  • all the sources of your application stored locally (on windows) and a properly configured PROPATH
  • an access to your database (can either be hosted locally or on a distant server)

The use case you are describing is pretty standard. Here is what I would do:

  • have all the source files of the application versionned (git/svn...) and get a local repository on my windows machine
  • obviously have openedge installed on my machine (mandatory to be able to check syntax/compile)
  • either use a shared database on a distant server or a local copy of the database (only the schema is required, no need for realdata) to get the database autocompletion working
  • code on windows (with 3P), compile the code with 3P as well
  • you can configure 3P to send the compiled file (or directly the .p if you really want...) onto a distant server using FTP in 1 keystroke (see "deploy file"). No need to use winscp, you can do it all from 3P.

hope this answers your question

jcaillon avatar Feb 06 '20 14:02 jcaillon

Hi,

That is almost what i have now. Progress locally, database with only data-structure locally so my syntax-checks and code-completion works (syntax-chack not completely because of the classe). I considered to copy only my classes locally so that problem is also solved but still not sure if I want that ...

I was hoping I could use some system that mapped the Linux filesystem and I could map that with some \path-on-linux-to-src-dir so 3P could use that for syntax-check and so. But I guess that is not possible and would result in some slowness

The biggest problem is the fact that my current develoment is not the same as on that remote server. So I would always need to copy the current sources on that server to some local directory to be sure I get the correct syntax-checking (again classes can be changed). And that is not so easy to do. NB: I know it's in fact the same problem with my DB (with only the data-structure in it), it is also not guaranteed the same as on the remote site (but less change on differences).

Therefore I was searching to use the DB and sources on that Linux server itself. Then I'm 100% sure that I'm checking against what exists there and then I can also perform some queries on that real data.

I understand that 3P can't handle that (and maybe it's just impossible to achieve) but I could only ask ...

Thanks

DenDuze avatar Feb 06 '20 14:02 DenDuze