fixing a bunch of broken stuff I think

This commit is contained in:
Chris Cochrun 2022-02-25 14:16:41 -06:00
parent 0dbc3ead0e
commit 8bace887a2
1551 changed files with 299 additions and 57481 deletions

View file

@ -1 +0,0 @@
<!-- SC_OFF --><div class="md"><p>I am trying to set up pyright with pyvenv. This is what I am doing:</p> <p>I am running on fedora 35 with python 3.10 and emacs 27.2.</p> <p>I install emacs with <code>sudo dnf install emacs</code>. Then I paste this into the <code>.emacs</code> file:</p> <p><code>(require &#39;package)(add-to-list &#39;package-archives&#39;(&quot;melpa-stable&quot; . &quot;</code><a href="https://stable.melpa.org/packages/"><code>https://stable.melpa.org/packages/</code></a><code>&quot;))</code></p> <p>Then I install <code>elpy</code> and <code>pyvenv</code> (I don&#39;t think elpy is necessary) with <code>M-x package-install RET elpy RET</code> ,then I create a virtual environment with <code>M-x pyvenv-create</code> that I activate and work on, which is literally <code>M-x pyvenv-activate</code> and <code>M-x pyvenv-workon</code> I also install use-package with <code>M-x package-install RET use-package RET</code> . Finally I install <code>lsp-mode</code> using: <code>M-x package install RET lsp-mode RET</code> Then I include this to the <code>.emacs</code> file:</p> <p><code>(use-package lsp-pyright:ensure t:hook (python-mode . (lambda()(require &#39;lsp-pyright)(lsp))))</code></p> <p>But when I eval the buffer, I get the error:</p> <p><code>Error (use-package): Failed to install lsp-pyright: Package &#39;lsp-pyright&#39; is unavailable</code></p> <p><code>Error (use-package): Cannot load lsp-pyright</code></p> <p>I am not sure why I get that error or what I am doing wrong. Could it be because I am using python 3.10? I had some issues with elpy because I was using python 3.10. And more importantly, how to resolve that? I&#39;d appreciate if anyone has a tutorial on this.</p> <p>&#x200B;</p> <p>Edit: The code formatting looks awful. Sorry about that. In the <code>.emacs</code> file that formatting (indexing) is fine.</p> </div><!-- SC_ON --> &#32; submitted by &#32; <a href="https://www.reddit.com/user/carlml"> /u/carlml </a> <br/> <span><a href="https://www.reddit.com/r/emacs/comments/r35stm/unable_to_set_up_pyright_with_python_310/">[link]</a></span> &#32; <span><a href="https://www.reddit.com/r/emacs/comments/r35stm/unable_to_set_up_pyright_with_python_310/">[comments]</a></span>

View file

@ -1 +0,0 @@
<!-- SC_OFF --><div class="md"><p>Hi guys,<br/> I&#39;m trying to develop flutter apps with emacs, I&#39;ve tried <code>lsp-mode</code> + <code>lsp-dart</code> and it worked just fine... my only problem was that it was too slow, my emacs was very laggy (it might be the lsp server that is slow, but at least I could be able <code>C-n</code> <code>C-p</code> continually without lag while emacs waits for server response)... it had lots of features which probably contributed to this.</p> <p>I found <code>dart-server</code> which seems like it only requires <code>dartanalyzer</code> and not also <code>dart language server</code>, I tried it on a single test file and some features works. However, when I tried it with my flutter project it didn&#39;t work although it booted up the <code>dartanalyzer</code> I&#39;m wondering if <code>dart-server</code> still works or is a viable option for dart/flutter dev in emacs.</p> <p>Also, what&#39;re your thoughts on <code>eglot</code>, does it stay out of my way until I request for features just like <code>dart-server</code> (e.g. <code>C-c ?</code> to give details about symbol under point, or <code>M-/</code> for auto completions, rather than constant popups in miniframes and the echo area)</p> <p>This subreddit has been so helpful in my journey with emacs... thank you all</p> <p>EDIT:: sorry for wasting your time, after trying a few times, <code>dart-server</code> seems to work in the flutter project (also some things still aren&#39;t working, like <code>flycheck</code> support and intelligent completion with <code>M-/</code>). However, I&#39;m still curious about eglot... I&#39;d like some of the lsp features, but mainly on-demand</p> </div><!-- SC_ON --> &#32; submitted by &#32; <a href="https://www.reddit.com/user/hungry_m8"> /u/hungry_m8 </a> <br/> <span><a href="https://www.reddit.com/r/emacs/comments/q7sppm/does_dartserver_still_work_are_eglot_and_lspmode/">[link]</a></span> &#32; <span><a href="https://www.reddit.com/r/emacs/comments/q7sppm/does_dartserver_still_work_are_eglot_and_lspmode/">[comments]</a></span>