digitalmars.D.ide - VisualD installer does not find visual studio 2019 community edition
- exo1 (8/8) Jun 08 2020 Hello,
- exo1 (40/50) Jun 08 2020 Okay so I reinstalled 4th time by first cleaning up with
- Seb (6/12) Jun 08 2020 Pragma(printf) and friends are a very recent addition from the
- Rainer Schuetze (8/58) Jun 08 2020 How did you install VS? Latest version? Visual D searches the
- exo1 (44/52) Jun 09 2020 I had both vs 2019 build tools and vs 2019 community installed.
- exo1 (5/7) Jun 09 2020 Those errors are no more. Yay!!!
- exo1 (5/12) Jun 09 2020 Also "VisualD -> Compile and Run" does not seem to work. "Compile
- Rainer Schuetze (3/17) Jun 09 2020 Are you using a VS project, or are you just editing source files that
- exo1 (5/25) Jun 10 2020 I get all 3 of these issues (autocomplete issue, run issue, no
- exo1 (6/36) Jun 13 2020 Just an update: "VisualD -> Compile and Run" does run. Its just
- Rainer Schuetze (7/41) Jun 13 2020 Thanks for reporting back, I couldn't reproduce because I have the
- blizzard (5/5) Jul 20 2020 Hey Rainer Schuetze,
- exo1 (8/9) Jun 09 2020 This version seems to be crashing on a fresh project created
- Rainer Schuetze (3/18) Jun 09 2020 Memory usage should be similar to what the compiler is using (with -lowm...
- Rainer Schuetze (3/18) Jun 10 2020 You can use "dub generate visuald" to generate a VS solution. This
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?
Jun 08 2020
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- tudio?view=vs-2019) and this time VisualD got installed. 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 :(
Jun 08 2020
On Monday, 8 June 2020 at 11:23:49 UTC, exo1 wrote:On Monday, 8 June 2020 at 11:05:10 UTC, exo1 wrote:Pragma(printf) and friends are a very recent addition from the latest release: https://dlang.org/changelog/2.092.0.html#printfParams2 You could temporarily try to use 2.091 which should probably fix this issue until VisualD has been updated.[...]Okay so I reinstalled 4th time by first cleaning up with InstallCleanup.exe (https://docs.microsoft.com/en-us/visualstudio/install/remove-visual- tudio?view=vs-2019) and this time VisualD got installed. [...]
Jun 08 2020
On 08/06/2020 13:23, exo1 wrote:On Monday, 8 June 2020 at 11:05:10 UTC, exo1 wrote: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...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.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
Jun 08 2020
On Tuesday, 9 June 2020 at 06:26:21 UTC, Rainer Schuetze wrote: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...I had both vs 2019 build tools and vs 2019 community installed. So, when I tried to install VisualD the first time, I got options for integrating it with both the build tools and community, whether I selected both build tools and community or just community did not matter because it only installed the files into build tools folders and not into community. So after that I uninstalled build tools, and then VisualD installer stopped showing me both build tools and community. (Also to note that the community edition was previously installed with installation nickname 2, however now I changed the nickname by modifying some files found on a answer to a stackoverflow question). Now, I though that something might have gone wrong because of the nickname stuff, so I "repaired" VS2019 community edition. Still Visual D installer did not work. Then I reinstalled VS2019 community edition, it did not work. I tried starting the installer from a cmd prompt by first running vcvars_all.bat and then the installer, still nothing. I tried a few more things, it did not work. So then finally I found out about clean uninstall which deletes every registry keys or whatever files it had created on disk as well. So I ran InstallCleanup.exe, uninstalled VS completely, reinstalled and then it finally worked. (Also, to note that I restarted my computer everytime I repaired/reinstalled/did any changes to VS installation)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-beta1I will try this updated version. However, what about these errors - ``` 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. ``` I tried the older DMD version that comes bundled with VisualD installation and I get these errors on that version as well.
Jun 09 2020
On Tuesday, 9 June 2020 at 07:00:19 UTC, exo1 wrote:I will try this updated version. However, what about these errors -Those errors are no more. Yay!!! However, go to definition for overloaded procs show a list of overloads instead of automatically going to the correct one. I thought the DMD engine was supposed to work automatically?
Jun 09 2020
On Tuesday, 9 June 2020 at 07:15:25 UTC, exo1 wrote:On Tuesday, 9 June 2020 at 07:00:19 UTC, exo1 wrote:Also "VisualD -> Compile and Run" does not seem to work. "Compile and Debug" & "Compile and Disassemble" work. And, it does not display any errors in the code, not even when I save my code.I will try this updated version. However, what about these errors -Those errors are no more. Yay!!! However, go to definition for overloaded procs show a list of overloads instead of automatically going to the correct one. I thought the DMD engine was supposed to work automatically?
Jun 09 2020
On 09/06/2020 09:23, exo1 wrote:On Tuesday, 9 June 2020 at 07:15:25 UTC, exo1 wrote:Are you using a VS project, or are you just editing source files that you build through dub?On Tuesday, 9 June 2020 at 07:00:19 UTC, exo1 wrote:Also "VisualD -> Compile and Run" does not seem to work. "Compile and Debug" & "Compile and Disassemble" work. And, it does not display any errors in the code, not even when I save my code.I will try this updated version. However, what about these errors -Those errors are no more. Yay!!! However, go to definition for overloaded procs show a list of overloads instead of automatically going to the correct one. I thought the DMD engine was supposed to work automatically?
Jun 09 2020
On Wednesday, 10 June 2020 at 06:55:10 UTC, Rainer Schuetze wrote:On 09/06/2020 09:23, exo1 wrote:I get all 3 of these issues (autocomplete issue, run issue, no errors issue) on a project created through VS2019 template for VisualD. (Dunno whether it works with project created through dub init or not because dmdserver currently crashes for it.)On Tuesday, 9 June 2020 at 07:15:25 UTC, exo1 wrote:Are you using a VS project, or are you just editing source files that you build through dub?On Tuesday, 9 June 2020 at 07:00:19 UTC, exo1 wrote:Also "VisualD -> Compile and Run" does not seem to work. "Compile and Debug" & "Compile and Disassemble" work. And, it does not display any errors in the code, not even when I save my code.I will try this updated version. However, what about these errors -Those errors are no more. Yay!!! However, go to definition for overloaded procs show a list of overloads instead of automatically going to the correct one. I thought the DMD engine was supposed to work automatically?
Jun 10 2020
On Wednesday, 10 June 2020 at 08:20:32 UTC, exo1 wrote:On Wednesday, 10 June 2020 at 06:55:10 UTC, Rainer Schuetze wrote:Just an update: "VisualD -> Compile and Run" does run. Its just that it does not open the console window, instead it prints the output in the Output window of Visual Studio. The issue is that the extension does not show the Output window on its own. Instead we have to manually open the Output window to see the output.On 09/06/2020 09:23, exo1 wrote:I get all 3 of these issues (autocomplete issue, run issue, no errors issue) on a project created through VS2019 template for VisualD. (Dunno whether it works with project created through dub init or not because dmdserver currently crashes for it.)On Tuesday, 9 June 2020 at 07:15:25 UTC, exo1 wrote:Are you using a VS project, or are you just editing source files that you build through dub?On Tuesday, 9 June 2020 at 07:00:19 UTC, exo1 wrote:Also "VisualD -> Compile and Run" does not seem to work. "Compile and Debug" & "Compile and Disassemble" work. And, it does not display any errors in the code, not even when I save my code.I will try this updated version. However, what about these errors -Those errors are no more. Yay!!! However, go to definition for overloaded procs show a list of overloads instead of automatically going to the correct one. I thought the DMD engine was supposed to work automatically?
Jun 13 2020
On 13/06/2020 09:15, exo1 wrote:On Wednesday, 10 June 2020 at 08:20:32 UTC, exo1 wrote:Thanks for reporting back, I couldn't reproduce because I have the output open at all times. The output pane should be switched to "Visual D", though. I think I have a fix for the crashing dmdserver, but Microsoft just broke "Find in files" for visuald projects in their latest update. I'm still trying to figure this one out for the next beta.On Wednesday, 10 June 2020 at 06:55:10 UTC, Rainer Schuetze wrote:Just an update: "VisualD -> Compile and Run" does run. Its just that it does not open the console window, instead it prints the output in the Output window of Visual Studio. The issue is that the extension does not show the Output window on its own. Instead we have to manually open the Output window to see the output.On 09/06/2020 09:23, exo1 wrote:I get all 3 of these issues (autocomplete issue, run issue, no errors issue) on a project created through VS2019 template for VisualD. (Dunno whether it works with project created through dub init or not because dmdserver currently crashes for it.)On Tuesday, 9 June 2020 at 07:15:25 UTC, exo1 wrote:Are you using a VS project, or are you just editing source files that you build through dub?On Tuesday, 9 June 2020 at 07:00:19 UTC, exo1 wrote:Also "VisualD -> Compile and Run" does not seem to work. "Compile and Debug" & "Compile and Disassemble" work. And, it does not display any errors in the code, not even when I save my code.I will try this updated version. However, what about these errors -Those errors are no more. Yay!!! However, go to definition for overloaded procs show a list of overloads instead of automatically going to the correct one. I thought the DMD engine was supposed to work automatically?
Jun 13 2020
Hey Rainer Schuetze, I also get the no errors issue sometimes. However, killing the dmdserver.exe process fixes it. Can you please add an option to the plugin which enables us to autokill-and-restart dmdserver every `x` minutes.
Jul 20 2020
On Tuesday, 9 June 2020 at 06:26:21 UTC, Rainer Schuetze wrote:I've made a new beta updated to dmd 2.092:This version seems to be crashing on a fresh project created through `dub init`. According to windows task manager, dmdserver goes up to about 41mb memory, then crashes, then the extensions restarts dmdserver, it goes up to about 41mb memory, then crashes again. (does not seem to crash with a D project created through VS template, however it takes 500mb ram for a hello world project)
Jun 09 2020
On 09/06/2020 09:37, exo1 wrote:On Tuesday, 9 June 2020 at 06:26:21 UTC, Rainer Schuetze wrote:I can reproduce this. Will have to investigate...I've made a new beta updated to dmd 2.092:This version seems to be crashing on a fresh project created through `dub init` According to windows task manager, dmdserver goes up to about 41mb memory, then crashes, then the extensions restarts dmdserver, it goes up to about 41mb memory, then crashes again.(does not seem to crash with a D project created through VS template, however it takes 500mb ram for a hello world project)Memory usage should be similar to what the compiler is using (with -lowmem).
Jun 09 2020
On 09/06/2020 09:37, exo1 wrote:On Tuesday, 9 June 2020 at 06:26:21 UTC, Rainer Schuetze wrote:You can use "dub generate visuald" to generate a VS solution. This better integrates building and debugging and doesn't crash the dmdserver.I've made a new beta updated to dmd 2.092:This version seems to be crashing on a fresh project created through `dub init`. According to windows task manager, dmdserver goes up to about 41mb memory, then crashes, then the extensions restarts dmdserver, it goes up to about 41mb memory, then crashes again. (does not seem to crash with a D project created through VS template, however it takes 500mb ram for a hello world project)
Jun 10 2020