roc/editor
2021-05-24 14:44:32 +02:00
..
src Merge remote-tracking branch 'origin/trunk' into no-arg-tag-union-func 2021-05-24 14:44:32 +02:00
tests tests: use a simpler test case to avoid defs 2021-05-18 21:21:57 -04:00
.gitignore include shaders in repo 2020-12-15 15:34:39 +01:00
Cargo.toml upgrade to wgpu 8.1, removed old editor benchmarks 2021-05-19 17:32:07 +02:00
creature.png wip w/ sampler and dots 2020-05-30 01:13:05 -04:00
editor-ideas.md Added nextjournal editor inspiration 2021-05-14 16:16:55 +02:00
Inconsolata-Regular.ttf Switch to wgpu for rendering 2020-05-30 01:13:05 -04:00
prep_benchmarks.sh expose modules automatically for benchmarks, actually run benchmarks 2021-01-25 19:16:03 +01:00
README.md improved editor README 2021-04-24 11:58:37 +02:00

The editor is a work in progress, only a limited subset of Roc expressions are currently supported. New features are added every week!

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: