lapce-python icon indicating copy to clipboard operation
lapce-python copied to clipboard

lapce-python not working for me in Lapce 0.2.5 on OS X

Open beingalink opened this issue 3 years ago • 10 comments

I installed the plugin (v0.3.2) and I installed python-lsp-server as described in the ReadMe. I also tested that pylsp is reachable in the path. The plugin works when I start Lapce via the terminal: RUST_BACKTRACE=1 /Applications/Lapce.app/Contents/MacOS/lapce. It doesn't work when I start Lapce normally as an app bundle.

beingalink avatar Dec 28 '22 22:12 beingalink

Unfortunately I don't have access to a mac platform to test on. I only have Linux and Windows. Are there any error messages on the console when you run via the terminal? Is there a way to simulate running Lapce as an app bundle from the terminal so we might get error messages?

superlou avatar Jan 02 '23 19:01 superlou

There are no messages at all in the terminal. I also just found out that it's not about opening the app bundle, but opening via terminal vs opening via Dock/Finder. I can open the app bundle in the terminal and the plugin seems to work fine. Could this sth have to do privileges?

beingalink avatar Jan 03 '23 12:01 beingalink

I guess it could be privileges related or maybe opening via Dock/Finder having a different path? Is it possible to try simulating running a bundle from the terminal via https://stackoverflow.com/questions/55599363/macos-differences-running-application-in-finder-and-terminal?

superlou avatar Jan 03 '23 12:01 superlou

That's what I already did. Opening the app bundle from the Terminal via open Lapce.app works fine. Opening via double-click on the app bundle in the Finder makes the plugin not work (but Lapce works fine otherwise).

beingalink avatar Jan 03 '23 12:01 beingalink

Autocomplete/LSP also isn't working for me (macOS 13)

arjpar avatar Mar 20 '23 11:03 arjpar

@arjpar, do you have the same behavior as @beingalink does with respect to opening from the Terminal vs the Finder?

superlou avatar Mar 20 '23 15:03 superlou

@arjpar, do you have the same behavior as @beingalink does with respect to opening from the Terminal vs the Finder?

Yeah, autocomplete seems to work when I open lapce from the terminal (with the folder containing python files opened in lapce), but doesn't work if you don't open it from the terminal. Seems like there's a bug.

arjpar avatar Mar 20 '23 21:03 arjpar

@superlou This isn't a problem with just the python extension, but for all lsp extensions for lapce on macOS. See here for the relevant issue.

arjpar avatar Mar 23 '23 04:03 arjpar

It there anyone can set this up now? i try to install python-lsp-server on my system, in a virtualvenv, it just show not thing to me I'm using Arch Linux and pyenv? Maybe that's the problem?

ppvan avatar Apr 14 '23 18:04 ppvan

It there anyone can set this up now? i try to install python-lsp-server on my system, in a virtualvenv, it just show not thing to me I'm using Arch Linux and pyenv? Maybe that's the problem?

@ppvan, I think your issue is different from the OS X issue in the rest of the comments, so I've moved it to https://github.com/superlou/lapce-python/issues/14.

superlou avatar Apr 14 '23 18:04 superlou