edrys-org / module-code

Online code editor module for Edrys with ability to run arbitrary commands on station devices (use for Remote Labs)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

General Editor Module

andre-dietrich opened this issue · comments

Hi, I think it would be great to have something like a general Editor module, without any additional functionality at all.
The idea is, that the editor module can be configured to publish on different topics, when the "run-button" is hit. Another module can be configured also, to listen this topic in promiscuity-mode, which then releases some kind of action.

I did this, within the following module, which will execute the code, that is published from other modules:

https://github.com/Cross-Lab-Project/pyxtermjs

This way one editor module could be used for different purposes, even within the same classroom.

commented

I like this idea, this way we can separate all the editors from all the runners. I'm thinking I'll make this module into purely a code editor and separate code-running into a separate one.

Hi, yesterday I added one 🙈 ...

https://github.com/Cross-Lab-Project/edrys_module-editor

It should already appear in your module-overview ... probably this could also be extended to something more project-based, which allows to define projects with different files in different tabs...

I think, something like this could be configured like:

{
  "project": {
     "main.cpp": "some code",
     "class.h": "header code",
     "class.cpp": "some class code"
  }
}

... Just thinking aloud ...

commented

That is a great start, I think we can keep this one as-is (someone might find a all-in-one module useful) and continue developing the other one as well. Perhaps we can allow creating "files" in the editor and switching between them, similar to VS Code.