Timestamps: 1:00 - Virtualenvwrapper 2:04 - Additional packages for working in Spacemacs 2:43 - Configuring Spacemacs 3:20 - Company-complete 4:25 - Jumping to the definitions of a variable or class 4:56 - Linting 6:16 - Yapify (Autoformatting) 7:01 - Executing scripts inside of emacs 7:32 - Code completion with LSP 8:20 - Forcing a code completion backend
dap-mode works for me out if the box in, like, 70% of time. But those other 30% are hell. It either won't work or simply crash in the middle. Definitely needs more work :)
Great video! I also notice your desktop setup, looks like you are using i3 as WM replacement for XFce. That's my setup too and I find it very convenient. Do you have a video where you show how to get it?
Hey, thanks for these videos! I'm loving to learn about spacemacs. If you could do one video about latex and auctex I would be very happy. Also, what's holding me onto pycharm is its debugging features. How does spacemacs compare in that regard?
It's possible to do in Emacs (see dap-mode) but I couldn't get it to work for this video. I personally stick with ipdb so hadn't tried dap until I made the video. If I get it working in the future I'll make a video about it. Thanks for watching :)
Did you ever figure out how to get dap-mode going? Also, I think this video could use an update, considering how prevalent LSP's have become. I don't think pyls is used much anymore (but I could be wrong)
spacemacs works fine with conda backend using the condo layer. I don't know if that was true when this video was made. It only works with the develop branch though.
Yes DAP mode setup is pain. After setting a breaking point using dap-breaking point-add I'm not sure how to proceed and run the script so that it gets picked up the the debug environment.
@@JackofSome I have solved it, but a new problem come: I must run an Inferior Python and import the same lib, then the auto-completion worked of this lib in the .py file
Is this all the configuration I need? I am on Windows 10, Python 3.9.2 interpreter installed globally and using spacemacs, everything enabled in the layers(python+lsp), I make a virtual env. with python -m venv environment-name, activate it, install the dependencies I need, for example, let's say I use Pyright as a language server(which I currently am trying to do), I install npm and using npm I install the Pyright(as it's instructed in the spacemacs docs), after am done with all the dependency installations, I open up spacemacs, TRY to switch to the virtual environment using pyvenv-workon and it spits out JSON-readtable-error 80, nothing else in the error buffer so alright, what the hell, maybe it still works... I open up a project, it RECOGNIZES the environment I activated(down there on the modeline, it spells out its name), but it doesn't see a language server? I assume using built in venv is similar to this, but I don't know what I'm doing wrong...
Everyone says nothing beats emacs. Auto complete is a basic feature for any ide. And you say it will break some times/ may not work in Some scenarios and you need manually enable it. Why would someone take this much effort to install and configure emacs. Why can’t we just use VS code, atom, something. Those are light weight and easy to configure.
I'm fastest in Spacemacs. I've tried all the other tools for a long time and I'm fastest in Spacemacs. Some times it's finicky to configure, yes. But the time lost there pales in comparison to the time gained elsewhere. At the end of the day, use what you're most comfortable with. For me that's Spacemacs :)
Hey, maybe im being the biggest noob but i dont have the 'company-complete' command, maybe im doing something wrong? Im using SPC + SPC to go to M-x and when i write comp... nothing pops up, or nothing relevant or similar to what you proposed, help please :'[ UPDATE: so i uncommented auto-completion from the dotfile and now the command company-complete appears BUUT if i try to run it, it says that company-complete is not enabled HALPP Another UPDATE: I fixed it, its kinda wonky, it doesnt look as good as yours but ill be workin on how to improve it, anyway, thanks
Oh boy. Sorry I ignore Windows so hard in my videos but I don't think my old heart could take trying to make things work in Windows. I salute your initiative sir 👍
Do you set your WORKON_HOME environment variable in the user-init section of your .spacemacs file? Because even though I define the variable in my .bash_profile file spacemacs complains - at least on my system where I run the emacsclient at startup with systemd - that WORKON_HOME is not defined. Or do you use a more elegant solution?
@@JackofSome Same problem here, after pressing " " and going to pyvenv-workon nothing happens and at the very bottom the text reads "Can't find a workon home directory, set $WORKON_HOME". It does work when launching emacs from the terminal while using the env as a source, so thank you for the help!
I see. I think you can explicitly set an environment variable in your Spacemacs init as a last resort. This is getting a little in the "not quite solvable in the RU-vid comments section" territory. I wonder if it's time for the discord server to come into existence
@@JackofSome I found out that you can activate virtualenvs in spacemacs instead of doing it in the terminal, it's just pyvenv-activate in M-x and then you goto the env directory of your choice. @dalanicolai This article helped me set-up pyvenv workon properly - realpython.com/python-virtual-environments-a-primer/ (scroll down to the "Managing Virtual Environments With virtualenvwrapper" section)