How to deal with unsupported language projects #1015
Replies: 5 comments 18 replies
-
|
I am not sure what you mean. Serena will initialize with the languages that are explicitly configured in project.yml. Of course, manually adding an unsupported language there will lead to a crash, but that's something the user has to do by hand. |
Beta Was this translation helpful? Give feedback.
-
|
Btw, if you use Serena through the JetBrains plugin, all such issues will disappear - Serena will have access to all symbols indexed by the JetBrains IDE |
Beta Was this translation helpful? Give feedback.
-
|
@MischaPanch this is a standalone tool, so not inside jetbrains. If there is NO language supported in the project (project only with sql files, for instance), how to create a proper project.yml that allows read_file to work on those files? |
Beta Was this translation helpful? Give feedback.
-
|
@cx-alberto-simoes if your project matches none of the supported languages, the workaround is to just use any supported language and specify that language explicitly at project creation. I would recommend You will then be able to apply all of Serena's non-symbolic tools without any problems. The Python language server will spawn, but it will not actually be used for anything. |
Beta Was this translation helpful? Give feedback.
-
|
Would something like this be acceptable by Serena team? #1017 |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I am writing a generic tool, and we need to have serena working with projects of not supported programming languages. For instance, we have a project only with SQL files.
Currently, serena fails initialization because there is no supported language.
Is there a way to force serena to accept a project even without any supported language?
Beta Was this translation helpful? Give feedback.
All reactions