Introducing Rust Language Server, source release

原文自:internals.rust-lang.org
作者:jntrnr

@nrc and I have been hard at work on IDE support, turning the Rust Language Server demo weshowed at RustConf2.2kinto an actual project. Today, we're making our firstsource pre-alpha release1.8kof the project.

We're excited about what the RLS project will mean for Rust development in the future. The RLS aims at being a self-contained, full-featured application for IDE support. By being self-contained, and following a simple protocol, all the core IDE functionality will be available to any editor.

At least... that's the theory. We still have a lot of work to get there. We need developers, testers, and people with expertise in various editors to help flesh out the support and make sure the experience feels good.

****The RLS is not yet ready for primetime** **. This early release may eat your hard drive or frighten your neighbors. We recommend only using the RLS with code you are making regular backups of. If you are still interested, you can get started by following theguide605.

Where we need help

First, we're looking for people who want to write code and help flesh out the RLS. There are a growing list ofissues to tackle481as well as a number of FIXMEs in the code.

If you're okay with living on the bleeding edge, we'd love to get testing feedback. Do features stop working in some cases? What were the steps that caused them to break?File an issue40and let us know.

The RLS uses theLanguage Server Protocol1.1k, a json-rpc protocol backed by Microsoft and Red Hat. It's a relatively young protocol. Currently, Eclipse and Visual Studio Code support this protocol, and it should be possible to add support to other editors. It just takes putting in the work.

What works

The current version supports the following features:

  • errors as you type
  • goto def
  • find all refsrenamingtypes/docs/doc links on hover
  • types and docs from the standard library

What doesn't work

Of course, not everything is roses. There are also some shortcomings:

  • Analysis can be slow. This is especially true for initial analysis, which has to work its way through all your dependencies.
  • Projects with dependencies that have custom build steps or compiler plugins aren't supported out of the box. To support them you need to enable the "slow, but more accurate" mode by removing the "-Zno-trans" command to the compiler in build.rs.
  • Please use caution when using this. The RLS can make updates your code when doing tasks like rename/refactor. Always check that the RLS made edits that you expected. If not, file an issue so we can follow up.

Next steps

We're currently working towards an Alpha release, which is geared towards a broader audience. To get there, we've trackingtasks242to help us reach the Alpha.

If you have any questions you can ping nrc or jntrnr on irc.mozilla.org

最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請(qǐng)聯(lián)系作者
  • 序言:七十年代末唧龄,一起剝皮案震驚了整個(gè)濱河市兼砖,隨后出現(xiàn)的幾起案子,更是在濱河造成了極大的恐慌既棺,老刑警劉巖雇初,帶你破解...
    沈念sama閱讀 222,183評(píng)論 6 516
  • 序言:濱河連續(xù)發(fā)生了三起死亡事件俯树,死亡現(xiàn)場(chǎng)離奇詭異豺鼻,居然都是意外死亡除盏,警方通過查閱死者的電腦和手機(jī),發(fā)現(xiàn)死者居然都...
    沈念sama閱讀 94,850評(píng)論 3 399
  • 文/潘曉璐 我一進(jìn)店門晨仑,熙熙樓的掌柜王于貴愁眉苦臉地迎上來褐墅,“玉大人拆檬,你說我怎么就攤上這事洪己。” “怎么了竟贯?”我有些...
    開封第一講書人閱讀 168,766評(píng)論 0 361
  • 文/不壞的土叔 我叫張陵答捕,是天一觀的道長。 經(jīng)常有香客問我屑那,道長拱镐,這世上最難降的妖魔是什么? 我笑而不...
    開封第一講書人閱讀 59,854評(píng)論 1 299
  • 正文 為了忘掉前任持际,我火速辦了婚禮沃琅,結(jié)果婚禮上,老公的妹妹穿的比我還像新娘蜘欲。我一直安慰自己益眉,他們只是感情好,可當(dāng)我...
    茶點(diǎn)故事閱讀 68,871評(píng)論 6 398
  • 文/花漫 我一把揭開白布姥份。 她就那樣靜靜地躺著郭脂,像睡著了一般。 火紅的嫁衣襯著肌膚如雪澈歉。 梳的紋絲不亂的頭發(fā)上展鸡,一...
    開封第一講書人閱讀 52,457評(píng)論 1 311
  • 那天,我揣著相機(jī)與錄音埃难,去河邊找鬼莹弊。 笑死涤久,一個(gè)胖子當(dāng)著我的面吹牛,可吹牛的內(nèi)容都是我干的忍弛。 我是一名探鬼主播拴竹,決...
    沈念sama閱讀 40,999評(píng)論 3 422
  • 文/蒼蘭香墨 我猛地睜開眼,長吁一口氣:“原來是場(chǎng)噩夢(mèng)啊……” “哼剧罩!你這毒婦竟也來了栓拜?” 一聲冷哼從身側(cè)響起,我...
    開封第一講書人閱讀 39,914評(píng)論 0 277
  • 序言:老撾萬榮一對(duì)情侶失蹤惠昔,失蹤者是張志新(化名)和其女友劉穎幕与,沒想到半個(gè)月后,有當(dāng)?shù)厝嗽跇淞掷锇l(fā)現(xiàn)了一具尸體镇防,經(jīng)...
    沈念sama閱讀 46,465評(píng)論 1 319
  • 正文 獨(dú)居荒郊野嶺守林人離奇死亡啦鸣,尸身上長有42處帶血的膿包…… 初始之章·張勛 以下內(nèi)容為張勛視角 年9月15日...
    茶點(diǎn)故事閱讀 38,543評(píng)論 3 342
  • 正文 我和宋清朗相戀三年,在試婚紗的時(shí)候發(fā)現(xiàn)自己被綠了来氧。 大學(xué)時(shí)的朋友給我發(fā)了我未婚夫和他白月光在一起吃飯的照片诫给。...
    茶點(diǎn)故事閱讀 40,675評(píng)論 1 353
  • 序言:一個(gè)原本活蹦亂跳的男人離奇死亡,死狀恐怖啦扬,靈堂內(nèi)的尸體忽然破棺而出中狂,到底是詐尸還是另有隱情,我是刑警寧澤扑毡,帶...
    沈念sama閱讀 36,354評(píng)論 5 351
  • 正文 年R本政府宣布胃榕,位于F島的核電站,受9級(jí)特大地震影響瞄摊,放射性物質(zhì)發(fā)生泄漏勋又。R本人自食惡果不足惜,卻給世界環(huán)境...
    茶點(diǎn)故事閱讀 42,029評(píng)論 3 335
  • 文/蒙蒙 一换帜、第九天 我趴在偏房一處隱蔽的房頂上張望楔壤。 院中可真熱鬧,春花似錦惯驼、人聲如沸蹲嚣。這莊子的主人今日做“春日...
    開封第一講書人閱讀 32,514評(píng)論 0 25
  • 文/蒼蘭香墨 我抬頭看了看天上的太陽端铛。三九已至,卻和暖如春疲眷,著一層夾襖步出監(jiān)牢的瞬間禾蚕,已是汗流浹背。 一陣腳步聲響...
    開封第一講書人閱讀 33,616評(píng)論 1 274
  • 我被黑心中介騙來泰國打工狂丝, 沒想到剛下飛機(jī)就差點(diǎn)兒被人妖公主榨干…… 1. 我叫王不留换淆,地道東北人哗总。 一個(gè)月前我還...
    沈念sama閱讀 49,091評(píng)論 3 378
  • 正文 我出身青樓,卻偏偏與公主長得像倍试,于是被迫代替她去往敵國和親讯屈。 傳聞我的和親對(duì)象是個(gè)殘疾皇子,可洞房花燭夜當(dāng)晚...
    茶點(diǎn)故事閱讀 45,685評(píng)論 2 360

推薦閱讀更多精彩內(nèi)容

  • 他不在身旁县习,我怎敢憂傷涮母。 到處都是乏味的句子,乏味的人躁愿,
    鴉_白閱讀 195評(píng)論 0 0
  • 每天早七晚六彤钟,兩點(diǎn)一線来候,你圍著這臺(tái)磨轉(zhuǎn)了多久,是不是每天很忙碌逸雹,卻轉(zhuǎn)來轉(zhuǎn)去轉(zhuǎn)不出這巴掌大的地方营搅,最后還是原地打轉(zhuǎn) ...
    江小朵閱讀 603評(píng)論 0 0
  • 堅(jiān)持讀詩兩個(gè)月,遇上了一群同樣喜歡用聲音表達(dá)自己的人梆砸,這讓我更加堅(jiān)定堅(jiān)持做一件事所帶來的益處转质。 讀詩的初始動(dòng)力,來...
    補(bǔ)拙莫如勤LV閱讀 291評(píng)論 0 1