August 06, 2017
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.
>


August 06, 2017
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 <kozzi11@gmail.com> 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.
>>
>
>


August 06, 2017
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
August 06, 2017
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
August 06, 2017
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.
August 06, 2017
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
>


August 06, 2017
After reinstaling serve-d-git it is working ok for me now

On Sun, Aug 6, 2017 at 4:28 PM, Daniel Kozak <kozzi11@gmail.com> 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
>>
>
>


August 06, 2017
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":{"dynamicRegistration":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", {"settings":{"d":{"aggressiveUpdate":true,"dcdClientPath":"dcd-client","dcdServerPath":"dcd-server","dfmtPath":"dfmt","dscannerPath":"dscanner","dubArchType":"","dubBuildType":"","dubCompiler":"","dubConfiguration":"","dubPath":"dub","enableAutoComplete":true,"enableDubLinting":true,"enableFormatting":false,"enableLinting":true,"enableSDLLinting":true,"enableStaticLinting":true,"neverUseDub":false,"overrideDfmtEditorconfig":true,"projectImportPaths":[],"servedPath":"\/home\/soulsbane\/.local\/share\/code-d\/bin\/serve-d\/serve-d","stdlibPath":["\/usr\/include\/dmd\/phobos","\/usr\/include\/dmd\/druntime\/import"]},"dfmt":{"alignSwitchStatements":true,"braceStyle":"allman","compactLabeledStatements":true,"outdentAttributes":true,"selectiveImportSpace":true,"spaceAfterCast":true,"splitOperatorAtLineEnd":false,"templateConstraintStyle":"conditional_newline_indent"},"editor":{"acceptSuggestionOnCommitCharacter":true,"acceptSuggestionOnEnter":"on","accessibilitySupport":"auto","autoClosingBrackets":true,"autoIndent":true,"codeLens":true,"cursorBlinking":"blink","cursorStyle":"line","detectIndentation":true,"dragAndDrop":true,"emptySelectionClipboard":true,"find":{"autoFindInSelection":false,"seedSearchStringFromSelection":true},"folding":true,"fontFamily":"Mononoki","fontLigatures":false,"fontSize":14,"fontWeight":"normal","formatOnPaste":false,"formatOnSave":false,"formatOnType":false,"glyphMargin":true,"hideCursorInOverviewRuler":false,"insertSpaces":false,"letterSpacing":0,"lineHeight":0,"lineNumbers":"relative","links":true,"matchBrackets":true,"minimap":{"enabled":true,"maxColumn":120,"renderCharacters":true,"showSlider":"mouseover"},"mouseWheelScrollSensitivity":1,"mouseWheelZoom":false,"multiCursorModifier":"alt","occurrencesHighlight":true,"overviewRulerBorder":true,"overviewRulerLanes":3,"parameterHints":true,"quickSuggestions":{"comments":false,"other":true,"strings":false},"quickSuggestionsDelay":10,"renderControlCharacters":false,"renderIndentGuides":true,"renderLineHighlight":"line","renderWhitespace":"none","roundedSelection":true,"rulers":[],"scrollBeyondLastLine":true,"selectionClipboard":true,"selectionHighlight":true,"showFoldingControls":"mouseover","snippetSuggestions":"inline","stablePeek":false,"suggestFontSize":0,"suggestLineHeight":0,"suggestOnTriggerCharacters":true,"tabCompletion":false,"tabSize":4,"tokenColorCustomizations":null,"trimAutoWhitespace":true,"useTabStops":true,"wordBasedSuggestions":true,"wordSeparators":"`~!@#$%^&*()-=+[{]}\\|;:'\",.<>\/?","wordWrap":"off","wordWrapColumn":80,"wrappingIndent":"same"},"git":{"autofetch":true,"autorefresh":true,"checkoutType":"all","confirmSync":true,"countBadge":"all","defaultCloneDirectory":null,"enableSmartCommit":false,"enabled":true,"ignoreLegacyWarning":false,"ignoreLimitWarning":false,"path":null}}})
2017-08-06T13:30:00.558:app.d:__lambda11:233 Processing as notification
2017-08-06T13:30:00.558:extension.d:configNotify:195 Received configuration
Server: 2017-08-06T13:30:00.562:server.d:main:133 Starting up...

Server: 2017-08-06T13:30:00.562:server.d:main:167 Listening at /tmp/workspace-d-sock3OY

Server: 2017-08-06T13:30:00.790:first.d:visit:411 Could not resolve location of module 'ldc/intrinsics'

Server: 2017-08-06T13:30:00.858:first.d:visit:411 Could not resolve location of module 'gcc/builtins'

Server: 2017-08-06T13:30:01.178:server.d:main:184 Import directories:

Server:     /usr/include/dmd/phobos

Server:     /usr/include/dmd/druntime/import

Server: 2017-08-06T13:30:01.178:server.d:main:190 103530 symbols cached.

Server: 2017-08-06T13:30:01.178:server.d:main:191 Startup completed in 615.97 milliseconds.

2017-08-06T13:30:01.179:extension.d:startDCD:247 Imports: ["/home/soulsbane/Projects/D/coded", "/home/soulsbane/Projects/D/coded/source"]
Server: 2017-08-06T13:30:01.179:server.d:main:334 Request processed in 0.185816 milliseconds

2017-08-06T13:30:01.183:app.d:main:209 Has Message
2017-08-06T13:30:01.183:app.d:main:211 Message: RequestMessage(none, "textDocument/didOpen", {"textDocument":{"languageId":"d","text":"import std.stdio;\n\nvoid main()\n{\n\twriteln(\"Edit source\/app.d to start your project.\");\n}\n","uri":"file:\/\/\/home\/soulsbane\/Projects\/D\/coded\/source\/app.d","version":1}})
2017-08-06T13:30:01.193:app.d:__lambda11:233 Processing as notification
2017-08-06T13:30:01.193:extension.d:onDidOpenDocument:1075 ["file:///home/soulsbane/Projects/D/coded/source/app.d":FileOpenInfo(2017-Aug-06 13:30:01.193524)]
2017-08-06T13:30:01.193:app.d:main:209 Has Message
2017-08-06T13:30:01.193:app.d:main:211 Message: RequestMessage(1, "served/getConfig", null)
2017-08-06T13:30:01.203:app.d:__lambda10:217 Processing as request
2017-08-06T13:30:01.203:app.d:processRequest:76 Calling getConfig
2017-08-06T13:30:01.203:app.d:__lambda10:219 Responding with: ResponseMessage(1, "", null(ResponseError))
2017-08-06T13:30:01.203:jsonrpc.d:send:66 {"id":1,"jsonrpc":"2.0","result":""}
2017-08-06T13:30:01.203:app.d:main:209 Has Message
2017-08-06T13:30:01.203:app.d:main:211 Message: RequestMessage(2, "served/getArchType", null)
2017-08-06T13:30:01.214:app.d:__lambda10:217 Processing as request
2017-08-06T13:30:01.214:app.d:processRequest:76 Calling getArchType
2017-08-06T13:30:01.214:app.d:__lambda10:219 Responding with: ResponseMessage(2, "x86_64", null(ResponseError))
2017-08-06T13:30:01.214:jsonrpc.d:send:66 {"id":2,"jsonrpc":"2.0","result":"x86_64"}
2017-08-06T13:30:01.214:app.d:main:209 Has Message
2017-08-06T13:30:01.214:app.d:main:211 Message: RequestMessage(3, "served/getBuildType", null)
2017-08-06T13:30:01.224:app.d:__lambda10:217 Processing as request
2017-08-06T13:30:01.224:app.d:processRequest:76 Calling getBuildType
2017-08-06T13:30:01.224:app.d:__lambda10:219 Responding with: ResponseMessage(3, "debug", null(ResponseError))
2017-08-06T13:30:01.224:jsonrpc.d:send:66 {"id":3,"jsonrpc":"2.0","result":"debug"}
2017-08-06T13:30:01.224:app.d:main:209 Has Message
2017-08-06T13:30:01.224:app.d:main:211 Message: RequestMessage(4, "served/getCompiler", null)
2017-08-06T13:30:01.234:app.d:__lambda10:217 Processing as request
2017-08-06T13:30:01.234:app.d:processRequest:76 Calling getCompiler
2017-08-06T13:30:01.234:app.d:__lambda10:219 Responding with: ResponseMessage(4, "", null(ResponseError))
2017-08-06T13:30:01.234:jsonrpc.d:send:66 {"id":4,"jsonrpc":"2.0","result":""}
2017-08-06T13:30:01.234:app.d:main:209 Has Message
2017-08-06T13:30:01.234:app.d:main:211 Message: RequestMessage(5, "textDocument/codeAction", {"context":{"diagnostics":[]},"range":{"end":{"character":6,"line":0},"start":{"character":0,"line":0}},"textDocument":{"uri":"file:\/\/\/home\/soulsbane\/Projects\/D\/coded\/source\/app.d"}})
2017-08-06T13:30:01.244:app.d:__lambda10:217 Processing as request
2017-08-06T13:30:01.244:app.d:processRequest:76 Calling provideCodeActions
2017-08-06T13:30:01.245:app.d:__lambda10:219 Responding with: ResponseMessage(5, [], null(ResponseError))
2017-08-06T13:30:01.245:jsonrpc.d:send:66 {"id":5,"jsonrpc":"2.0","result":[]}

August 06, 2017
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.
August 08, 2017
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!