area9innovation / flow9

Platform for safe, easy and productive programming of complex, multi-platform apps with a modern user interface

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Incorrect usage of flowRoot in VSCode

DanProgrammer1999 opened this issue · comments

In VSCode plugin there is a minor inconsistency in the usage of flowRoot. The default value of root is .../flow9. And the config snippet specifies ${flow.root}/bin/flowcpp as the compiler. However, if this path is specified, the server would not automatically launch: in method launchFlowcHttpServer of tools.ts, projectRoot is used without .../bin.
Of course, that is easy to work around by simply specifying path with .../bin, and manually editing run configuration each time (or simply editing the snippet manually). But in the long term, this should be fixed either by adding .../bin to tools.ts method, or by removing this part from config snippet, and updating the corresponding documentation.

I have come to realization that the projectRoot has nothing to do with flow.root, and the command execution relies on the environment variable.