Re: New D tool releases

2016-01-15 Thread Andrei Alexandrescu via Digitalmars-d-announce

On 01/15/2016 12:52 AM, Vladimir Panteleev wrote:


What will be gained by doing so?

Can we add them as submodules and then just add them to the makefiles /
build scripts? I think this would have been a better way to include
DustMite too.


That would work, too! -- Andrei


Re: New D tool releases

2016-01-15 Thread Andrei Alexandrescu via Digitalmars-d-announce

On 01/15/2016 08:24 AM, Suliman wrote:

On Friday, 15 January 2016 at 13:00:14 UTC, Andrei Alexandrescu wrote:

On 01/15/2016 12:52 AM, Vladimir Panteleev wrote:


What will be gained by doing so?

Can we add them as submodules and then just add them to the makefiles /
build scripts? I think this would have been a better way to include
DustMite too.


That would work, too! -- Andrei


Do you have any plans to include all this stuff to DMD distrib?


I have had for a good while and shared them too. The difficulty is in 
the details. -- Andrei




Re: New D tool releases

2016-01-15 Thread Basile B. via Digitalmars-d-announce

On Friday, 15 January 2016 at 07:17:42 UTC, Brian Schott wrote:

On Friday, 15 January 2016 at 06:27:23 UTC, Basile B. wrote:

By chance it' has happend again while the console was opened:


The announce newsgroup is not a bug tracker, but this is: 
https://github.com/Hackerpilot/DCD/issues


Sorry my intention was just to get the attention of other users 
since I'm not sure if it comes from dmd 2.070-b1. Also I won't be 
able to file a good issue before several days, anyway maybe it'll 
be enough.


Re: New D tool releases

2016-01-14 Thread Andrei Alexandrescu via Digitalmars-d-announce

On 01/14/2016 04:05 AM, Brian Schott wrote:

Please see the Github links for a list of changes and issues resolved.

You may notice that they're all in Dub now. The real Brian is in
cryo-stasis in case we need him later. In order to not arouse too much
suspicion about shape-shifters these projects can still be built with
git and make.


Congrats! Could you please let the real Brian know we're waiting for a 
solution to include all of these tools in our official tools/ repo. 
Thanks! -- Andrei




Re: New D tool releases

2016-01-14 Thread tsbockman via Digitalmars-d-announce

On Thursday, 14 January 2016 at 09:05:09 UTC, Brian Schott wrote:

dfmt: Code formatter
0.4.2
http://code.dlang.org/packages/dfmt
https://github.com/Hackerpilot/dfmt/releases/tag/v0.4.2


You forgot to bump the version number:
dfmt --version
0.4.1



Re: New D tool releases

2016-01-14 Thread Suliman via Digitalmars-d-announce

dsymbol: Symbol resolution code used by DCD and D-Scanner


Could anybody explain where it can be helpful and how it's work?


Re: New D tool releases

2016-01-14 Thread Vadim Lopatin via Digitalmars-d-announce

On Thursday, 14 January 2016 at 13:27:40 UTC, Suliman wrote:

dsymbol: Symbol resolution code used by DCD and D-Scanner


Could anybody explain where it can be helpful and how it's work?


dfmt: formats source code
dfix: helps to migrate your code from older compiler versions to 
newer

D-Scanner: scans D project for potential problems/bugs




Re: New D tool releases

2016-01-14 Thread Basile B. via Digitalmars-d-announce

On Thursday, 14 January 2016 at 09:05:09 UTC, Brian Schott wrote:
Please see the Github links for a list of changes and issues 
resolved.


DCD: Auto-completion system
0.7.4
http://code.dlang.org/packages/dcd
https://github.com/Hackerpilot/DCD/releases/tag/v0.7.4


During the latest two or three hours I've encountered several DCD 
crashes, does anyone else noticed a stability problem with this 
version ?


Just before #280 it was very stable, the server could run during 
1 full week and it never crashed.


but since this fix:
- I've almost never used it (except latest two or three hours), 
so #280 is not necessarily a relevant info.

- I've build with dmd 2.070-b1


Re: New D tool releases

2016-01-14 Thread Basile B. via Digitalmars-d-announce

On Friday, 15 January 2016 at 05:58:01 UTC, Basile B. wrote:

but since this fix:
- I've almost never used it (except latest two or three hours), 
so #280 is not necessarily a relevant info.

- I've build with dmd 2.070-b1


By chance it' has happend again while the console was opened:

---
2016-01-15T07:15:45.431:autocomplete.d:getSymbolsByTokenChain:743 
Could not find declaration of "primg.txt" from position 919
2016-01-15T07:15:45.431:autocomplete.d:getDoc:67 Could not find 
symbol
2016-01-15T07:15:45.431:server.d:main:247 Request processed in 
4.87149 milliseconds

2016-01-15T07:15:47.209:server.d:main:108 Shutting down sockets...
2016-01-15T07:15:47.209:server.d:main:111 Sockets shut down.
core.exception.RangeError@src/server/autocomplete.d(754): Range 
violation


??:? _d_arraybounds [0x8fad13]
??:? server.autocomplete.__array [0x848b6c]
??:? pure nothrow @nogc @safe void 
server.autocomplete.getSymbolsByTokenChain!(std.range.__T11SortedRangeTAxS3std12experimental5lexer641__T14TokenStructureThVAyaa305_0a20202020737472696e6720636f6d6d656e743b0a20202020737472696e6720747261696c696e67436f6d6d656e743b0a0a20202020696e74206f70436d702873697a655f7420692920636f6e73742070757265206e6f7468726f77204073616665207b0a202020202020202069662028696e646578203c2069292072657475726e202d313b0a202020202020202069662028696e646578203e2069292072657475726e20313b0a202020202020202072657475726e20303b0a202020207d0a0a20202020696e74206f70436d702872656620636f6e737420747970656f66287468697329206f746865722920636f6e73742070757265206e6f7468726f77204073616665207b0a202020202020202072657475726e206f70436d70286f746865722e696e646578293b0a202020207d0aZ14TokenStructureVAyaa5_61203c2062Z.SortedRange).getSymbolsByTokenChain(dsymbol.scope_.Scope*, std.range.__T11SortedRangeTAxS3std12experimental5lexer641__T14TokenStructureThVAyaa305_0a20202020737472696e6720636f6d6d656e743b0a20202020737472696e672074!

7261696c696e67436f6d6d656e743b0a0a20202020696e74206f70436d702873697a655f7420692920636f6e73742070757265206e6f7468726f77204073616665207b0a202020202020202069662028696e646578203c2069292072657475726e202d313b0a202020202020202069662028696e646578203e2069292072657475726e20313b0a202020202020202072657475726e20303b0a202020207d0a0a20202020696e74206f70436d702872656620636f6e737420747970656f66287468697329206f746865722920636f6e73742070757265206e6f7468726f77204073616665207b0a202020202020202072657475726e206f70436d70286f74686
??:? dsymbol.symbol.DSymbol*[] 
server.autocomplete.getSymbolsByTokenChain!(std.range.__T11SortedRangeTAxS3std12experimental5lexer641__T14TokenStructureThVAyaa305_0a20202020737472696e6720636f6d6d656e743b0a20202020737472696e6720747261696c696e67436f6d6d656e743b0a0a20202020696e74206f70436d702873697a655f7420692920636f6e73742070757265206e6f7468726f77204073616665207b0a202020202020202069662028696e646578203c2069292072657475726e202d313b0a202020202020202069662028696e646578203e2069292072657475726e20313b0a202020202020202072657475726e20303b0a202020207d0a0a20202020696e74206f70436d702872656620636f6e737420747970656f66287468697329206f746865722920636f6e73742070757265206e6f7468726f77204073616665207b0a202020202020202072657475726e206f70436d70286f746865722e696e646578293b0a202020207d0aZ14TokenStructureVAyaa5_61203c2062Z.SortedRange).getSymbolsByTokenChain(dsymbol.scope_.Scope*, std.range.__T11SortedRangeTAxS3std12experimental5lexer641__T14TokenStructureThVAyaa305_0a20202020737472696e6720636f6d6d656e743b0a20202020737472696e672074!

7261696c696e67436f6d6d656e743b0a0a20202020696e74206f70436d702873697a655f7420692920636f6e73742070757265206e6f7468726f77204073616665207b0a202020202020202069662028696e646578203c2069292072657475726e202d313b0a202020202020202069662028696e646578203e2069292072657475726e20313b0a202020202020202072657475726e20303b0a202020207d0a0a20202020696e74206f70436d702872656620636f6e737420747970656f66287468697329206f746865722920636f6e73742070757265206e6f7468726f77204073616665207b0a202020202020202072657475726e206f70436d70286f746865722
??:? common.messages.AutocompleteResponse 
server.autocomplete.findDeclaration(const(common.messages.AutocompleteRequest), ref dsymbol.modulecache.ModuleCache) [0x7ef19f]

??:? _Dmain [0x849b1c]
??:? 
_D2rt6dmain211_d_run_mainUiPPaPUAAaZiZ6runAllMFZ9__lambda1MFZv 
[0x8fcd42]
??:? void rt.dmain2._d_run_main(int, char**, extern (C) int 
function(char[][])*).tryExec(scope void delegate()) [0x8fcc80]
??:? void rt.dmain2._d_run_main(int, char**, extern (C) int 
function(char[][])*).runAll() [0x8fccfe]
??:? void rt.dmain2._d_run_main(int, char**, extern (C) int 
function(char[][])*).tryExec(scope void delegate()) [0x8fcc80]

??:? _d_run_main [0x8fcbdd]
??:? main [0x84f55d]
??:? __libc_start_main [0x804dbb04]
---


Re: New D tool releases

2016-01-14 Thread Brian Schott via Digitalmars-d-announce

On Friday, 15 January 2016 at 06:27:23 UTC, Basile B. wrote:

By chance it' has happend again while the console was opened:


The announce newsgroup is not a bug tracker, but this is: 
https://github.com/Hackerpilot/DCD/issues





Re: New D tool releases

2016-01-14 Thread Øivind via Digitalmars-d-announce
On Thursday, 14 January 2016 at 15:18:09 UTC, Andrei Alexandrescu 
wrote:

On 01/14/2016 04:05 AM, Brian Schott wrote:
Please see the Github links for a list of changes and issues 
resolved.


You may notice that they're all in Dub now. The real Brian is 
in
cryo-stasis in case we need him later. In order to not arouse 
too much
suspicion about shape-shifters these projects can still be 
built with

git and make.


Congrats! Could you please let the real Brian know we're 
waiting for a solution to include all of these tools in our 
official tools/ repo. Thanks! -- Andrei


+1


Re: New D tool releases

2015-06-30 Thread Namespace via Digitalmars-d-announce

On Sunday, 28 June 2015 at 14:03:21 UTC, Dmitry wrote:

On Monday, 8 June 2015 at 19:18:03 UTC, Brian Schott wrote:

Dfmt 0.4.0-beta1 and 0.3.6
https://github.com/Hackerpilot/dfmt/releases/tag/v0.3.6


Integration with Sublime Text (I use Sublime Text 2 and Windows)
https://github.com/dmi7ry/dfmt-sublime
can anyone check?


Why not Sublime Text 3?


Re: New D tool releases

2015-06-30 Thread Dmitry via Digitalmars-d-announce

On Monday, 8 June 2015 at 19:18:03 UTC, Brian Schott wrote:

Dfmt 0.4.0-beta1 and 0.3.6
https://github.com/Hackerpilot/dfmt/releases/tag/v0.3.6


Integration with Sublime Text (I use Sublime Text 2 and Windows)
https://github.com/dmi7ry/dfmt-sublime
can anyone check?



Re: New D tool releases

2015-06-30 Thread Dmitry via Digitalmars-d-announce

On Sunday, 28 June 2015 at 14:13:06 UTC, Namespace wrote:


Why not Sublime Text 3?
I think it will be work on ST 3 also, bacause it very simple. But 
can't check.


Reasons to use ST 2, and not 3 can be different. For example: 
free version of ST 2, or some plugins which is not ported to ST 3.





Re: New D tool releases

2015-06-30 Thread Dmitry via Digitalmars-d-announce

On Sunday, 28 June 2015 at 14:13:06 UTC, Namespace wrote:


Why not Sublime Text 3?


Added small fix for ST 3.


Re: New D tool releases

2015-06-30 Thread Dmitry via Digitalmars-d-announce

Added to Package Control
https://packagecontrol.io/packages/DFormat

Tested on ST2 and ST3 (but only on Windows)



Re: New D tool releases

2015-06-13 Thread Hans-Albert Maritz via Digitalmars-d-announce

On Monday, 8 June 2015 at 19:18:03 UTC, Brian Schott wrote:

Dfix 0.2.2:
https://github.com/Hackerpilot/dfix/releases/tag/v0.2.2
* Fixed a bug that caused the string concatenation fix to be 
applied
  inside of deprecated attributes. I plan to revert this fix 
if

  dmd starts accepting `deprecated(string1 ~ string2)`

Dfmt 0.4.0-beta1 and 0.3.6
https://github.com/Hackerpilot/dfmt/releases/tag/v0.3.6
* Fix a spacing bug with function contracts

https://github.com/Hackerpilot/dfmt/releases/tag/v0.4.0-beta1
* Introduced support for `// dfmt off` and `// dfmt on` comments
* Added the ability to configure spacing around the `:` in 
selective

  imports.
* Added the ability to configure indentation of case statements.
* Added the ability to configure indentation of attribute 
declarations.

* Added the ability to configure formatting of labeled loops.

D-Scanner 0.2.0-beta1
https://github.com/Hackerpilot/Dscanner/releases/tag/0.2.0-beta1
* Fixed several bugs in the lint checks.
* Added support for generating Emacs etags files.
* `--imports` option can now work on more than one file at a 
time

* Added undocumented public declaration check.
* Added unused label check.
* Added check for variables with the same name as labels.
* Added check for redundant parenthesis.
* Added line field to ctags output to work with the Tagbar 
plugin better.
* Unused variable declaration check is now disabled inside of 
__traits

  expressions.
* Undocumented declaration check is disabled for things marked
  deprecated or @disable.
* Undocumented declaration check ignores @property functions.


Awesome tools! I implemented a syntax highlighter, as a 
replacement to the current custom lexer implementation, for 
dlangide similar to how XMLPrinter works. It was a breeze to 
implement it and resulted in a very powerful syntax highlighter.


I'm integrating the dscanner analysis tools now, but for scanning 
an entire project it would be awesome to use DCD's existing 
cache. I'm relatively new to D but I think a possible solution 
would be to implement a plugin system for DCD where applications 
can instruct DCD to dynamically load and execute the plugin 
through an interface. This would avoid the need for the IDE and 
DCD to both maintain their own cache of the parsed modules. An 
example plugin would be a dscanner analysis plugin.


Do you think this would be something of worth for me to pursue 
and possibly integrate with DCD?


Re: New D tool releases

2015-06-13 Thread Brian Schott via Digitalmars-d-announce
On Saturday, 13 June 2015 at 07:19:45 UTC, Hans-Albert Maritz 
wrote:
I'm integrating the dscanner analysis tools now, but for 
scanning an entire project it would be awesome to use DCD's 
existing cache. I'm relatively new to D but I think a possible 
solution would be to implement a plugin system for DCD where 
applications can instruct DCD to dynamically load and execute 
the plugin through an interface. This would avoid the need for 
the IDE and DCD to both maintain their own cache of the parsed 
modules. An example plugin would be a dscanner analysis plugin.


Do you think this would be something of worth for me to pursue 
and possibly integrate with DCD?


I'm working on pulling the symbol cache out of DCD for use in the 
next versions of several of my tools. Be warned that none of this 
work is stable yet, or as the old map makers used to say, Here 
be dragons:


https://github.com/Hackerpilot/dsymbol


Re: New D tool releases

2015-06-13 Thread Hans-Albert Maritz via Digitalmars-d-announce

On Saturday, 13 June 2015 at 08:51:22 UTC, Brian Schott wrote:
On Saturday, 13 June 2015 at 07:19:45 UTC, Hans-Albert Maritz 
wrote:
I'm integrating the dscanner analysis tools now, but for 
scanning an entire project it would be awesome to use DCD's 
existing cache. I'm relatively new to D but I think a possible 
solution would be to implement a plugin system for DCD where 
applications can instruct DCD to dynamically load and execute 
the plugin through an interface. This would avoid the need for 
the IDE and DCD to both maintain their own cache of the parsed 
modules. An example plugin would be a dscanner analysis plugin.


Do you think this would be something of worth for me to pursue 
and possibly integrate with DCD?


I'm working on pulling the symbol cache out of DCD for use in 
the next versions of several of my tools. Be warned that none 
of this work is stable yet, or as the old map makers used to 
say, Here be dragons:


https://github.com/Hackerpilot/dsymbol


Will you be releasing it under gpl or Boost like the other tools?


Re: New D tool releases

2015-06-09 Thread Marco Leise via Digitalmars-d-announce
Am Mon, 08 Jun 2015 19:18:02 +
schrieb Brian Schott briancsch...@gmail.com:

 Dfix 0.2.2:
 https://github.com/Hackerpilot/dfix/releases/tag/v0.2.2
 * Fixed a bug that caused the string concatenation fix to be 
 applied
inside of deprecated attributes. I plan to revert this fix if
dmd starts accepting `deprecated(string1 ~ string2)`
 
 Dfmt 0.4.0-beta1 and 0.3.6
 https://github.com/Hackerpilot/dfmt/releases/tag/v0.3.6
 * Fix a spacing bug with function contracts
 
 https://github.com/Hackerpilot/dfmt/releases/tag/v0.4.0-beta1
 * Introduced support for `// dfmt off` and `// dfmt on` comments
 * Added the ability to configure spacing around the `:` in 
 selective
imports.
 * Added the ability to configure indentation of case statements.
 * Added the ability to configure indentation of attribute 
 declarations.
 * Added the ability to configure formatting of labeled loops.
 
 D-Scanner 0.2.0-beta1
 https://github.com/Hackerpilot/Dscanner/releases/tag/0.2.0-beta1
 * Fixed several bugs in the lint checks.
 * Added support for generating Emacs etags files.
 * `--imports` option can now work on more than one file at a time
 * Added undocumented public declaration check.
 * Added unused label check.
 * Added check for variables with the same name as labels.
 * Added check for redundant parenthesis.
 * Added line field to ctags output to work with the Tagbar 
 plugin better.
 * Unused variable declaration check is now disabled inside of 
 __traits
expressions.
 * Undocumented declaration check is disabled for things marked
deprecated or @disable.
 * Undocumented declaration check ignores @property functions.

Sounds like a big step forward! One question though, what's
the rationale behind @properties not needing documentation?

-- 
Marco



Re: New D tool releases

2015-06-09 Thread Brian Schott via Digitalmars-d-announce

On Tuesday, 9 June 2015 at 14:49:38 UTC, Marco Leise wrote:

Sounds like a big step forward! One question though, what's
the rationale behind @properties not needing documentation?


The same reason that I disable that check for methods like 
getTheThing and setTheThing.