These are chat archives for ensime/ensime-atom

13th
Aug 2015
Matthew de Detrich
@mdedetrich
Aug 13 2015 00:31
@hedefalk autocomplete appears to be working now, thanks!
Matthew de Detrich
@mdedetrich
Aug 13 2015 00:41
@hedefalk Another thing, if your dependencies update, is it standard to run gen-ensime again, or is that something that ensime should automatically do?
also is there a typesafe refactor command, similar to what is available in intellij
Matthew de Detrich
@mdedetrich
Aug 13 2015 01:35
Also autocomplete does work, but it does seem to be fairly slow, I assume this is due to the presentation compiler (I am comparing my experience with Intellij)
Viktor Hedefalk
@hedefalk
Aug 13 2015 06:02

@mdedetrich Yes, for now you need to run gen-ensime. It might be a feature in the future to optionally monitor .sbt and generate. Should be fairly simple, but some people handwrite .ensime so needs to be optional.

No refactoring yet.

Yeah, it might be a bit slow that autocomplete. It might be possible to do something better. I'm using also the simple scala plugin and get a lot of dups, for instance two "import" if I write "imp" - one from scala-plugin and one from ensime. Don't think it is possible to overwrite other packages autocomplete suggestions, but I'm going to try to see what I can do.

Matthew de Detrich
@mdedetrich
Aug 13 2015 06:14
@hedefalk Is there a reason why you don’t just use ensime directly?
Viktor Hedefalk
@hedefalk
Aug 13 2015 07:16
I don't want to reinvent anything. In particular I'm using syntax highlighting from language-scala package since i don't want to fork the grammar. I'm going to try hard to add semantic highlighting non-intrusively when i that times come.
Matthew de Detrich
@mdedetrich
Aug 13 2015 07:18
ah I see
Viktor Hedefalk
@hedefalk
Aug 13 2015 08:20
But it sometimes seems hard. I often get the urge to just brew my own instead of relying on other packages since it often seems easier. For instance, what do you think about making a specific ensime-version of autocomplete that is triggered manually? As I mentioned before, since I rely on language-scala atom package I get dups in autocomplete when just adding stuff from ensime. It would be easy to just copy the autocomplete code into my own thing and trigger via tab or something on just scala-files. But I will first try to see if it is possible to make it play nice together with existing autocomplete providers.
Ghost
@ghost~540393fe163965c9bc2018ce
Aug 13 2015 09:55
emacs has a big advantage here of a huge ecosystem
Viktor Hedefalk
@hedefalk
Aug 13 2015 10:39
@fommil Blabla. :)
Rory Graves
@rorygraves
Aug 13 2015 10:49
@hedefalk What @fommil failed to mention - is it has 300 plugins to do the job, no two actually work together.
Viktor Hedefalk
@hedefalk
Aug 13 2015 11:09
ctrl-c ctrl-s? meta-x? meta = escape on mac? gah. Don't have the energy. My motor memory also makes have to map caps-lock to ctrl since the ctrl of the sunrays I learnt Emacs on was placed there. But I never got it comfy enough.
Matthew de Detrich
@mdedetrich
Aug 13 2015 11:17
@rorygraves Indeed, thats what happens when you have a completely open plugin system with no interfaces, its just chaos to get plugins to speak together. Kinda shows the downsides of LISP in a nutshell