View on GitHub

Eadgyth Programming Editor

A text editor and basic code editor written in Java. Write and run code in Java, C#, Python, R or HTML

Help

Content


Requirements

The editor requires Java 8 or higher. To compile Java code by the built-in compile function, Eadgyth must be run with the runtime environment (JRE) contained in a Java Development Kit (JDK).

It is further important that the built-in commands to run C#, Python, and R assume that the paths to the executables are set as PATH system (environment) variables. For the C# project category, the editor assumes a .NET SDK installation.

Running code (and comiling) using the built-in function prefers or requires UTF-8 encoded files for reliable output (as of vs1.2.1). The editor can open files with legacy encodings using a non-UTF-8 system encoding as fallback if the system encoding is not UTF-8. A fallback may also be selected in the File menu before opening a file with a legacy encoding. A file can be converted to UTF-8 and also be reverted to the original encoding as long as it remains open in File menu.


Setup to run source code

Setting a project

  1. Open a file from or save a new file to the directory that is the intended root directory of the project. The project directory is the working directory where commands (built-in or custom) will be executed.
  2. Open the project settings by selecting 'Settings for...' in the 'Project' menu and choose the category to open the project settings.
  3. The input options depend on the project category. Initially, the required entry is the name of the project directory where the project will be created.

Retrieving projects

Switching between projects

Saving changed in project files

The label or tooltip 'Save and run' (or 'Save and compile', where applicable) means that all open files of an active project but no other open files are saved before execution. If 'Save' is not indicated, no file is saved.


Back to top


Project categories

Java

Java source-file mode

C#

Python

R

HTML

Custom commands

Back to top


Console

The console shows messages after compiling a project (applies to Java and C#) and the standard and error output of a tested program. A started program can be terminated by pressing the 'stop' button in the console's toolbar.

The console is interactive while a process is running. Any input a program requests can be typed in the console area.

Additionally, a custom system command can be run by pressing the 'Enter and run a system command' button (pencil icon) in the console toolbar.

Note the following editor-specific behavior/limitations:

  1. The 'stop'-button only ends the process started by the command. Any sub-processes started from within that process are not affected.
  2. The command is internally split into arguments at each space. Arguments containing spaces can be grouped by wrapping them in quotes. This parsing is handled by the editor itself, not by a shell, but should behave as expected in most cases.
  3. The editor reads process in- and output as UTF-8. It may be necessary to add flags or switches to enforce UTF-8 encoding if the system's or JVM's default encoding is not UTF-8.
  4. The console may appear frozen in cases where a process buffers its output because the standard output is redirected to the editor's console. This may be solved by adding a command option that disables buffering (like -u for Python, see above), if available. If a process does not exit on its own due to the redirected output, a method to explicitly terminate it can be a temporary workaround (like process.exit() for Node.js). Alternatively, a progam can be started by launching the native terminal from within Eadgyth. On Windows, this can be done with cmd /c start cmd /k [MyProgram]; on Linux/macOS the equivalent command depends on the installed terminal emulator (e.g. gnome-terminal -- bash -c '[MyProgram]; exec bash').

Back to top


Contact: m.bussiek@web.de
(A message is welcome if the program does not work as suggested in this help)