Re: [dylan] An experiment with IntelliJ

Robert Roland <[email protected]> Fri, 27 Sep 2013 16:06:19 +0000
Newsgroups gmane.comp.lang.dylan.gwydion.devel
Message-ID <[email protected]>
I use IntelliJ exclusively for my Java and Scala development, and I even own a personal license to the Ultimate edition. (Their Doomsday sale was awesome.) I'd definitely use / help extend this.

I think basic syntax highlighting will work fine, and I would tie to dswank for more complex parsing / code completion / etc, just like dime.

I saw a mention of Cmd-click on an identifier in this thread - in IntelliJ, that takes you to the source where that identifier is defined. It would probably be best to maintain that, with a separate way to take you to the docs. There may be a keystroke / click combo that does that, but I seem to always have Javadocs open in a browser anyhow.

On Sep 27, 2013, at 4:06 AM, "Bruce Mitchener" <[email protected]<mailto:[email protected]>> wrote:

Hey all,

I had a crazy idea this week to see about adding at least some Dylan support to the IntelliJ IDE via a plugin. It is pretty well suited to custom language plugins with plugins and / or full IDEs existing for Java, Scala, Python, Ruby, PHP, Objective C, C++, Lua, Erlang, Haskell and a number of other languages. Some of these are actual products from JetBrains (maker of IntelliJ) while others are open source or community projects.

I've got a start that identifies files by their extension (.dylan, .lid, .intr) and has the start of a parser for LID files (including syntax highlighting):

    https://github.com/dylan-foundry/DeftIDEA

I plan to start lexing Dylan and then syntax highlighting for Dylan will work (without a full blown parser).

I'd be interested in talking about this more, especially if some others out there would like to help extend it. There are a lot of examples for how to do things given the number of open source plugins (and that the core of IntelliJ is all open source), so it is pretty easy to get a lot of things working.

Easy things that I could see happening in the future:


  *   Support for running dylan-compiler and identifying warnings, serious warnings and errors.
  *   Lexing Dylan to provide proper syntax highlighting.
  *   Accessing some of the data from the Dylan compiler to provide feedback.
  *   Starting to parse Dylan into IntelliJ's PSI (like an AST) for doing completion and so on.
  *   Improving the LID file lexer and parser so that we can highlight files that don't exist, improper usage of the Dylan extension (a warning), and other IDE-like things.

Anyone interested in helping out? I've already gotten a contribution of 3 icons for the file types!  So far, this is a lot easier going than writing Eclipse plugins was in the past.

 - Bruce

_______________________________________________
hackers mailing list
[email protected]<mailto:[email protected]>
https://lists.opendylan.org/mailman/listinfo/hackers

_______________________________________________
hackers mailing list
[email protected]
https://lists.opendylan.org/mailman/listinfo/hackers