Closed NicoPy closed 1 year ago
Hello!
That's a very interesting idea indeed. Do you know other language servers that provide this option?
Hi,
That's a very interesting idea indeed.
Thanks.
Do you know other language servers that provide this option?
None I'm aware of.
Ok! In any case, looks like a good idea, we'll add the option.
That's good news 😃
Just remembered that language servers for VHDL use a configuration file to manage specific configuration parameters (like libraries content, top level entity...).
For example :
👍
Can you provide a config
file example ?
I tried many syntaxes/structures. Either ALS complains on bad content or ALS crashes :
Unhandled Exception raised
raised GNATCOLL.VFS.VFS_INVALID_FILE_ERROR : gnatcoll-vfs.adb:340
[Z:\ada\language_server\ada_language_server.exe]
0x7ff7a271d6da
0x7ff7a0d4026d
0x7ff7a0d41a0b
0x7ff7a0d41dd0
0x7ff7a0643dde
0x7ff7a2cb1a59
0x7ff7a064143c
0x7ff7a0641144
[C:\WINDOWS\System32\KERNEL32.DLL]
0x7ffaf6c97612
[C:\WINDOWS\SYSTEM32\ntdll.dll]
0x7ffaf8bc269f
the same for me
Hello @NicoPy ,
Do you have a config that exhibits the issue? I have tested with a simple config file that just sets the projectFile
and it seems to work on my side.
Actually the issue only exists with the ada_language_server packaged with the extension. We are able to reproduce now. Thanks for reporting!
As mentioned in another issue, I'm trying to use ALS with Eclipse (without writing a dedicated Eclipse plugin). The Eclipse 'language server' client has, of course, no knowledge of ALS additional configuration parameters. What would be very useful is to be able to add a
config
(or similar) switch to ALS to provide a file path containing ALS configuration. One could then useada_language_server --config=<FILE>
with 'dumb' language clients.I thought I could easily work on it and publish a PR but building ALS on Windows is not documented. I tried using Alire but this builds a non working executable (see issue #1103).