2021-04-24 12:58:37 +03:00
2021-06-02 16:39:20 +03:00
The editor is a work in progress, only a limited subset of Roc expressions are currently supported.
2021-04-24 12:58:37 +03:00
Unlike most editors, we use projectional or structural editing to edit the [Abstract Syntax Tree ](https://en.wikipedia.org/wiki/Abstract_syntax_tree ) directly. This will allow for cool features like excellent auto-complete and refactoring.
2020-10-16 19:18:30 +03:00
## Getting started
2021-11-18 13:38:33 +03:00
- Install the compiler, see [here ](../BUILDING_FROM_SOURCE.md ).
2021-01-30 21:30:14 +03:00
- Run the following from the roc folder:
2020-10-16 19:18:30 +03:00
```
2021-04-16 18:25:30 +03:00
cargo run edit
2020-10-16 19:18:30 +03:00
```
## Troubleshooting
2021-04-24 12:58:37 +03:00
If you encounter problems with integrated graphics hardware, install `mesa-vulkan-drivers` and `vulkan-tools` .
2020-12-28 13:40:29 +03:00
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.
2021-04-24 12:58:37 +03:00
If the error persists, take a look [here ](https://www.techpowerup.com/gpu-specs/ ) to see if your GPU supports vulkan.
Use of OpenGL instead of vulkan should be available in several months.
2020-12-28 13:40:29 +03:00
2021-04-24 12:58:37 +03:00
Make sure to [create an issue ](https://github.com/rtfeldman/roc/issues/new/choose ) if you encounter any problems not listed above.
2021-01-30 21:30:14 +03:00
2020-12-28 13:40:29 +03:00
## Inspiration
We thank the following open source projects in particular for inspiring us when designing the Roc editor:
- [learn-wgpu ](https://github.com/sotrh/learn-wgpu )
- [rgx ](https://github.com/cloudhead/rgx )
2020-12-28 17:41:48 +03:00
- [elm-editor ](https://github.com/jxxcarlson/elm-editor )
2021-06-02 16:39:20 +03:00
- [iced ](https://github.com/hecrj/iced )