JonasRock / ARXML_LanguageServer

Language Server for a navigation plugin to help with ARXML files
Apache License 2.0
3 stars 0 forks source link

Linux support #1

Open ubmarco opened 2 years ago

ubmarco commented 2 years ago

Hi, Thanks for the promising 'ARXML Navigation Helper' extension. I want to try it out on Linux. The marketplace page mentions

The language server used for resolving commands is Windows-x64 only at the moment.

2 Questions:

  1. Does that mean the extension is useless on Linux?
  2. What is needed to get it to work on Linux as well?

According to https://github.com/JonasRock/ARXML_LanguageServer/blob/master/azure-pipelines.yml the LS is built on ubuntu-20.04.

JonasRock commented 2 years ago

Hi,

The Linux executable comes bundled with the extension and should automatically be selected upon start of the extension, so in theory everyting should work on Linux out of the box. But it's been quite a while since I last tested if everything works on Linux, so there might be some stuff broken in the XML-Parser (specifically the filepath handling).

If you try it out let me know if it works, if not I'll try looking into it further.

ubmarco commented 2 years ago

Hi again, sorry for the delay. I figured out why the language server does not start. There is an EACCESS error in VSCode logs. I think the executable flag is missing for ~/.vscode/extensions/jonasrock.arxml-navigationhelper-0.2.0/ARXML_LanguageServer_Linux. After running chmod +x ~/.vscode/extensions/jonasrock.arxml-navigationhelper-0.2.0/ARXML_LanguageServer_Linux The language server was started, however failed with an error.

[2022-04-05 11:18:05.085] [renderer1] [error] [Extension Host] (node:158987) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
JonasRock commented 2 years ago

Thank you for finding the problem with the executable flag.

The other error seems to be an issue with the extension itself and not the languageserver. I'll look into it as soon as I find time.