Open andersbenn opened 5 months ago
Hi @andersbenn
The end of the error you got:
FileNotFoundError: [Errno 2] No such file or directory: '/workspace/dataplattformen/.venv/lib/python3.11/site-packages/code_editor/frontend/build/mode-sas.js'
tells me that the mode file doesnt exist and indeed after checking, the only mode with those letters that I see is sass
but there is no sas
.
You can create one and add it either to your install or fork bouzidanas/ace-builds
and add it to /src-noconflict
. Make sure the file you add is called mode-sas.js
and make sure to update ace-modules.d.ts
and webpack-resolver.js. After you have made these changes and added the mode file, you can submit a pull request and I will accept it and release a new version of code editor so that you and others can use it without customization going forward!
Also, you might find resources for creating your own mode here: https://stackoverflow.com/questions/29804118/how-to-build-a-mode-in-ace
Hi Anas! Thanks for a great project, it's been super useful!
I am displaying SAS code, and noticed that the highlighting is not working. The code is white, as if "text" was chosen as the programming language. I am also displaying sql and yaml code in different editors on the same page, which are both working nicely.
Code for SAS editor:
where
When running this code, the code editor renders with white, unhighlighted text, and I get this error in the terminal:
I noticed that
sas
is missing from the mode_list in__init__.py
(line 102 in version 0.1.20). However, adding it did not resolve the issue.Any ideas about what might be the cause? Thanks!