Re: Visual Studio Code code-d serve-d beta release

2017-08-25 Thread Paolo Invernizzi via Digitalmars-d-announce

On Thursday, 24 August 2017 at 21:45:48 UTC, WebFreak001 wrote:
On Thursday, 24 August 2017 at 08:21:41 UTC, Paolo Invernizzi 
wrote:
On Wednesday, 23 August 2017 at 20:10:01 UTC, WebFreak001 
wrote:

[...]


Can you check?
If I want to build it, what repo and revision should I use?

[...]


git clone https://github.com/Pure-D/serve-d.git
cd serve-d
dub build --build=release


That's what I've done above in the previous post...

I was meaning, in 
`.vscode/extensions/webfreak.code-d-beta-0.17.3/bin` in the macOS 
installation there's a linux workspace-d binary.


If I want to rebuild it for macOS, what version of `workspace-d` 
have I to use?
There's no `workspace-d` source files in 
`webfreak.code-d-beta-0.17.3`, only the binary.


Thanks!

---
Paolo


Re: Visual Studio Code code-d serve-d beta release

2017-08-24 Thread WebFreak001 via Digitalmars-d-announce
On Thursday, 24 August 2017 at 08:21:41 UTC, Paolo Invernizzi 
wrote:

On Wednesday, 23 August 2017 at 20:10:01 UTC, WebFreak001 wrote:

[...]


Can you check?
If I want to build it, what repo and revision should I use?

[...]


git clone https://github.com/Pure-D/serve-d.git
cd serve-d
dub build --build=release


Re: Visual Studio Code code-d serve-d beta release

2017-08-24 Thread Paolo Invernizzi via Digitalmars-d-announce

On Wednesday, 23 August 2017 at 20:10:01 UTC, WebFreak001 wrote:
On Wednesday, 23 August 2017 at 15:41:02 UTC, Paolo Invernizzi 
wrote:

On Saturday, 5 August 2017 at 22:43:31 UTC, WebFreak001 wrote:

[...]


It seems that under macOS, the linux executable is used, with 
a fresh install...


iMac:~ pinver$ uname -a
Darwin iMac.local 17.0.0 Darwin Kernel Version 17.0.0: Wed Aug 
16 20:06:51 PDT 2017; root:xnu-4570.1.45~23/RELEASE_X86_64 
x86_64
iMac:~ pinver$ file 
/Users/pinver/.vscode/extensions/webfreak.code-d-beta-0.17.3/bin/serve-d/serve-d

/Users/pinver/.vscode/extensions/webfreak.code-d-beta-0.17.3/bin/serve-d/serve-d:
 ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, 
interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 2.6.32, 
BuildID[sha1]=788ec4845beac53f20ad0c0279f6b143bf9e42cc, with debug_info, not 
stripped

Version 0.17.3 ...

---
Paolo


uh serve-d doesn't have any prebuilt binaries yet so that is 
compiled on your PC and should be correct


Well, it would be really strange that dmd was able to compile and 
link a linux executable on my iMac, no? :-O


Anyway...

iMac:serve-d pinver$ pwd
/Users/pinver/.vscode/extensions/webfreak.code-d-beta-0.17.3/bin/serve-d
iMac:serve-d pinver$ dub build --build=release
Package xdgpaths can be upgraded from 0.2.3 to 0.2.4.
Package dub can be upgraded from 1.2.1 to 1.2.2.
Package libdparse can be upgraded from 0.7.0 to 0.7.1.
Use "dub upgrade" to perform those changes.
Performing "release" build using dmd for x86_64.
eventsystem 1.1.0: building configuration "library"...
dunit 1.0.14: building configuration "library"...
painlesstraits 0.2.0: building configuration "library"...
painlessjson 1.3.8: building configuration "library"...
dub 1.2.1: building configuration "library"...
libdparse 0.7.0: building configuration "library"...
../../../../../.dub/packages/libdparse-0.7.0/libdparse/src/dparse/ast.d(1346,10):
 Deprecation: cannot implicitly override base class method 
object.Object.opEquals with dparse.ast.Declaration.opEquals; add override 
attribute
isfreedesktop 0.1.1: building configuration "library"...
xdgpaths 0.2.3: building configuration "library"...
standardpaths 0.7.1: building configuration "default"...
workspace-d 2.10.1: building configuration "library"...
../../../../../.dub/packages/libdparse-0.7.0/libdparse/src/dparse/ast.d(1346,10):
 Deprecation: cannot implicitly override base class method 
object.Object.opEquals with dparse.ast.Declaration.opEquals; add override 
attribute
serve-d ~master: building configuration "application"...
../../../../../.dub/packages/libdparse-0.7.0/libdparse/src/dparse/ast.d(1346,10):
 Deprecation: cannot implicitly override base class method 
object.Object.opEquals with dparse.ast.Declaration.opEquals; add override 
attribute
Linking...
iMac:serve-d pinver$ file serve-d
serve-d: Mach-O 64-bit executable x86_64

Now...

iMac:bin pinver$ file 
/Users/pinver/.vscode/extensions/webfreak.code-d-beta-0.17.3/bin/workspace-d

/Users/pinver/.vscode/extensions/webfreak.code-d-beta-0.17.3/bin/workspace-d: 
ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked, 
interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 2.6.32, 
BuildID[sha1]=5cb6f08ed280d886418aeeeb4332a380d9cc44aa, not stripped

Again linux, there's no source code in the extension, so, I think 
that this binary was installed directly along with the plugin...


Can you check?
If I want to build it, what repo and revision should I use?

---
/Paolo






Re: Visual Studio Code code-d serve-d beta release

2017-08-23 Thread WebFreak001 via Digitalmars-d-announce
On Wednesday, 23 August 2017 at 15:41:02 UTC, Paolo Invernizzi 
wrote:

On Saturday, 5 August 2017 at 22:43:31 UTC, WebFreak001 wrote:

[...]


It seems that under macOS, the linux executable is used, with a 
fresh install...


iMac:~ pinver$ uname -a
Darwin iMac.local 17.0.0 Darwin Kernel Version 17.0.0: Wed Aug 
16 20:06:51 PDT 2017; root:xnu-4570.1.45~23/RELEASE_X86_64 
x86_64
iMac:~ pinver$ file 
/Users/pinver/.vscode/extensions/webfreak.code-d-beta-0.17.3/bin/serve-d/serve-d

/Users/pinver/.vscode/extensions/webfreak.code-d-beta-0.17.3/bin/serve-d/serve-d:
 ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, 
interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 2.6.32, 
BuildID[sha1]=788ec4845beac53f20ad0c0279f6b143bf9e42cc, with debug_info, not 
stripped

Version 0.17.3 ...

---
Paolo


uh serve-d doesn't have any prebuilt binaries yet so that is 
compiled on your PC and should be correct


Re: Visual Studio Code code-d serve-d beta release

2017-08-23 Thread Paolo Invernizzi via Digitalmars-d-announce

On Saturday, 5 August 2017 at 22:43:31 UTC, WebFreak001 wrote:
You might remember the blog post from a while back about 
workspace-d and serve-d, I just released a beta version on the 
visual studio marketplace that allows you to try out the latest 
features of serve-d. Note that this version might easily break 
in the future, but for the next few days I am trying to gain 
some feedback. If you are a user of code-d and if you want to 
try out the new version please uninstall code-d and install 
code-d-beta 
(https://marketplace.visualstudio.com/items?itemName=webfreak.code-d-beta, it's version 0.16.1) and just try to use it.


[...]


It seems that under macOS, the linux executable is used, with a 
fresh install...


iMac:~ pinver$ uname -a
Darwin iMac.local 17.0.0 Darwin Kernel Version 17.0.0: Wed Aug 16 
20:06:51 PDT 2017; root:xnu-4570.1.45~23/RELEASE_X86_64 x86_64
iMac:~ pinver$ file 
/Users/pinver/.vscode/extensions/webfreak.code-d-beta-0.17.3/bin/serve-d/serve-d

/Users/pinver/.vscode/extensions/webfreak.code-d-beta-0.17.3/bin/serve-d/serve-d:
 ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, 
interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 2.6.32, 
BuildID[sha1]=788ec4845beac53f20ad0c0279f6b143bf9e42cc, with debug_info, not 
stripped

Version 0.17.3 ...

---
Paolo


Re: Visual Studio Code code-d serve-d beta release

2017-08-19 Thread Soulsbane via Digitalmars-d-announce

On Saturday, 19 August 2017 at 13:07:41 UTC, WebFreak001 wrote:

On Saturday, 19 August 2017 at 05:11:35 UTC, Soulsbane wrote:

On Saturday, 19 August 2017 at 05:11:13 UTC, Soulsbane wrote:
I got it working! Nice work so far except I no longer see any 
output in the extension Code Outline's[1] pane. It works fine 
in the other version of code-d. I know this functionality 
probably won't be a priority but in my opinion having the two 
extensions work together makes writing D code really sweet.


Thanks again!


And I forgot to link the extension: 
https://marketplace.visualstudio.com/items?itemName=patrys.vscode-code-outline


cool, looks really useful! I added it to my dlang extension 
bundle 
https://marketplace.visualstudio.com/items?itemName=webfreak.dlang-bundle


Thanks a lot!


Re: Visual Studio Code code-d serve-d beta release

2017-08-19 Thread WebFreak001 via Digitalmars-d-announce

On Saturday, 19 August 2017 at 05:11:35 UTC, Soulsbane wrote:

On Saturday, 19 August 2017 at 05:11:13 UTC, Soulsbane wrote:
I got it working! Nice work so far except I no longer see any 
output in the extension Code Outline's[1] pane. It works fine 
in the other version of code-d. I know this functionality 
probably won't be a priority but in my opinion having the two 
extensions work together makes writing D code really sweet.


Thanks again!


And I forgot to link the extension: 
https://marketplace.visualstudio.com/items?itemName=patrys.vscode-code-outline


cool, looks really useful! I added it to my dlang extension 
bundle 
https://marketplace.visualstudio.com/items?itemName=webfreak.dlang-bundle


Re: Visual Studio Code code-d serve-d beta release

2017-08-18 Thread Soulsbane via Digitalmars-d-announce

On Saturday, 19 August 2017 at 05:11:13 UTC, Soulsbane wrote:

On Thursday, 10 August 2017 at 06:49:23 UTC, Dmitry wrote:

On Wednesday, 9 August 2017 at 14:39:12 UTC, WebFreak001 wrote:
try using the C/C++ Extension in vscode which uses the visual 
studio debugger, that one works great on windows for D


OMG, it's really works. Thank you alot!
I'll try to use VSCode as main IDE for D code.


I got it working! Nice work so far except I no longer see any 
output in the extension Code Outline's[1] pane. It works fine 
in the other version of code-d. I know this functionality 
probably won't be a priority but in my opinion having the two 
extensions work together makes writing D code really sweet.


Thanks again!


And I forgot to link the extension: 
https://marketplace.visualstudio.com/items?itemName=patrys.vscode-code-outline


Re: Visual Studio Code code-d serve-d beta release

2017-08-18 Thread Soulsbane via Digitalmars-d-announce

On Thursday, 10 August 2017 at 06:49:23 UTC, Dmitry wrote:

On Wednesday, 9 August 2017 at 14:39:12 UTC, WebFreak001 wrote:
try using the C/C++ Extension in vscode which uses the visual 
studio debugger, that one works great on windows for D


OMG, it's really works. Thank you alot!
I'll try to use VSCode as main IDE for D code.


I got it working! Nice work so far except I no longer see any 
output in the extension Code Outline's[1] pane. It works fine in 
the other version of code-d. I know this functionality probably 
won't be a priority but in my opinion having the two extensions 
work together makes writing D code really sweet.


Thanks again!


Re: Visual Studio Code code-d serve-d beta release

2017-08-10 Thread Dmitry via Digitalmars-d-announce

On Wednesday, 9 August 2017 at 14:39:12 UTC, WebFreak001 wrote:
try using the C/C++ Extension in vscode which uses the visual 
studio debugger, that one works great on windows for D


OMG, it's really works. Thank you alot!
I'll try to use VSCode as main IDE for D code.


Re: Visual Studio Code code-d serve-d beta release

2017-08-09 Thread WebFreak001 via Digitalmars-d-announce

On Wednesday, 9 August 2017 at 12:25:55 UTC, Dmitry wrote:

On Wednesday, 9 August 2017 at 07:22:36 UTC, Arjan wrote:

You mean the code-debug?

Any debugging in Visual Studio Code on Windows.
Because I tried some times, but it just didn't work.


try using the C/C++ Extension in vscode which uses the visual 
studio debugger, that one works great on windows for D


Re: Visual Studio Code code-d serve-d beta release

2017-08-09 Thread Dmitry via Digitalmars-d-announce

On Wednesday, 9 August 2017 at 07:22:36 UTC, Arjan wrote:

You mean the code-debug?

Any debugging in Visual Studio Code on Windows.
Because I tried some times, but it just didn't work.



Re: Visual Studio Code code-d serve-d beta release

2017-08-09 Thread Arjan via Digitalmars-d-announce

On Wednesday, 9 August 2017 at 05:24:37 UTC, Dmitry wrote:

On Tuesday, 8 August 2017 at 17:13:18 UTC, WebFreak001 wrote:
Use my other extension `code-debug` (or `Native Debug`) for 
that


Is there somebody who used it successfully on Windows?


You mean the code-debug? No because there is at least one bug in 
the mago-mi, I once had a fix for it but seem not to have made it 
into a PR. Besides that bug(fix) I did run into other issues 
preventing succesfull use, unfortunately.


code-d yes works fine on windows though, as on linux, one must 
build dcd-server and dcd-client, dscanner, (dfmt) and put it in 
the search path or provide the locations to those executables in 
the settings file. (did not yet try the new code-d serve-d)


Re: Visual Studio Code code-d serve-d beta release

2017-08-08 Thread Dmitry via Digitalmars-d-announce

On Tuesday, 8 August 2017 at 17:13:18 UTC, WebFreak001 wrote:

Use my other extension `code-debug` (or `Native Debug`) for that


Is there somebody who used it successfully on Windows?



Re: Visual Studio Code code-d serve-d beta release

2017-08-08 Thread Arjan via Digitalmars-d-announce

On Tuesday, 8 August 2017 at 17:27:30 UTC, Johannes Pfau wrote:

Am Tue, 08 Aug 2017 17:13:18 +
schrieb WebFreak001 :


On Tuesday, 8 August 2017 at 08:03:05 UTC, Arjan wrote:
> Small request: could the setting "d.stdlibPath" be inferred 
> from the compiler in use? DMD and LDC both have a conf file 
> in which the paths are already set.


oh cool I didn't know that, is there a standard path to where 
these conf files are though?


The D frontend (and therefore all compilers) already has code 
to print the import paths. Unfortunately this code is only used 
when an import is not found:

--
test.d:1:8: Fehler: module a is in file 'a.d' which cannot be 
read

 import a;
^
import path[0] = /usr/include/d
import path[1]
= /opt/gdc/lib/gcc/x86_64-unknown-linux-gnu/4.9.4/include/d
--

It should be trivial though to refactor this code and add a 
command-line switch to dump the import path. See Module::read 
in dmodule.c. If Walter opposes adding this to DMD (one more 
command line switch!) we could probably still add it to GDC 
glue. This code is all you need:


if (global.path)
{
for (size_t i = 0; i < global.path->dim; i++)
{
const char *p = (*global.path)[i];
fprintf(stderr, "import path[%llu] = %s\n", 
(ulonglong)i, p);

}
}


-- Johannes


Even better!
But when this is rejected,
one could also trigger it by feeding a deliberate wrong file to 
the compiler...
Another option is to build a simple hello.d with the -v flag 
which will reveal the location of the binary the location of the 
config file used and also the import paths and lib paths so it 
seems.




Re: Visual Studio Code code-d serve-d beta release

2017-08-08 Thread Johannes Pfau via Digitalmars-d-announce
Am Tue, 08 Aug 2017 17:13:18 +
schrieb WebFreak001 :

> On Tuesday, 8 August 2017 at 08:03:05 UTC, Arjan wrote:
> > Small request: could the setting "d.stdlibPath" be inferred 
> > from the compiler in use? DMD and LDC both have a conf file in 
> > which the paths are already set.  
> 
> oh cool I didn't know that, is there a standard path to where 
> these conf files are though?

The D frontend (and therefore all compilers) already has code to print
the import paths. Unfortunately this code is only used when an import
is not found:
--
test.d:1:8: Fehler: module a is in file 'a.d' which cannot be read
 import a;
^
import path[0] = /usr/include/d
import path[1]
= /opt/gdc/lib/gcc/x86_64-unknown-linux-gnu/4.9.4/include/d
--

It should be trivial though to refactor this code and add a
command-line switch to dump the import path. See Module::read in
dmodule.c. If Walter opposes adding this to DMD (one more command line
switch!) we could probably still add it to GDC glue. This code is all
you need:

if (global.path)
{
for (size_t i = 0; i < global.path->dim; i++)
{
const char *p = (*global.path)[i];
fprintf(stderr, "import path[%llu] = %s\n", (ulonglong)i, p);
}
}


-- Johannes



Re: Visual Studio Code code-d serve-d beta release

2017-08-08 Thread WebFreak001 via Digitalmars-d-announce

On Tuesday, 8 August 2017 at 08:03:05 UTC, Arjan wrote:
Small request: could the setting "d.stdlibPath" be inferred 
from the compiler in use? DMD and LDC both have a conf file in 
which the paths are already set.


oh cool I didn't know that, is there a standard path to where 
these conf files are though?


What about the debugging experience? Plans to integrate that as 
well?


Use my other extension `code-debug` (or `Native Debug`) for that


Re: Visual Studio Code code-d serve-d beta release

2017-08-08 Thread Arjan via Digitalmars-d-announce

On Saturday, 5 August 2017 at 22:43:31 UTC, WebFreak001 wrote:

...


Thanks a lot!

Will give it a try.

Small request: could the setting "d.stdlibPath" be inferred from 
the compiler in use? DMD and LDC both have a conf file in which 
the paths are already set.


What about the debugging experience? Plans to integrate that as 
well?


Keep up the good work!


Re: Visual Studio Code code-d serve-d beta release

2017-08-06 Thread WebFreak001 via Digitalmars-d-announce

On Sunday, 6 August 2017 at 18:32:35 UTC, Soulsbane wrote:

On Sunday, 6 August 2017 at 08:54:28 UTC, WebFreak001 wrote:

To access it open the panel at the bottom (F1 -> View: Toggle 
Output / Ctrl-K Ctrl-H) and at the top right select code-d & 
serve-d. Then just select everything, copy it and paste it 
somewhere.
I tried with a fresh dub init project and the same thing 
happens:


Update pls, there was a bug for a few hours after the initial 
release which caused this. Remove the code-d directory and reload 
the extension.


Re: Visual Studio Code code-d serve-d beta release

2017-08-06 Thread Soulsbane via Digitalmars-d-announce

On Sunday, 6 August 2017 at 08:54:28 UTC, WebFreak001 wrote:

To access it open the panel at the bottom (F1 -> View: Toggle 
Output / Ctrl-K Ctrl-H) and at the top right select code-d & 
serve-d. Then just select everything, copy it and paste it 
somewhere.

I tried with a fresh dub init project and the same thing happens:

dub version: DUB version 1.4.0, built on Jul 19 2017

serve-d version:
2017-08-06T13:30:00.496:app.d:main:195 Features fulfilled
2017-08-06T13:30:00.496:app.d:main:198 Started reading from stdin
2017-08-06T13:30:00.496:app.d:main:201 RPC started
2017-08-06T13:30:00.506:app.d:main:209 Has Message
2017-08-06T13:30:00.506:app.d:main:211 Message: RequestMessage(0, 
"initialize", 
{"capabilities":{"textDocument":{"codeAction":{"dynamicRegistration":true},"codeLens":{"dynamicRegistration":true},"completion":{"completionItem":{"snippetSupport":true},"dynamicRegistration":true},"definition":{"dynamicRegistration":true},"documentHighlight":{"dynamicRegistration":true},"documentLink":{"dynamicRegistration":true},"documentSymbol":{"dynamicRegistration":true},"formatting":{"dynamicRegistration":true},"hover":{"dynamicRegistration":true},"onTypeFormatting":{"dynamicRegistration":true},"rangeFormatting":{"dynamicRegistration":true},"references":{"dynamicRegistration":true},"rename":{"dynamicRegistration":true},"signatureHelp":{"dynamicRegistration":true},"synchronization":{"didSave":true,"dynamicRegistration":true,"willSave":true,"willSaveWaitUntil":true}},"workspace":{"applyEdit":true,"didChangeConfiguration":{"dynamicRegistration":false},"didChangeWatchedFiles":{"dynamicRegistration":true},"executeCommand":{"dynamicRegistration":true},"symbol":{"dynamicRegis!

tration":true},"workspaceEdit":{"documentChanges":true}}},"processId":4751,"rootPath":"\/home\/soulsbane\/Projects\/D\/coded","rootUri":"file:\/\/\/home\/soulsbane\/Projects\/D\/coded","trace":"off"})
2017-08-06T13:30:00.517:app.d:__lambda10:217 Processing as request
2017-08-06T13:30:00.517:app.d:processRequest:49 Initializing
2017-08-06T13:30:00.517:extension.d:initialize:136 Initializing 
serve-d for /home/soulsbane/Projects/D/coded

2017-08-06T13:30:00.517:extension.d:initialize:141 Starting dub...
2017-08-06T13:30:00.517:jsonrpc.d:showErrorMessage:310 Error 
message:  Could not initialize dub. Falling back to limited 
functionality!
2017-08-06T13:30:00.517:jsonrpc.d:send:66 
{"jsonrpc":"2.0","method":"window/showMessage","params":{"message":" Could not initialize dub. Falling back to limited functionality!","type":1}}

2017-08-06T13:30:00.517:extension.d:initialize:174 Starting dfmt
2017-08-06T13:30:00.517:extension.d:initialize:176 Starting 
dlangui
2017-08-06T13:30:00.517:extension.d:initialize:178 Starting 
importer
2017-08-06T13:30:00.517:extension.d:initialize:180 Starting 
moduleman

2017-08-06T13:30:00.517:app.d:processRequest:51 Initialized
2017-08-06T13:30:00.517:app.d:__lambda10:219 Responding with: 
ResponseMessage(0, 
{"capabilities":{"codeActionProvider":true,"codeLensProvider":null,"completionProvider":{"resolveProvider":false,"triggerCharacters":[".","("]},"definitionProvider":true,"documentFormattingProvider":true,"documentHighlightProvider":false,"documentLinkProvider":null,"documentOnTypeFormattingProvider":null,"documentRangeFormattingProvider":false,"documentSymbolProvider":true,"executeCommandProvider":null,"experimental":null,"hoverProvider":true,"referencesProvider":false,"renameProvider":false,"signatureHelpProvider":{"triggerCharacters":["(",","]},"textDocumentSync":2,"workspaceSymbolProvider":true}}, null(ResponseError))
2017-08-06T13:30:00.517:jsonrpc.d:send:66 
{"id":0,"jsonrpc":"2.0","result":{"capabilities":{"codeActionProvider":true,"codeLensProvider":null,"completionProvider":{"resolveProvider":false,"triggerCharacters":[".","("]},"definitionProvider":true,"documentFormattingProvider":true,"documentHighlightProvider":false,"documentLinkProvider":null,"documentOnTypeFormattingProvider":null,"documentRangeFormattingProvider":false,"documentSymbolProvider":true,"executeCommandProvider":null,"experimental":null,"hoverProvider":true,"referencesProvider":false,"renameProvider":false,"signatureHelpProvider":{"triggerCharacters":["(",","]},"textDocumentSync":2,"workspaceSymbolProvider":true}}}

2017-08-06T13:30:00.527:app.d:main:209 Has Message
2017-08-06T13:30:00.527:app.d:main:211 Message: 
RequestMessage(none, "initialized", {})
2017-08-06T13:30:00.537:app.d:__lambda11:233 Processing as 
notification

2017-08-06T13:30:00.537:app.d:main:209 Has Message
2017-08-06T13:30:00.537:app.d:main:211 Message: 
RequestMessage(none, "$/setTraceNotification", {"value":"off"})
2017-08-06T13:30:00.547:app.d:__lambda11:233 Processing as 
notification

2017-08-06T13:30:00.547:app.d:main:209 Has Message
2017-08-06T13:30:00.547:app.d:main:211 Message: 
RequestMessage(none, "workspace/didChangeConfiguration", 

Re: Visual Studio Code code-d serve-d beta release

2017-08-06 Thread Daniel Kozak via Digitalmars-d-announce
After reinstaling serve-d-git it is working ok for me now

On Sun, Aug 6, 2017 at 4:28 PM, Daniel Kozak  wrote:

> No I have none of those directories in my system (ArchLinux), I have
> install this aur package https://aur.archlinux.org/packages/serve-d-git
> and then code-d serve-d Beta from extensions
>
> On Sun, Aug 6, 2017 at 4:19 PM, WebFreak001 via Digitalmars-d-announce <
> digitalmars-d-announce@puremagic.com> wrote:
>
>> On Sunday, 6 August 2017 at 09:48:22 UTC, Daniel Kozak wrote:
>>
>>> https://pastebin.com/3hp2b5qy
>>>
>>> [...]
>>>
>>
>> oh right you still have the old version. Remove the serve-d directory
>> (~/.local/share/code-d, ~/.code-d or %APPDATA%/code-d) and reload vscode or
>> cd into it, git pull and dub build (on windows with --compiler=ldc2) and
>> reload
>>
>
>


Re: Visual Studio Code code-d serve-d beta release

2017-08-06 Thread WebFreak001 via Digitalmars-d-announce

On Sunday, 6 August 2017 at 12:22:43 UTC, Dmitry wrote:

On Sunday, 6 August 2017 at 08:50:38 UTC, WebFreak001 wrote:

Can you cd C:\Users\Dmitry\AppData\Roaming\code-d\bin\serve-d
and then try the following commands in this order and tell me 
if one of them worked:


dub build --compiler=ldc --build=release --combined
dub build --compiler=ldc --combined
dub build --compiler=ldc --build=release
dub build --compiler=ldc


Sure.
https://pastebin.com/FN7EezJV


hm seems like libdparse doesn't like LDC on the bottom 2 issues. 
If you fix that one line and try to compile again I think it will 
crash with a windows error that it can't access that path though, 
that's the reason why I added --combined to workspace-d IIRC.


But if you could try and fix it and recompile without --combined 
and tell me if it worked that would be great, so I can change it 
inside code-d.


Re: Visual Studio Code code-d serve-d beta release

2017-08-06 Thread WebFreak001 via Digitalmars-d-announce

On Sunday, 6 August 2017 at 09:48:22 UTC, Daniel Kozak wrote:

https://pastebin.com/3hp2b5qy

[...]


oh right you still have the old version. Remove the serve-d 
directory (~/.local/share/code-d, ~/.code-d or %APPDATA%/code-d) 
and reload vscode or cd into it, git pull and dub build (on 
windows with --compiler=ldc2) and reload


Re: Visual Studio Code code-d serve-d beta release

2017-08-06 Thread Dmitry via Digitalmars-d-announce

On Sunday, 6 August 2017 at 08:50:38 UTC, WebFreak001 wrote:

Can you cd C:\Users\Dmitry\AppData\Roaming\code-d\bin\serve-d
and then try the following commands in this order and tell me 
if one of them worked:


dub build --compiler=ldc --build=release --combined
dub build --compiler=ldc --combined
dub build --compiler=ldc --build=release
dub build --compiler=ldc


Sure.
https://pastebin.com/FN7EezJV


Re: Visual Studio Code code-d serve-d beta release

2017-08-06 Thread Daniel Kozak via Digitalmars-d-announce
It does not select compiler correctly:
[kozak@kleopatra dbsync]$ dub build --config= --arch=x86_64 --build=debug
--compiler=
Error processing arguments: Missing value for argument --compiler=.
Run 'dub help' for usage information.

On Sun, Aug 6, 2017 at 11:48 AM, Daniel Kozak  wrote:

> https://pastebin.com/3hp2b5qy
>
> On Sun, Aug 6, 2017 at 10:54 AM, WebFreak001 via Digitalmars-d-announce <
> digitalmars-d-announce@puremagic.com> wrote:
>
>> On Sunday, 6 August 2017 at 01:28:20 UTC, Soulsbane wrote:
>>
>>> On Saturday, 5 August 2017 at 22:43:31 UTC, WebFreak001 wrote:
>>>
 You might remember the blog post from a while back about workspace-d
 and serve-d, I just released a beta version on the visual studio
 marketplace that allows you to try out the latest features of serve-d. Note
 that this version might easily break in the future, but for the next few
 days I am trying to gain some feedback. If you are a user of code-d and if
 you want to try out the new version please uninstall code-d and install
 code-d-beta

>>>
>>> I'm getting this error: "Could not initialize dub. Falling back to
>>> limited functionality!". I don't get this error in the other version and
>>> dub is installed: DUB version 1.4.0, built on Jul 19 2017.
>>>
>>
>> There is a new output log at the bottom now, can you try it out on a
>> project with no personal information and send me the debug log per pastebin?
>>
>> To access it open the panel at the bottom (F1 -> View: Toggle Output /
>> Ctrl-K Ctrl-H) and at the top right select code-d & serve-d. Then just
>> select everything, copy it and paste it somewhere.
>>
>
>


Re: Visual Studio Code code-d serve-d beta release

2017-08-06 Thread Daniel Kozak via Digitalmars-d-announce
https://pastebin.com/3hp2b5qy

On Sun, Aug 6, 2017 at 10:54 AM, WebFreak001 via Digitalmars-d-announce <
digitalmars-d-announce@puremagic.com> wrote:

> On Sunday, 6 August 2017 at 01:28:20 UTC, Soulsbane wrote:
>
>> On Saturday, 5 August 2017 at 22:43:31 UTC, WebFreak001 wrote:
>>
>>> You might remember the blog post from a while back about workspace-d and
>>> serve-d, I just released a beta version on the visual studio marketplace
>>> that allows you to try out the latest features of serve-d. Note that this
>>> version might easily break in the future, but for the next few days I am
>>> trying to gain some feedback. If you are a user of code-d and if you want
>>> to try out the new version please uninstall code-d and install code-d-beta
>>>
>>
>> I'm getting this error: "Could not initialize dub. Falling back to
>> limited functionality!". I don't get this error in the other version and
>> dub is installed: DUB version 1.4.0, built on Jul 19 2017.
>>
>
> There is a new output log at the bottom now, can you try it out on a
> project with no personal information and send me the debug log per pastebin?
>
> To access it open the panel at the bottom (F1 -> View: Toggle Output /
> Ctrl-K Ctrl-H) and at the top right select code-d & serve-d. Then just
> select everything, copy it and paste it somewhere.
>


Re?? Visual Studio Code code-d serve-d beta release

2017-08-06 Thread . via Digitalmars-d-announce
I use 
  dub build --compiler=ldc2
and get these error messages below:

Installing DCD
Installing into C:\Users\admin\AppData\Roaming\code-d\bin
Deleting old installation from C:\Users\admin\AppData\Roaming\code-d\bin\DCD
Failed to install DCD
std.file.FileException@C:\temp\LDC-BUILDx86\src\ldc\runtime\phobos\std\file.d(733):
 
C:\Users\admin\AppData\Roaming\code-d\bin\DCD\.git\modules\dsymbol\objects\pack\pack-8e9b49e6972937fb54fdb5f64365e3c1e41f39ca.idx:
 Access Denied??

0x016C9F58 in ulong[] core.sys.windows.stacktrace.StackTrace.traceNoSync(uint, 
core.sys.windows.winnt.CONTEXT*)
0x016C9D02 in core.sys.windows.stacktrace.StackTrace 
core.sys.windows.stacktrace.StackTrace.__ctor(uint, 
core.sys.windows.winnt.CONTEXT*)
0x016C2B2C in object.Throwable.TraceInfo core.runtime.defaultTraceHandler(void*)
Installing dscanner
Installing into C:\Users\admin\AppData\Roaming\code-d\bin
Deleting old installation from 
C:\Users\admin\AppData\Roaming\code-d\bin\Dscanner
Failed to install Dscanner
std.file.FileException@C:\temp\LDC-BUILDx86\src\ldc\runtime\phobos\std\file.d(733):
 
C:\Users\admin\AppData\Roaming\code-d\bin\Dscanner\.git\modules\containers\objects\pack\pack-d03772eb5ea7715bd99bec2a2491e7062f8f6062.idx:
 Access Denied??

0x016C9F58 in ulong[] core.sys.windows.stacktrace.StackTrace.traceNoSync(uint, 
core.sys.windows.winnt.CONTEXT*)
0x016C9D02 in core.sys.windows.stacktrace.StackTrace 
core.sys.windows.stacktrace.StackTrace.__ctor(uint, 
core.sys.windows.winnt.CONTEXT*)
0x016C2B2C in object.Throwable.TraceInfo core.runtime.defaultTraceHandler(void*)





-- --
On Sunday, 6 August 2017 at 05:38:28 UTC, Dmitry wrote:
> On Saturday, 5 August 2017 at 22:43:31 UTC, WebFreak001 wrote:
>> try out the new version please uninstall code-d and install 
>> code-d-beta 
>> (https://marketplace.visualstudio.com/items?itemName=webfreak.code-d-beta, 
>> it's version 0.16.1) and just try to use it.
>
> Failed to install serve-d (Error code 2)
> https://pastebin.com/EMgV1tR2

Can you cd C:\Users\Dmitry\AppData\Roaming\code-d\bin\serve-d
and then try the following commands in this order and tell me if 
one of them worked:

dub build --compiler=ldc --build=release --combined
dub build --compiler=ldc --combined
dub build --compiler=ldc --build=release
dub build --compiler=ldc

Re: Visual Studio Code code-d serve-d beta release

2017-08-06 Thread WebFreak001 via Digitalmars-d-announce

On Sunday, 6 August 2017 at 01:28:20 UTC, Soulsbane wrote:

On Saturday, 5 August 2017 at 22:43:31 UTC, WebFreak001 wrote:
You might remember the blog post from a while back about 
workspace-d and serve-d, I just released a beta version on the 
visual studio marketplace that allows you to try out the 
latest features of serve-d. Note that this version might 
easily break in the future, but for the next few days I am 
trying to gain some feedback. If you are a user of code-d and 
if you want to try out the new version please uninstall code-d 
and install code-d-beta


I'm getting this error: "Could not initialize dub. Falling back 
to limited functionality!". I don't get this error in the other 
version and dub is installed: DUB version 1.4.0, built on Jul 
19 2017.


There is a new output log at the bottom now, can you try it out 
on a project with no personal information and send me the debug 
log per pastebin?


To access it open the panel at the bottom (F1 -> View: Toggle 
Output / Ctrl-K Ctrl-H) and at the top right select code-d & 
serve-d. Then just select everything, copy it and paste it 
somewhere.


Re: Visual Studio Code code-d serve-d beta release

2017-08-06 Thread WebFreak001 via Digitalmars-d-announce

On Sunday, 6 August 2017 at 05:38:28 UTC, Dmitry wrote:

On Saturday, 5 August 2017 at 22:43:31 UTC, WebFreak001 wrote:
try out the new version please uninstall code-d and install 
code-d-beta 
(https://marketplace.visualstudio.com/items?itemName=webfreak.code-d-beta, it's version 0.16.1) and just try to use it.


Failed to install serve-d (Error code 2)
https://pastebin.com/EMgV1tR2


Can you cd C:\Users\Dmitry\AppData\Roaming\code-d\bin\serve-d
and then try the following commands in this order and tell me if 
one of them worked:


dub build --compiler=ldc --build=release --combined
dub build --compiler=ldc --combined
dub build --compiler=ldc --build=release
dub build --compiler=ldc


Re: Visual Studio Code code-d serve-d beta release

2017-08-06 Thread WebFreak001 via Digitalmars-d-announce

On Sunday, 6 August 2017 at 07:18:18 UTC, Soulsbane wrote:

On Sunday, 6 August 2017 at 06:53:28 UTC, Suliman wrote:

Could anybody make Sublime plugin please?


Same person made one https://github.com/Pure-D/sublime-d. 
Although it looks like it hasn't yet been updated to take 
advantage of the latest features.


There was one update to workspace-d recently which removed the 
need for dfmt, so I guess it got a little better. But it needs 
more work to implement all features, the issue with implementing 
it is always only figuring out a way to display all the features 
in the editor UI.


Re: Visual Studio Code code-d serve-d beta release

2017-08-06 Thread Soulsbane via Digitalmars-d-announce

On Sunday, 6 August 2017 at 06:53:28 UTC, Suliman wrote:

Could anybody make Sublime plugin please?


Same person made one https://github.com/Pure-D/sublime-d. 
Although it looks like it hasn't yet been updated to take 
advantage of the latest features.


Re: Visual Studio Code code-d serve-d beta release

2017-08-06 Thread Suliman via Digitalmars-d-announce

Could anybody make Sublime plugin please?




Re: Visual Studio Code code-d serve-d beta release

2017-08-05 Thread Dmitry via Digitalmars-d-announce

On Saturday, 5 August 2017 at 22:43:31 UTC, WebFreak001 wrote:
try out the new version please uninstall code-d and install 
code-d-beta 
(https://marketplace.visualstudio.com/items?itemName=webfreak.code-d-beta, it's version 0.16.1) and just try to use it.


Failed to install serve-d (Error code 2)
https://pastebin.com/EMgV1tR2



Re: Visual Studio Code code-d serve-d beta release

2017-08-05 Thread Neia Neutuladh via Digitalmars-d-announce

On Saturday, 5 August 2017 at 22:43:31 UTC, WebFreak001 wrote:
I just released a beta version on the visual studio marketplace 
that allows you to try out the latest features of serve-d.


Awesome! Once I worked around the binary placement issue, this 
actually gave me completion options, which is better than the 
previous version ever did for me.


Re: Visual Studio Code code-d serve-d beta release

2017-08-05 Thread Soulsbane via Digitalmars-d-announce

On Saturday, 5 August 2017 at 22:43:31 UTC, WebFreak001 wrote:
You might remember the blog post from a while back about 
workspace-d and serve-d, I just released a beta version on the 
visual studio marketplace that allows you to try out the latest 
features of serve-d. Note that this version might easily break 
in the future, but for the next few days I am trying to gain 
some feedback. If you are a user of code-d and if you want to 
try out the new version please uninstall code-d and install 
code-d-beta


I'm getting this error: "Could not initialize dub. Falling back 
to limited functionality!". I don't get this error in the other 
version and dub is installed: DUB version 1.4.0, built on Jul 19 
2017.