Closed
Description
Currently it is not possible to edit source code in the source code view pane, this brings disadvantages for power users as well as for testers.
In order to tackle this problem an approach was devised that includes the following steps:
- Introduce a menu entry under "Program" menu - "Source (Code?) Editor".
- Create a new pane alike to logging or gallery to block out user interaction with blockly.
- Said pane needs to have a back button, as all others, and a set of five buttons: import code from blockly workspace, download source, upload source, build source and run on the robot.
- The build button should be deactivated for robots that do not require the build - NAO, ev3dev, WeDo
- The editor should replace tabs with space on copy-paste and on tab press.
- Contents of the editor will be preserved for current user session with the possibility for the user to replace current edited code with the one generated from blockly via the import button.
Pre-requisites to this issue were workflows #114 #180 and the 199eeec
It may happen so that new workflows will be introduced, for example for the build function.
#149 should be considered as an extension/related of this issue.
things to consider:
- Should the server distinguish between user provided code and generated code?
- Should user-edited code be saved and not only exported?
- Should compiler errors be delivered via a pop-up or in a separate pane?
possible extensions:
- A button to download lab-specific files (headers)