-
-
Notifications
You must be signed in to change notification settings - Fork 182
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
Message: Internal Error - System.ArgumentException: OmniSharp only supports being launched with a directory path or a path to a solution (.sln) file. #213
Comments
@GNSubrahmanyam Is there a bug with |
I tried with "monaco-editor": "^0.19.3",
"monaco-languageclient": "^0.12.0", and FROM node:8.16.0-stretch-slim
# Omnisharp
ENV OMNISHARP_VERSION 1.34.15
RUN curl -L -o omnisharp.tar.gz https://github.com/OmniSharp/omnisharp-roslyn/releases/download/v$OMNISHARP_VERSION/omnisharp-linux-x64.tar.gz
RUN curl -L -o dotnet.tar.gz https://download.visualstudio.microsoft.com/download/pr/43f3a3bd-3df2-41e6-beca-3ec4952ca6c4/30fe7779249607d1bb3bb4b20d61a479/dotnet-sdk-3.0.103-linux-x64.tar.gz
RUN mkdir -p /opt/dotnet && tar -zxf dotnet.tar.gz -C /opt/dotnet
RUN mkdir -p /opt/omnisharp && tar -zxf omnisharp.tar.gz -C /opt/omnisharp
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
libc6 \
libgcc1 \
libgssapi-krb5-2 \
libicu57 \
liblttng-ust0 \
libssl1.0.2 \
libstdc++6 \
zlib1g \
ca-certificates \
&& rm -rf /var/lib/apt/lists/*
RUN ln -s /opt/dotnet/dotnet /usr/bin/dotnet
ENV DOTNET_RUNNING_IN_CONTAINER=true \
NUGET_XMLDOC_MODE=skip \
DOTNET_USE_POLLING_FILE_WATCHER=true
# Trigger first run experience by running arbitrary cmd to populate local package cache
RUN dotnet help but it is not working with "monaco-editor": "^0.20.0",
"monaco-languageclient": "^0.13.0", FROM ubuntu:18.04
# Omnisharp
ENV OMNISHARP_VERSION 1.34.15
RUN curl -L -o omnisharp.tar.gz https://github.com/OmniSharp/omnisharp-roslyn/releases/download/v$OMNISHARP_VERSION/omnisharp-linux-x64.tar.gz
RUN curl -L -o dotnet.tar.gz https://download.visualstudio.microsoft.com/download/pr/43f3a3bd-3df2-41e6-beca-3ec4952ca6c4/30fe7779249607d1bb3bb4b20d61a479/dotnet-sdk-3.0.103-linux-x64.tar.gz |
@GNSubrahmanyam You can review the diff between 0.12.0 and 0.13.0 I guess. What paths do you see being sent between 0.12.0 and 0.13.0? |
@rcjsuen Is that a breaking changes all my language server pyls, csharp has stopped working |
@GNSubrahmanyam If it was a breaking change, I imagine there would be a lot more bugs open about this. You appear to be using Monaco Editor 0.20.0 which is not currently supported. See #207. |
Ok got it. |
@rcjsuen still this is not fixed
|
Usage: const lspProcess = { const serverConnection = server.createServerProcess(lspProcess.processName, lspProcess.command, lspProcess.args) |
@GNSubrahmanyam You should check the path that you are sending to the language server I guess. |
Before starting lsp I create directory dynamically inside /workspace @rcjsuen Can you help me to fix it? |
@GNSubrahmanyam Don't think anyone can really help you fix it unless they can clone your code or you have a completely self-contained example that reproduces the problem. |
Sure will provide example |
I fixed this issue. Workspace path was wrong. Thanks |
@GNSubrahmanyam Your path looked okay in #213 (comment) though. What was wrong? |
reference: https://github.com/OmniSharp/omnisharp-roslyn/issues/1798
@rcjsuen @akosyakov
The text was updated successfully, but these errors were encountered: