Jump to page: 1 2
Thread overview
Visual D 1.2.0-rc1 available
Dec 19
Rumbu
Dec 24
rumbu
4 days ago
Rainer Schuetze
November 29
Hi,

I have just uploaded a new release candidate for Visual D at https://github.com/dlang/visuald/releases/tag/v1.2.0-rc1

Major changes:

  * added support for VS 2022
  * dmdserver updated to frontend of DMD 2.098.0
  * added option to restart the semantic analysis if memory
    usage goes above a given threshold
  * fixed bugzilla 21877: VS2019 crash with "Show parameter
    storage class at call site"
  * full installer now bundled with DMD 2.098.0 and LDC 1.28.0

Known issues:

  * the signing certificate of the D Language Foundation has
    expired, so the installer cannot be signed digitally ATM
    (the same as the dmd installer).
  * parallel compilation of D files in VC projects doesn't
    work in VS 2022.

Cheers,
Rainer
November 29
On Monday, 29 November 2021 at 08:47:25 UTC, Rainer Schuetze wrote:
> Hi,
>
> I have just uploaded a new release candidate for Visual D at https://github.com/dlang/visuald/releases/tag/v1.2.0-rc1
>
> Major changes:
>
>   * added support for VS 2022
>   * dmdserver updated to frontend of DMD 2.098.0
>   * added option to restart the semantic analysis if memory
>     usage goes above a given threshold
>   * fixed bugzilla 21877: VS2019 crash with "Show parameter
>     storage class at call site"
>   * full installer now bundled with DMD 2.098.0 and LDC 1.28.0
>
> Known issues:
>
>   * the signing certificate of the D Language Foundation has
>     expired, so the installer cannot be signed digitally ATM
>     (the same as the dmd installer).
>   * parallel compilation of D files in VC projects doesn't
>     work in VS 2022.
>
> Cheers,
> Rainer

THANK YOU
December 13
On Monday, 29 November 2021 at 08:47:25 UTC, Rainer Schuetze wrote:
> Hi,
>
> I have just uploaded a new release candidate for Visual D at https://github.com/dlang/visuald/releases/tag/v1.2.0-rc1
>
> Major changes:
>
>   * added support for VS 2022
>   * dmdserver updated to frontend of DMD 2.098.0
>   * added option to restart the semantic analysis if memory
>     usage goes above a given threshold
>   * fixed bugzilla 21877: VS2019 crash with "Show parameter
>     storage class at call site"
>   * full installer now bundled with DMD 2.098.0 and LDC 1.28.0
>
> Known issues:
>
>   * the signing certificate of the D Language Foundation has
>     expired, so the installer cannot be signed digitally ATM
>     (the same as the dmd installer).
>   * parallel compilation of D files in VC projects doesn't
>     work in VS 2022.
>
> Cheers,
> Rainer

Thank You very much. Did not looked in release section on GitHub as 1.1.0 is seen on project page. I find VS code somewhat cumbersome and prefer Visual Studio.
December 19
On Monday, 29 November 2021 at 08:47:25 UTC, Rainer Schuetze wrote:
> Hi,
>
> I have just uploaded a new release candidate for Visual D at https://github.com/dlang/visuald/releases/tag/v1.2.0-rc1
>
> Major changes:
>
>   * added support for VS 2022
>   * dmdserver updated to frontend of DMD 2.098.0
>   * added option to restart the semantic analysis if memory
>     usage goes above a given threshold
>   * fixed bugzilla 21877: VS2019 crash with "Show parameter
>     storage class at call site"
>   * full installer now bundled with DMD 2.098.0 and LDC 1.28.0
>
> Known issues:
>
>   * the signing certificate of the D Language Foundation has
>     expired, so the installer cannot be signed digitally ATM
>     (the same as the dmd installer).
>   * parallel compilation of D files in VC projects doesn't
>     work in VS 2022.
>
> Cheers,
> Rainer


Visual D is crashing Visual Studio 2022 after doing a fresh install of both. This seems to be happening when debugging and adding breakpoints. Did not happen with 2019 so it's either the VisualD release(I think I was using the same) or due to 2022.

I think simply trying to debug a program will give you the crash.
December 19
On Sunday, 19 December 2021 at 16:53:44 UTC, Complexity wrote:
> On Monday, 29 November 2021 at 08:47:25 UTC, Rainer Schuetze wrote:
>> Hi,
>>
>> I have just uploaded a new release candidate for Visual D at https://github.com/dlang/visuald/releases/tag/v1.2.0-rc1
>>
>> Major changes:
>>
>>   * added support for VS 2022
>>   * dmdserver updated to frontend of DMD 2.098.0
>>   * added option to restart the semantic analysis if memory
>>     usage goes above a given threshold
>>   * fixed bugzilla 21877: VS2019 crash with "Show parameter
>>     storage class at call site"
>>   * full installer now bundled with DMD 2.098.0 and LDC 1.28.0
>>
>> Known issues:
>>
>>   * the signing certificate of the D Language Foundation has
>>     expired, so the installer cannot be signed digitally ATM
>>     (the same as the dmd installer).
>>   * parallel compilation of D files in VC projects doesn't
>>     work in VS 2022.
>>
>> Cheers,
>> Rainer
>
>
> Visual D is crashing Visual Studio 2022 after doing a fresh install of both. This seems to be happening when debugging and adding breakpoints. Did not happen with 2019 so it's either the VisualD release(I think I was using the same) or due to 2022.
>
> I think simply trying to debug a program will give you the crash.

Debugging works for me in VS 2022.

What is not working for me:
- in x64 mode the linker cannot find phobos64.lib, I must add manually windows/lib64 to lib paths in the project configuration.
- icons for visualdproj files are blank.
- syntax highlighting does not work after several edits. It can be linked to dmdserver.exe, I end with 5-6 instances after some time.

In VS2019 it still works like a charm, thank you Rainer for the good work.

December 24
On 19/12/2021 21:47, Rumbu wrote:
> Debugging works for me in VS 2022.
> 
> What is not working for me:
> - in x64 mode the linker cannot find phobos64.lib, I must add manually windows/lib64 to lib paths in the project configuration.

Is this with the D specific projects (visualdproj), or the Visual C++ integration? I cannot reproduce it neither with DMD nor LDC.

If the former, please enable verbose compilation to see what library paths are used for linking.

> - icons for visualdproj files are blank.

Indeed, I see it here, too.

> - syntax highlighting does not work after several edits. It can be linked to dmdserver.exe, I end with 5-6 instances after some time.

I don't see dmdserver.exe crashing or restarting, but there seems to be something odd as it sometimes produces very few completions after initialization. Loading another file helped in this case.

> 
> In VS2019 it still works like a charm, thank you Rainer for the good work.
> 

Thanks, good to hear :-)
December 24

On 19/12/2021 17:53, Complexity wrote:
> On Monday, 29 November 2021 at 08:47:25 UTC, Rainer Schuetze wrote:
>> Hi,
>>
>> I have just uploaded a new release candidate for Visual D at https://github.com/dlang/visuald/releases/tag/v1.2.0-rc1
>>
>> Major changes:
>>
>>   * added support for VS 2022
>>   * dmdserver updated to frontend of DMD 2.098.0
>>   * added option to restart the semantic analysis if memory
>>     usage goes above a given threshold
>>   * fixed bugzilla 21877: VS2019 crash with "Show parameter
>>     storage class at call site"
>>   * full installer now bundled with DMD 2.098.0 and LDC 1.28.0
>>
>> Known issues:
>>
>>   * the signing certificate of the D Language Foundation has
>>     expired, so the installer cannot be signed digitally ATM
>>     (the same as the dmd installer).
>>   * parallel compilation of D files in VC projects doesn't
>>     work in VS 2022.
>>
>> Cheers,
>> Rainer
> 
> 
> Visual D is crashing Visual Studio 2022 after doing a fresh install of both. This seems to be happening when debugging and adding breakpoints. Did not happen with 2019 so it's either the VisualD release(I think I was using the same) or due to 2022.
> 
> I think simply trying to debug a program will give you the crash.

Cannot reproduce here, e.g. on the dmdserver executable. Do you find a crashdump of devenv.exe in c:\Users\name\AppData\CrashDumps?
December 24

On Friday, 24 December 2021 at 11:06:42 UTC, Rainer Schuetze wrote:

>

On 19/12/2021 21:47, Rumbu wrote:

>

Debugging works for me in VS 2022.

What is not working for me:

  • in x64 mode the linker cannot find phobos64.lib, I must add manually windows/lib64 to lib paths in the project configuration.

If the former, please enable verbose compilation to see what library paths are used for linking.

I looked into the build logs and there are 2 diferences when loading the same project:

VS2019:

set LIB=C:\D\dmd2\windows\bin\..\lib64

VS2022:

set LIB=

VS2019:

"C:\Program Files (x86)\VisualD\pipedmd.exe" -msmode -deps x64\Debug\WindowsApp11.lnkdep "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Tools\MSVC\14.29.30133\bin\HostX86\x86\link.exe" @C:\Users\Rumbu\source\repos\WindowsApp11\x64\Debug\WindowsApp11.link.rsp

VS2022:

"C:\Program Files (x86)\VisualD\pipedmd.exe" -msmode -deps x64\Debug\WindowsApp1.lnkdep link.exe @C:\Users\Rumbu\source\repos\WindowsApp11\x64\Debug\WindowsApp11.link.rsp
>

I don't see dmdserver.exe crashing or restarting, but there seems to be something odd as it sometimes produces very few completions after initialization. Loading another file helped in this case.

Unfortunately, I cannot find a pattern, sometimes works for hours perfectly, sometimes it does basic syntax highlighting only (does not colorize recognized symbols, only keywords). Restarting doesn't help either, after some time it's comming back to the normal experience, irrespective of my actions (opening another doc, killing dmdserver or DParserComServer). Anyway, as a bottom line, it's more stable with DParserComServer than with dmdserver, tried both.

December 25

On 24/12/2021 19:13, rumbu wrote:
> On Friday, 24 December 2021 at 11:06:42 UTC, Rainer Schuetze wrote:
>> On 19/12/2021 21:47, Rumbu wrote:
>>> Debugging works for me in VS 2022.
>>>
>>> What is not working for me:
>>> - in x64 mode the linker cannot find phobos64.lib, I must add manually windows/lib64 to lib paths in the project configuration.
>>
>> If the former, please enable verbose compilation to see what library paths are used for linking.
>>
> 
> I looked into the build logs and there are 2 diferences when loading the same project:
> 
> VS2019:
> ```
> set LIB=C:\D\dmd2\windows\bin\..\lib64
> ```
> VS2022:
> ```
> set LIB=

This setting is read from the [Environment64] section in sc.ini in the dmd bin folder. Are you using different compiler versions in the different VS?

> ```
> 
> 
> VS2019:
> ```
> "C:\Program Files (x86)\VisualD\pipedmd.exe" -msmode -deps x64\Debug\WindowsApp11.lnkdep "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Tools\MSVC\14.29.30133\bin\HostX86\x86\link.exe" @C:\Users\Rumbu\source\repos\WindowsApp11\x64\Debug\WindowsApp11.link.rsp
> ```
> 
> VS2022:
> ```
> "C:\Program Files (x86)\VisualD\pipedmd.exe" -msmode -deps x64\Debug\WindowsApp1.lnkdep link.exe @C:\Users\Rumbu\source\repos\WindowsApp11\x64\Debug\WindowsApp11.link.rsp
> ```
> 

This suggests that sc.ini isn't found at all. In that case the setting from Tools->Options->Projects and Solutions->Visual D Settings->DMD Directories->x64->Linker isn't applied (which is a bug).

Please verify your settings on that page.

> 
>> I don't see dmdserver.exe crashing or restarting, but there seems to be something odd as it sometimes produces very few completions after initialization. Loading another file helped in this case.
>>
> 
> Unfortunately, I cannot find a pattern, sometimes works for hours perfectly, sometimes it does basic syntax highlighting only (does not colorize recognized symbols, only keywords). Restarting doesn't help either, after some time it's comming back to the normal experience, irrespective of my actions (opening another doc, killing dmdserver or DParserComServer). Anyway, as a bottom line, it's more stable with DParserComServer than with dmdserver, tried both.
> 
> 

DParserComServer is a C# implementation of a semantic analysis, but hasn't been updated in years, so I consider it legacy. I'd recommend it only to people that cannot run the dmdserver 64-bit executable. Being C#, it can handle errors and exceptions more gracefully.

I suspect that crashes depend on the actual code being analyzed. While editing, bogus code can crash the dmd frontend or cause ICEs. Maybe some logging can be added that allows to analyze them better.
January 12
On Friday, 24 December 2021 at 11:12:51 UTC, Rainer Schuetze wrote:
>
>
> On 19/12/2021 17:53, Complexity wrote:
>> On Monday, 29 November 2021 at 08:47:25 UTC, Rainer Schuetze wrote:
>>> Hi,
>>>
>>> I have just uploaded a new release candidate for Visual D at https://github.com/dlang/visuald/releases/tag/v1.2.0-rc1
>>>
>>> Major changes:
>>>
>>>   * added support for VS 2022
>>>   * dmdserver updated to frontend of DMD 2.098.0
>>>   * added option to restart the semantic analysis if memory
>>>     usage goes above a given threshold
>>>   * fixed bugzilla 21877: VS2019 crash with "Show parameter
>>>     storage class at call site"
>>>   * full installer now bundled with DMD 2.098.0 and LDC 1.28.0
>>>
>>> Known issues:
>>>
>>>   * the signing certificate of the D Language Foundation has
>>>     expired, so the installer cannot be signed digitally ATM
>>>     (the same as the dmd installer).
>>>   * parallel compilation of D files in VC projects doesn't
>>>     work in VS 2022.
>>>
>>> Cheers,
>>> Rainer
>> 
>> 
>> Visual D is crashing Visual Studio 2022 after doing a fresh install of both. This seems to be happening when debugging and adding breakpoints. Did not happen with 2019 so it's either the VisualD release(I think I was using the same) or due to 2022.
>> 
>> I think simply trying to debug a program will give you the crash.
>
> Cannot reproduce here, e.g. on the dmdserver executable. Do you find a crashdump of devenv.exe in c:\Users\name\AppData\CrashDumps?

No, it doens't produce it, although I had a few crash dumps from 12-30-21 involving the dmd server so maybe it was them.

c:\Users\name\AppData\Local\CrashDumps BTW

It does it both with x64 and x86 although I tried to run it with buggy code(trying to modify some code and had a bug(array accessor) and it crashed in to the debugger but at the entrypoint code with no real information about what happened(but since it was a minor change and an array index error(length instead of length-1 basically) it was obvious where the bug was. So without BP's it does go in to the debugger, more or less but with BP's it crashes VS entirely.

This is 100% due to upgrading to Visual Studio 2022. I tried another project and I get "cannot launch debbugger on ... hr 89710016".

I also get the error
Severity	Code	Description	Project	File	Line	Suppression State
Error		Error: file `"Plotter.py"` cannot be found or not in a path specified with `-J`
C:\Projects\XXX\XXX.d(125): Path(s) searched (as provided by `-J`):		C:\Projects\XXX\XXX.d	125	

Which never occurred before upgrading and seems to not stop the program from working(I have the -J and since it's compiling it is finding the file so this seems to be another bug, maybe related).

Clearly something is off. I'm pretty sure just a few days ago I was able to run that same project(a different one and a new project I created recently under the new VS) so the issue with launching the debugger maybe because it crashed when I was trying to debug the first project and now it can't launch.

I'll reboot and try again later. (The reason I say it must have worked is because I had a BP set in the project and don't remember it not working at all)

So maybe it is an issue with debug information in projects created in previous versions of VS that are not translating debug information correctly to newer projects?

If you tried it on a fresh project maybe open up an old one and see. (although I do think that the project I used was old but I heavily modified it)

Almost surely some type of memory access issue given the nature of the crash.

What happens when I place a breakpoint then run the program it does show the code and the yellow arrow on top of the red BP disk and then it shows the crash dialog about "The instruction at ... references memory at .... The memory could not be written.".

If I try to debug it then it opens up a new VS with the devenv.exe but nothing really is going on and then if I click start debugging it will run VS. If I open up the project then it says an exception is thrown with "Exception thrown at .... (comctl32.dll) in devenv.exe: 0xC00000005: Access violation writing location ....

It also says comctl32.pdb not loaded but not sure if that has anything to do with it.

Does any of this make any sense? Maybe the comctl32.dll is corrupted or versioned wrong or something?


« First   ‹ Prev
1 2