yade-pkg team mailing list archive
-
yade-pkg team
-
Mailing list archive
-
Message #00035
Re: [Yade-dev] Initial ideas for the yade-pkg team
Things that could work maybe :
- launching yade in debug mode from kdevelop (I think I tried and it
didn't work, but it could be tried again)
This is solved. It works now (thx. Vaclav for the python hint).
- auto-follow code style (note it would need to choose a code style
first). I suspect code style is stored in something like
~/.kdev/session/yade, not in the project options directly, so not
commitable, but I could double-check that.
I tried creating a yade-indent indentation mode. It works, but it is not
possible to commit.
When you open a project, it creates a file like
.kde/share/apps/kdevelop/sessions/{22df4cab-d638-4179-a5de-7d5090807a07}/sessionrc
In this file, the indentation options are defined like in the example
below (defining and using model "User1" labeled "yade-indent").
Consequence : indentation is attached to a session, not a project. I'm
sure one could hack this and make an installation procedure that would
add indent options inside sessionrc, but the "easiest" way is that the
user will paste the code below in his own session... still painfull.
Sourceformatter includes configurable space managment around brackets
and operators, one-liner for statements, blocks breaking/collapsing, and
indentation.
[SourceFormatter]
ModelinesEnabled=true
text/x-c++hdr=kdevastyle||User1
text/x-c++src=kdevastyle||User1
text/x-chdr=kdevastyle||ANSI
text/x-csharp=kdevastyle||ANSI
text/x-csrc=kdevastyle||ANSI
text/x-java=kdevastyle||ANSI
[SourceFormatter][kdevastyle][User1]
Caption=yade-indent
Content=BlockBreak=false,BlockBreakAll=false,BlockIfElse=false,Brackets=,BracketsCloseHeaders=false,Fill=Tabs,FillCount=1
Bruno
References