roc/editor
2021-07-29 17:22:25 +02:00
..
src BROKEN 2021-07-29 17:22:25 +02:00
tests Merge branch 'trunk' into constrain_update 2021-07-02 16:19:43 -04:00
.gitignore include shaders in repo 2020-12-15 15:34:39 +01:00
Cargo.toml updated to wgpu 9.0, added editor inspiration 2021-06-25 19:07:14 +02:00
creature.png wip w/ sampler and dots 2020-05-30 01:13:05 -04:00
editor-ideas.md Fix copy-paste typo 2021-07-23 10:51:54 +02:00
Inconsolata-Regular.ttf Switch to wgpu for rendering 2020-05-30 01:13:05 -04:00
README.md Updated editor README 2021-06-02 15:39:20 +02: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: