VisualD installer does not find visual studio 2019 community edition

Rainer Schuetze r.sagitario at gmx.de
Tue Jun 9 06:26:21 UTC 2020



On 08/06/2020 13:23, exo1 wrote:
> On Monday, 8 June 2020 at 11:05:10 UTC, exo1 wrote:
>> Hello,
>> I am trying to install visualD because it supports using dmd-fe to
>> provide goto-def and is therefore much better than the vscode extension.
>> However, its installer is not able to detect vs2019-community. I have
>> reinstalled (vs2019 + c++ for desktop) three times and restarted
>> afterwards, and still the installer does not detect it.
>> Has anybody been able to use VisualD 0.52.0 with vs2019 community?
> 
> Okay so I reinstalled 4th time by first cleaning up with
> InstallCleanup.exe
> (https://docs.microsoft.com/en-us/visualstudio/install/remove-visual-studio?view=vs-2019)
> and this time VisualD got installed.

How did you install VS? Latest version? Visual D searches the
installation database in the registry to find an appropriate entry. Not
sure what can go wrong there...

> However when I enable "Experimental: use DMD parsing engine for semantic
> analysis", i get lots of weird errors during intellisense (not during
> building) -
> ```
> errors in imported modules:
> Error: C:\D\dmd2\src\phobos\std\stdio.d(16): module `core.stdc.stddef`
> import `wchar_t` not found
> Error: C:\D\dmd2\src\druntime\import\core\stdc\time.d(151): undefined
> identifier `time_t`, did you mean function `time`?
> Error: C:\D\dmd2\src\druntime\import\core\stdc\time.d(151): undefined
> identifier `time_t`, did you mean function `time`?
> Error: C:\D\dmd2\src\druntime\import\core\stdc\time.d(153): undefined
> identifier `time_t`, did you mean function `time`?
> Error: C:\D\dmd2\src\druntime\import\core\stdc\time.d(153): undefined
> identifier `tm`
> etc. etc.
> ```
> and
> ```
> errors in imported modules:
> Error: C:\D\dmd2\src\druntime\import\core\stdc\stdio.d(1243):
> unrecognized `pragma(printf)`
> Error: C:\D\dmd2\src\druntime\import\core\stdc\stdio.d(1246):
> unrecognized `pragma(scanf)`
> Error: C:\D\dmd2\src\druntime\import\core\stdc\stdio.d(1249):
> unrecognized `pragma(printf)`
> Error: C:\D\dmd2\src\druntime\import\core\stdc\stdio.d(1252):
> unrecognized `pragma(scanf)`
> Error: C:\D\dmd2\src\druntime\import\core\stdc\stdio.d(1255):
> unrecognized `pragma(printf)`
> etc. etc.
> ```
> 
> DMD parsing engine was the only reason I tried to use VisualD. However
> it does not work for some reason. Maybe it needs to be updated for the
> latest D release? IDK. The editor tooling for Dlang is really bad :(
> 

As Sebastian mentioned this looks like a mismatch between compiler
versions, the parsing engine doesn't know these pragmas yet.

I've made a new beta updated to dmd 2.092:

https://github.com/dlang/visuald/releases/tag/v1.0.0-beta1


More information about the Digitalmars-d-ide mailing list