Visual Studio Crashing when opening D project
Joe at bloow.edu
Joe at bloow.edu
Mon Oct 16 15:17:05 UTC 2023
On Monday, 16 October 2023 at 15:10:06 UTC, Joe wrote:
> I do not know if this is a specific D issue but for some reason
> a D project I have refuses to open. It opens by showing the
> main VS window then immediately goes away(no crash error).
>
> I installed the latest VD and it allowed me to open it the
> first time. I have deleted the .vs to no avail. I have also ran
> with /Log and it let me open it the first time.
>
> It seems that there is something in the project(it is a
> completely new project except for a small amount of code I
> copied and pasted(it was a new project I started).
>
> Not sure what is causing it. Other non-d projects are working
> but some other VD projects I tried to open also started having
> the problem. Seems to be a relatively new issue that happened
> in the last few days.
>
> Only real thing I did was install some hyper V type of stuff
> and I think windows updated. I didn't update VD before this
> started happening so either it is a HD or MEM corruption issue
> or some issue with configurations. I can't find out where any
> logs for VS or VD are stored to get any meaningful results.
>
> I have had issues recently with VD though having to do with
> intellisense where it would just silently crash when using
> intellisense. I had to disable it. I imagine it is connected.
I opened up a python project and tried to copy a line and it
crashed. Looked at the VS logs:
<entry>
<record>357</record>
<time>2023/10/16 14:58:48.091</time>
<type>Error</type>
<source>VisualStudio</source>
<description>No InprocServer32 registered for package [Visual
D]</description>
<guid>{002A2DE9-8BB6-484D-987F-7E4AD4084715}</guid>
<hr>0x80070008</hr>
<path>C:\Program Files (x86)\VisualD\x64\visuald.dll</path>
This was after upgrading VD to the latest beta.
I uninstalled VD and the crashing stopped but I got an error
about the SQL server: SetSite failed for package [Microsoft SQL
Server Data Tools] but it could be ignored.
<entry>
<record>3675</record>
<time>2023/10/16 15:01:37.801</time>
<type>Error</type>
<source>VisualStudio</source>
<description>SetSite failed for package [Microsoft SQL Server
Data Tools]Source: 'System.Core' Description: Object
reference not set to an instance of an
object.
System.NullReferenceException: Object
reference not set to an instance of an object.

at System.Collections.Generic.HashSet`1.AddIfNotPresent(T
value)
 at
Microsoft.VisualStudio.Data.Tools.Package.Explorers.SqlServerObjectExplorer.SqlServerObjectExplorerContextMenuController.RegisterForCommandRouting(IOleCommandTarget target)
 at Microsoft.VisualStudio.Data.Tools.Package.DesignerServices.DatabaseChangesManager.Initialize()
 at System.Threading.Tasks.Task.Execute()
--- End of stack trace from previous location where exception was thrown ---
 at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
 at Microsoft.VisualStudio.Services.VsTask.RethrowException(AggregateException e)
 at Microsoft.VisualStudio.Services.VsTask.InternalGetResult(Boolean ignoreUIThreadCheck)</description>
<guid>{00FEE386-5F9F-4577-99F4-F327FAFC0FB9}</guid>
<hr>0x80004003 - E_POINTER</hr>
<errorinfo></errorinfo>
</entry>
I'm updating VS now and I will install VD again later to see if
anything has changed. These issues only started happening
recently.. I did update windows about a week ago but I don't know
if it is related.
More information about the Digitalmars-d-ide
mailing list