D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 21877 - VS2019 crash with "Show parameter storage class at call site"
Summary: VS2019 crash with "Show parameter storage class at call site"
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: visuald (show other issues)
Version: D2
Hardware: x86_64 Windows
: P1 normal
Assignee: No Owner
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-04-29 10:38 UTC by Blatnik
Modified: 2021-11-29 08:37 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Blatnik 2021-04-29 10:38:56 UTC
When "Show parameter storage class at call site", deleting more than 1 line of code where the storage class is shown will crash visual studio.

This makes the feature almost unusable. The crash happens very frequently in code that uses it, and it's taxing to think about the possibility of crashes every time I delete a block of code.

Steps to reproduce:

Visual studio version: 16.9.4
Visuald version: 1.1.1

Start a new project (or open any old D project). Make sure "Show parameter storage class at call site" is enabled in the settings. Then add the following function anywhere in the code.

void crash()
{
  void foo(ref int bar);
  int bar;
  foo(bar);
  foo(bar);
}

Now wait for the little "ref" to appear in the calls to foo. Then select both lines calling foo, and delete them.
Comment 1 Rainer Schuetze 2021-11-29 08:37:38 UTC
fix finally released in https://github.com/dlang/visuald/releases/tag/v1.2.0-rc1