From: Evgeniy Dushistov <dushistov@mail.ru>
To: emacs-devel@gnu.org
Subject: Re: Project detection and configuration (Was: IDE)
Date: Thu, 15 Oct 2015 02:34:11 +0300 [thread overview]
Message-ID: <20151014233410.GA10264@whiterain> (raw)
In-Reply-To: <87a8rlcuhu.fsf@fimbulvetr.bsc.es>
On Wed, Oct 14, 2015 at 05:58:21PM +0200, Lluís wrote:
>
> As Eric pointed out, most of the user-facing features of an IDE depend on some
> underlying support to detect and configure projects.
>
> Now, it is not clear what "detect and configure" really means, but it seems that
> EDE (CEDET's project management component) is not fully satisfying or simple
> enough to extend/configure at this point in time.
>
> I've formed my own opinions on how this could be improved, but I would like to
> hear what others think before discussing how to do it. So, what is required from
> "project management"? A few things quickly come into mind:
>
> * Repository
> ** Detect the root directory that conforms a checked-out repository
> ** Ignore repository-specific files on other components
> ** Interact with repo-management tools?
>
"magit" detect repo root automatically, you just call "magit-status"
in buffer mapped to file/directory inside repo and it show right stuff,
may be just create "vc-status" that call "vc-dir" with relevant dir?
Anyway why do something about this, "vc-" and "magit-" good enough,
is any IDE do better stuff using information about project?
> * Project information
> ** Name, version, homepage, etc
>
IMHO, never used this information in any IDE, except name.
> * Build system
Actually if we talk about C/C++ open source project this is a key for
all other features.
Almost all C/C++ open source project have makefile/cmake file/scons etc,
and thats all. IDE must parse them and exctract information about:
- how to compile exactly one source file (to get auto completion,
refactoring, right syntax highlight, warning/errors during typing [like flymake] etc)
- what executable files was created (to make possible click Debug/Run,
to run valgrind with it, excract gcov information etc)
And cedet have framework for this, it can parse makefile/cmake, plus
you can easily extend it to support new build system, writing something
like this:
(defclass my-ede-cpp-root-project (ede-cpp-root-project eieio-instance-tracker)
(
(custom_build_cmd :initarg :custom_build_cmd
:initform ""
:type string
:custom string
:documentation "Set this field to shell command for build your project")
(path_to_exe :initarg :path_to_exe
:initfrom ""
:type string
:custom string
:documentation "This field hold path to your project")
)
"My class for ede projects"
:method-invocation-order :depth-first
)
So it would be great to finish makefile/cmake support in EDE, plus
some easy way to get from EDE information about exact file: includes, defines, plus
flags like -std=c++11
--
/Evgeniy
next prev parent reply other threads:[~2015-10-14 23:34 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-10-14 15:58 Project detection and configuration (Was: IDE) Lluís
2015-10-14 16:13 ` Project detection and configuration John Wiegley
2015-10-14 23:34 ` Evgeniy Dushistov [this message]
2015-10-16 21:04 ` Lluís
2015-10-15 4:44 ` Project detection and configuration (Was: IDE) Dmitry Gutov
2015-10-16 21:24 ` Project detection and configuration Lluís
2015-10-15 12:51 ` David Kastrup
2015-10-16 21:08 ` Lluís
2015-10-16 23:21 ` John Wiegley
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20151014233410.GA10264@whiterain \
--to=dushistov@mail.ru \
--cc=emacs-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).