LSP features does not work in another directory
See original GitHub issueDescribe the bug
Our product is an LSP server for COBOL language. Theia editor usually opens in ./projects
folder and our LSP features work normally, nothing new so far. The problem is when you open a file that is sitting in another directory located at top level from ./projects
.
Example: I have the following directories structure
bin boot dev entrypoint.sh etc home lib lib64 media mnt opt plugins proc projects root run sbin srv sys tmp usr var workspace_logs
if I will open the file under .tmp
some of our features stop working. Please take a look at the following gif:
This behavior is not present on Theia vanilla and it is reproducible for HLASM, COBOL, JAVA LSPs.
Can not reproduce it on che-theia:7.3.3
.
This error I am getting in the console log:
Che version
- latest
- nightly
- other: please specify
Steps to reproduce
Expected behavior
Runtime
- kubernetes (include output of
kubectl version
) - Openshift (include output of
oc version
) - minikube (include output of
minikube version v1.6.2
andchectl version chectl/0.0.20200214-next.75e7903 win32-x64 node-v10.19.0
) - minishift (include output of
minishift version
andoc version
) - docker-desktop + K8S (include output of
docker version
andkubectl version
) - other: (please specify)
Installation method
- chectl <!–(–installer=operator --platform=minikube ) -->
- che-operator
- minishift-addon
- I don’t know
Environment
- my computer
- Windows
- Linux
- macOS
- Cloud
- Amazon
- Azure
- GCE
- other (please specify)
- other: please specify
Issue Analytics
- State:
- Created 4 years ago
- Comments:24 (14 by maintainers)
Top GitHub Comments
Ok, I see it now. Unfortunately, the production versions of Che don’t have source map info, so it’s not trivial to analyze. The way I’m reproducing it is like so:
ctrl-space
in the fileThere are no document for file:///tmp/Foo.java
in the browser consoleIssues go stale after
180
days of inactivity.lifecycle/stale
issues rot after an additional7
days of inactivity and eventually close.Mark the issue as fresh with
/remove-lifecycle stale
in a new comment.If this issue is safe to close now please do so.
Moderators: Add
lifecycle/frozen
label to avoid stale mode.