roc/editor
2021-11-22 15:31:57 +01:00
..
src use path join instead of vec join 2021-11-22 15:31:57 +01:00
tests removed lang and markup folder from editors, changed imports to use new crates 2021-09-25 17:14:32 +02:00
.gitignore include shaders in repo 2020-12-15 15:34:39 +01:00
Cargo.toml Move reporting module into root. 2021-11-16 19:58:21 +01:00
creature.png wip w/ sampler and dots 2020-05-30 01:13:05 -04:00
editor-ideas.md Correct minor spelling mistakes 2021-11-06 15:29:08 +01:00
Inconsolata-Regular.ttf Switch to wgpu for rendering 2020-05-30 01:13:05 -04:00
README.md docs: fix broken link to BUILDING_FROM_SOURCE 2021-11-18 21:38:33 +11:00
snippet-ideas.md Correct minor spelling mistakes 2021-11-06 15:29:08 +01:00

The editor is a work in progress, only a limited subset of Roc expressions are currently supported.

Unlike most editors, we use projectional or structural editing to edit the Abstract Syntax Tree directly. This will allow for cool features like excellent auto-complete and refactoring.

Getting started

  • Install the compiler, see here.
  • Run the following from the roc folder:
cargo run edit

Troubleshooting

If you encounter problems with integrated graphics hardware, install mesa-vulkan-drivers and vulkan-tools.

If you encounter an error like gfx_backend_vulkan ... Failed to detect any valid GPUs in the current config ... make sure the correct graphics card drivers are installed. On ubuntu sudo ubuntu-drivers autoinstall can resolve the problem. If the error persists, take a look here to see if your GPU supports vulkan. Use of OpenGL instead of vulkan should be available in several months.

Make sure to create an issue if you encounter any problems not listed above.

Inspiration

We thank the following open source projects in particular for inspiring us when designing the Roc editor: