Skip to content
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

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

Open
beingalink opened this issue Dec 28, 2022 · 10 comments
Open

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

beingalink opened this issue Dec 28, 2022 · 10 comments

Comments

@beingalink
Copy link

beingalink commented Dec 28, 2022

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.

@superlou
Copy link
Owner

superlou commented Jan 2, 2023

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?

@beingalink
Copy link
Author

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?

@superlou
Copy link
Owner

superlou commented Jan 3, 2023

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?

@beingalink
Copy link
Author

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).

@arjpar
Copy link

arjpar commented Mar 20, 2023

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

@superlou
Copy link
Owner

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

@arjpar
Copy link

arjpar commented Mar 20, 2023

@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
Copy link

arjpar commented Mar 23, 2023

@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.

@ppvan
Copy link

ppvan commented Apr 14, 2023

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?

@superlou superlou changed the title lapce-python not working for me in Lapce 0.2.5 lapce-python not working for me in Lapce 0.2.5 on OS X Apr 14, 2023
@superlou
Copy link
Owner

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 #14.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants