Comments (5)
-
I don't have the time to test it now but this should work. Can you describe what exactly happens and add the logs?
-
I run
xhost +
and then it works.
from lsp-docker.
- I use the repo I attach above and try
lsp-jump-to-definition
to Deque fromfrom typing import Deque
. Then it gives me:
signal(cl-no-applicable-method (xref-item-location nil))
cl-no-applicable-method(#s(cl--generic :name xref-item-location :dispatches ((0 #s(cl--generic-generalizer :name eieio--gen$
apply(cl-no-applicable-method #s(cl--generic :name xref-item-location :dispatches ((0 #s(cl--generic-generalizer :name eiei$
#f(compiled-function (&rest args) #<bytecode 0x1638e45>)(nil)
apply(#f(compiled-function (&rest args) #<bytecode 0x1638e45>) nil nil)
xref-item-location(nil)
xref--pop-to-location(nil nil)
xref--show-xrefs(nil nil)
lsp-show-xrefs(nil nil nil)
lsp-find-locations("textDocument/definition" nil :display-action nil)
lsp-find-definition()
funcall-interactively(lsp-find-definition)
call-interactively(lsp-find-definition record nil)
command-execute(lsp-find-definition record)
execute-extended-command(nil "lsp-find-definition" "lsp-find-def")
funcall-interactively(execute-extended-command nil "lsp-find-definition" "lsp-find-def")
call-interactively(execute-extended-command nil nil)
command-execute(execute-extended-command)
- How did you run
xhost +
? I run it on my local shell and runstart-emacs.sh
, but emacs is still start in terminal.
from lsp-docker.
I have the same question. I try lsp-find-reference
and get this error
Warning (lsp-mode): Failed to process xref entry for filename ’/docker:my-docker-langservers:/opt/ros/melodic/include/rosconsole/macros_generated.h’: Method ‘docker’ is not known.
The file path is known and correct within the container. Is there any way to open that file in an emacs buffer? Ideally it would still work with lsp-mode to facilitate further navigation.
If that is not possible, could there be a way to open the buffer using Tramp? In my case, changing the file path from /docker:my-docker-langserver:/opt/...
to /ssh:user@host#port:/opt/...
would work when the container is running sshd
.
from lsp-docker.
@zflat can you try installing docker-tramp package?
from lsp-docker.
Yes, that is the fix for handling the xref uri. However, I now have this issue: #29
I have a branch that I am using to test a fix.
from lsp-docker.
Related Issues (20)
- container name missing suffix for lsp--client-uri->path-fn HOT 2
- Error running timer after update of lsp-docker to latest commit HOT 2
- Docker and lsp-mode? HOT 9
- can this work with an exist docker?
- docker tramp not work
- Add ability to define docker lsp clients only for certain paths HOT 1
- Sample configuration for `lsp-docker-client-configs` is wrong.
- `clangd` cannot be found in `$PATH`
- docker build fails with `/lsp-docker-langservers/Dockerfile` HOT 5
- Add support to pylsp
- Failed to open multiple workspace folder HOT 1
- Updated Dockerfile based on Ubuntu 21.04. plus a helper script. HOT 1
- file mode specification error invalid-read-syntax HOT 1
- Spacemacs Installation with custom docker image? HOT 3
- Per-project dockerized Python virtual environment HOT 8
- feature request (?) multiple language server for project HOT 19
- DAP: debug server support HOT 2
- Issue evaluating hashtable on default mappings config HOT 10
- Unable to get setup working with Emacs 29
- [rust-analyzer] source path not mapping for lsp-lens commands HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lsp-docker.