question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

LSP features does not work in another directory

See original GitHub issue

Describe 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:

theia_bug

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: image

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 and chectl version chectl/0.0.20200214-next.75e7903 win32-x64 node-v10.19.0)
  • minishift (include output of minishift version and oc version)
  • docker-desktop + K8S (include output of docker version and kubectl 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:open
  • Created 4 years ago
  • Comments:24 (14 by maintainers)

github_iconTop GitHub Comments

1reaction
tsmaedercommented, Feb 26, 2020

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:

  1. Open a Java-based workspace, open a Java file and make sure VS Code Java is running
  2. Open a terminal in the theia ide container
  3. `touch /tmp/Foo.java"
  4. Open the file in the IDE using “File->Open”
  5. Open the browser developer console
  6. Do ctrl-space in the file
  7. Observe: you get There are no document for file:///tmp/Foo.java in the browser console
0reactions
che-botcommented, Jan 4, 2021

Issues go stale after 180 days of inactivity. lifecycle/stale issues rot after an additional 7 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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Troubleshooting - LSP Mode - LSP support for Emacs
If lsp-mode is unable to find the binary but it is on the path it is probably caused by the fact that emacs...
Read more >
Some of the language servers for the built in LSP only work if ...
As the title says, some of the language servers for the built in LSP only work whenever there are certain files/directories located in...
Read more >
emacs-lsp/lsp-mode - Gitter
I realize some features like jump to definition may not work without full indexing but presumably other things like auto-completion would still work...
Read more >
clojure-lsp - Calva User Guide
This can be helpful if you're debugging an issue with clojure-lsp or you want to try out a feature of a new release...
Read more >
Sublime Text Language Server Protocol Documentation: Home
Getting started · Install a language server from the list below, ensuring it can be started from the command line (is in your...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found