Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can you run a w file with this extension? #64

Open
StaelensJarne opened this issue Mar 13, 2021 · 6 comments
Open

Can you run a w file with this extension? #64

StaelensJarne opened this issue Mar 13, 2021 · 6 comments

Comments

@StaelensJarne
Copy link

I have created a test project, with a p and a w file.
I was wondering if I can run .w files with this extension? (To run a GUI)
I have installed all the required libraries to run the GUI, I can run the w file in Progress Developer Studio.

The p files woks well but if I try to run a w file the extension says invalid handle.
The error comes from the automatically generated code from the AppBuilder when you create a w file:

ON END-ERROR OF WINDOW-Hoofdscherm /* Hoofdscherm */
OR ENDKEY OF {&WINDOW-NAME} ANYWHERE DO:
  /* This case occurs when the user presses the "Esc" key.
     In a persistently run window, just igNOre this.  If we did NOt, the
     application would exit. */
  IF THIS-PROCEDURE:PERSISTENT THEN RETURN NO-APPLY.
END.
@cverbiest
Copy link

As far as I know you can only run_progres not prowin from vscode

@chriscamicas
Copy link
Owner

As @cverbiest mentionned, the current version only supports command line execution.
But, it might be possible to implement a special run command for w file to start in a windowed environment.
If a contributor is willing to take this point, I'd be glad to integrate this feature in further releases.

@StaelensJarne
Copy link
Author

I have done some testing. I created a workaround where this doesn't have to be implemented.

I created a test procedure test.p with the contents:

OS-COMMAND("C:\Progress\OpenEdge\bin\prowin.exe -p C:\homepage.w").

So I created a command that calls prowin.exe

@chriscamicas
Copy link
Owner

Nice hack !
Unfortunately you won't be able to debug the code execution, don't you ?

@StaelensJarne
Copy link
Author

No, I can't debug it now.

The only thing I can do in to write a MESSAGE in my code to see what the contents of variables are.

@StaelensJarne
Copy link
Author

I was wondering if you can pass a command line parameter to prowin to start the debugger? If you can start it with a parameters it would work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants