-
Notifications
You must be signed in to change notification settings - Fork 171
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
More language servers #4423
Comments
Feel free to give correct config-info here, i will add the info to the wiki. |
I begin with C# OmniSharp server. On Win10. Result: I am blocked on MS site ("my" country is blocked , seems) so VS installer (I can get it and can run it, 2Mb) cannot download its files and I cannot install MSBuild from this installer. Here is my draft text file.
More info: dotnet/vscode-csharp#5120 maybe @veksha is in different country and he is not blocked? |
And my config (cudatext)/settings/lsp_cs.json {
"lexers": {
"C#": "csharp"
},
"cmd_windows": [
"C:\\OmniSharp\\OmniSharp.exe", "-lsp", "-z"
]
} With it, OmniSharp gives the error that it cannot locate MSBuild and fails to work. In the LSP panel log of Cud.
The C# testing file using System;
public class DateExample
{
public static void Main()
{
DateTime date;
date.A
}
} |
this config works for me fine |
did you run it after you installed MSBuild? did you get MSBuild by my link? |
MSBuild was already installed on my system |
The C# info is now in the WIki. Thanks. Now I follow the Java server info here: https://www.zeusedit.com/lsp/java.html
I unzipped .tar.gz from https://download.eclipse.org/jdtls/milestones/1.9.0/
so it almost works. LSP config for Cud: (cudatext)/settings/lsp_java.json {
"lexers": {
"Java": "java"
},
"cmd_windows": [
"C:\\Java\\jLSP.cmd", "${fdir}", "${fdir}"
]
}
Java testing file public class Example {
public static void main(String[] args) {
System.g
}
} |
@veksha you cannot fix that, it is Java affairs. we need ANOTHER Java server or another CMD file or docs |
Info about DLang server just added to wiki. Was easy to config. |
Info about Go, Fortran servers - added.
|
It seems you miss this too: https://www.zeusedit.com/lsp/python-lsp-ms.html |
'Check that the .Net Core is correctly installed run the following command: ' - so I cannot compile it, my Win10 cannot install the VS and MSBuild. if you or @veksha give me the ready topic for the wiki, I take it. |
So does me. I'm on Windows 8.1 and Visual Studio doesn't support my OS. I listed C# and Java only as examples to prove that there are more language servers to add. What I really need is this: https://www.zeusedit.com/lsp/python-lsp-ms.html Sorry for the misleading. |
See the new topic #4432 and try to repeat my steps, from the wiki-file (attached in zip). |
'sourcegraph' server for Go is not supported!
|
Microsoft Python server repo: It is not updated since February. so I don't want to support it. |
the java lsp doesnt seems to work.Did you get it to work? Running the start batch script itself seems to worked fine
Meanwhile in from cudatext
|
|
Got it working, @RESDXChgfore9hing! ::echo Directory: %Directory%
::echo JarFile: %JarFile%
::echo Config: %Config%
...
::echo java -Dosgi.bundles.defaultStartLevel=4 -Declipse.product=org.eclipse.jdt.ls.core.product -Dlog.level=ALL -noverify -Xmx1G -jar %JarFile% -configuration %Config% --add-modules=ALL-SYSTEM --add-opens java.base/java.util=ALL-UNNAMED --add-opens java.base/java.lang=ALL-UNNAMED -data %CacheDirctory% I need to check why Cuda_lsp can't get past them. |
@Alexey-T, prepared PR. please test. CudaText-addons/cuda_lsp#93 |
Thanks. Do I need to install Java server again , or you can write wiki part ? Write it here |
better you try and install it on your linux. we need at least Windows and Linux examples. This is not ready yet, just a template: For Windows:
@echo off
set CacheDirctory=%~1
if NOT "%CacheDirctory%" == "" goto test_cache
set CacheDirctory=%~2
if NOT "%CacheDirctory%" == "" goto test_cache
echo Error: No cache directory was provided.
goto usage
:test_cache
set CacheDirctory="%CacheDirctory%"
if EXIST %CacheDirctory% goto check_server
echo Error: The cache directory provided does not exist: %CacheDirctory%
goto complete
:check_server
:: language server installation folder (adjust to suit)
set Directory=C:/Java/jdt-language-server
:: language server jar file (update based on version file of jar)
set JarFile=%Directory%/plugins/org.eclipse.equinox.launcher_1.6.400.v20210924-0641.jar
if EXIST %JarFile% goto run_server
echo Error: The following Jar file was not found:
echo '%JarFile%'
echo Check the folder above to see if the version number of the Jar has changed and update the jLSP.cmd file to suit.
goto complete
:run_server
:: language server config folder location
set Config=%Directory%/config_win
echo Directory: %Directory%
echo JarFile: %JarFile%
echo Config: %Config%
:: java --Declipse.application=org.eclipse.jdt.ls.core.id1
:: -Dosgi.bundles.defaultStartLevel=4
:: -Declipse.product=org.eclipse.jdt.ls.core.product
:: -Dlog.level=ALL
:: -noverify
:: -Xmx1G
:: -jar %JarFile%
:: -configuration %Congfig%
:: --add-modules=ALL-SYSTEM
:: --add-opens java.base/java.util=ALL-UNNAMED
:: --add-opens java.base/java.lang=ALL-UNNAMED
:: -data %CacheDirctory%
:: echo the command for debugging
echo java -Dosgi.bundles.defaultStartLevel=4 -Declipse.product=org.eclipse.jdt.ls.core.product -Dlog.level=ALL -noverify -Xmx1G -jar %JarFile% -configuration %Config% --add-modules=ALL-SYSTEM --add-opens java.base/java.util=ALL-UNNAMED --add-opens java.base/java.lang=ALL-UNNAMED -data %CacheDirctory%
:: run the language server using stdio communications
java -Dosgi.bundles.defaultStartLevel=4 -Declipse.product=org.eclipse.jdt.ls.core.product -Dlog.level=ALL -noverify -Xmx1G -jar %JarFile% -configuration %Config% --add-modules=ALL-SYSTEM --add-opens java.base/java.util=ALL-UNNAMED --add-opens java.base/java.lang=ALL-UNNAMED -data %CacheDirctory%
goto complete
:usage
echo.
echo Usage: jLSP.cmd WorkspaceDirectory FileDirectory
echo Example: jLSP.cmd "$wdd" "$fdd"
echo.
:complete create {
"name": "Java",
"lexers": {
"Java": "java",
},
"cmd_windows": ["C:\\Java\\jLSP.cmd", "."]
}
|
My custom JDK installess* version jlsp.cmd for alexey reference if lazy install* JDK into win,but have it in some folder.mine is in drive X
|
what if you just run batch file with parameters in terminal? |
@RESDXChgfore9hing created issue: CudaText-addons/cuda_lsp#95 |
i updated the cudatext to ver1.174.0.0 and reinstalled the lsp the queue error is gone now however i still dont see any lsp popup. ''' |
i can run the lsp server from terminal directly.
{"jsonrpc":"2.0","method":"window/logMessage","params":{"type":3,"message":"2022/10/27 19:40:29 Main thread is waiting"}} |
tried your config
but its still same though no suggestion maybe there is some options i need to enable show? |
@RESDXChgfore9hing Use triple BACKticks please for code blocks. See Markdown docs. |
backticks? " or ' i dont think my keyboard have backticks |
ps i think i got it working. |
Of course. |
What does it mean? do you see LSP completions? |
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
@RESDXChgfore9hing my mistake, "fdir" is not supported here. |
@RESDXChgfore9hing we discuss java server in the CudaText-addons/cuda_lsp#98 . this topic -overheated, closing it. Make new topic for other servers in https://github.com/CudaText-addons/cuda_lsp/issues |
@RESDXChgfore9hing Info about Java server was added to the wiki. it is working (Win/Linux). |
Nice. |
Some language servers are missing: https://wiki.freepascal.org/CudaText_plugins
Please have a look: https://www.zeusedit.com/lsp/lsp.html
The text was updated successfully, but these errors were encountered: