These are chat archives for ensime/ensime-atom

31st
Jan 2016
Srepfler Srdan
@schrepfler
Jan 31 2016 00:00
I missed cmd-shift-P Ensime: Start.
in the Getting started
how about the difference between gen-ensime and gen-ensime-project?
Ghost
@ghost~540393fe163965c9bc2018ce
Jan 31 2016 00:13
That's what I mean, are you reading the docs or do you just see the command?
There should be an SBT task description, also linked from the ensime.org build tools -> page
Srepfler Srdan
@schrepfler
Jan 31 2016 01:02
I’m reading the docs, but for me it’s not clear as I’m a sbt newbie as well
gen-ensime — Generate a .ensime for the project (takes space-separated parameters to restrict to subprojects).
gen-ensime-project — Generate a project/.ensime for the project definition.
while I could guess the first generates some ensime data over the project
I’m not sure what the other one will do
Ghost
@ghost~540393fe163965c9bc2018ce
Jan 31 2016 01:12
You don't know what the project definition is?
The definition of your project, not the project itself
It used to be called gen-ensime-meta but that confused people even more.
Ghost
@ghost~540393fe163965c9bc2018ce
Jan 31 2016 01:21
Perhaps that doc string should be expanded. PRW
Srepfler Srdan
@schrepfler
Jan 31 2016 14:45
I think these days if one starts from scratch using the base sbt file does its job, one fiddles with that project directory only in anger
so we typically one doesn't know the difference
Richard Dallaway
@d6y
Jan 31 2016 19:53
I’m having a look at bringing up scala doc in atom. Rought idea: ctrl+alt+d looks up the doc for the thing under your cursor (or selected). Probably opens the content in a new atom tab. Not got very far yet.
I see I can ask ENSIME for DocUriAtPointReq and I get back something that looks handy:
incoming: {
  "callId":11,
   "payload”:{
       “typehint":"StringResponse”,
       “text":"docs/scala-library-2.11.7-javadoc.jar/index.html#scala.Predef$@String=String”
     }
}
Ghost
@ghost~540393fe163965c9bc2018ce
Jan 31 2016 19:55
That's hosted at the same location as the websockets server
Richard Dallaway
@d6y
Jan 31 2016 19:55
Should I be asking ENSIME for the URI to that doc?
Ah… right… so I can prepaend something to that text to get a URI I can open.
Ghost
@ghost~540393fe163965c9bc2018ce
Jan 31 2016 19:56
Btw, have you tried navigating to the /doc URL at that server? Try it :wink:
/docs
Just needs a search bar, right?
Richard Dallaway
@d6y
Jan 31 2016 19:58
Ok - maybe this isn’t going to be as tricky as I thought.
thank you
Ghost
@ghost~540393fe163965c9bc2018ce
Jan 31 2016 19:59
It's incredibly useful, especially when using Java libraries
Richard Dallaway
@d6y
Jan 31 2016 20:01
OK - enough hacking for tonight. Thanks for the help.