jcaillon / 3P

3P (short for Progress Programmers Pal), is a notepad++ plugin designed to help writing progress 4GL (OpenEdge ABL) code. It transforms notepad++ into a full featured IDE for openedge code editor, providing syntax checking, compilation, auto-completion, tool-tips and much more!
https://jcaillon.github.io/3P/
GNU General Public License v3.0
80 stars 35 forks source link

Using Linux: syntax check #273

Open DenDuze opened 4 years ago

DenDuze commented 4 years ago

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

Describe the solution you'd like

Describe alternatives you've considered

Additional context

DenDuze commented 4 years ago

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)

jcaillon commented 4 years ago

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:

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

hope this answers your question

DenDuze commented 4 years ago

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