so, I followed the guide to install VS and all 4 extensions, enabled developers hook in SiS Options
Ctrl-click now crashes VS due to error in OpenHint extension
any help ? thanks
OpenHint extension crashes Visual Studio
OpenHint extension crashes Visual Studio
How did YOU get a key? All right, go in.
- sven
- Site Admin
- Posts: 1621
- Joined: Sat Jan 31, 2015 10:24 pm
- Location: British Columbia, Canada
- Contact:
Re: OpenHint extension crashes Visual Studio
Hrm. That's less than ideal. Could be some sort of versioning issue. If you go to Visual Studio -> Help -> About Microsoft Visual Studio, what do you see? I get:siyoa wrote:Ctrl-click now crashes VS due to error in OpenHint extension
Code: Select all
Microsoft Visual Studio Community 2017
Version 15.7.1
VisualStudio.15.Release/15.7.1+27703.2000
Microsoft .NET Framework
Version 4.7.02556
Installed Version: Community
Visual C++ 2017 00369-60000-00001-AA812
Microsoft Visual C++ 2017
ASP.NET and Web Tools 2017 15.0.40501.0
ASP.NET and Web Tools 2017
C# Tools 2.8.0-beta6-62830-08. Commit Hash: e595ee276d14e14bfb3eb323fb57f2aa668bddea
C# components used in the IDE. Depending on your project type and settings, a different version of the compiler may be used.
Common Azure Tools 1.10
Provides common services for use by Azure Mobile Services and Microsoft Azure Tools.
DPack 3.11.9
DPack for Visual Studio
Copyright © 2004-2018 USysWare, Inc.
For more information, visit http://www.usysware.com/dpack/ or contact us at support@usysware.com
JavaScript support via JavaScript Parser extension by Oleksandr Boiko
JavaScript Language Service 2.0
JavaScript Language Service
Microsoft JVM Debugger 1.0
Provides support for connecting the Visual Studio debugger to JDWP compatible Java Virtual Machines
Microsoft MI-Based Debugger 1.0
Provides support for connecting Visual Studio to MI compatible debuggers
Microsoft Visual C++ Wizards 1.0
Microsoft Visual C++ Wizards
Microsoft Visual Studio VC Package 1.0
Microsoft Visual Studio VC Package
NShader 2.4
NShader is an extension to Visual Studio that provides syntax highlighting for various shader languages including HLSL - GLSL - CG
NuGet Package Manager 4.6.0
NuGet Package Manager in Visual Studio. For more information about NuGet, visit http://docs.nuget.org/.
ProjectServicesPackage Extension 1.0
ProjectServicesPackage Visual Studio Extension Detailed Info
ResourcePackage Extension 1.0
ResourcePackage Visual Studio Extension Detailed Info
SvenBar 1.0
A minimalistic xcode-like navigation bar.
Visual Basic Tools 2.8.0-beta6-62830-08. Commit Hash: e595ee276d14e14bfb3eb323fb57f2aa668bddea
Visual Basic components used in the IDE. Depending on your project type and settings, a different version of the compiler may be used.
Visual Studio Code Debug Adapter Host Package 1.0
Interop layer for hosting Visual Studio Code debug adapters in Visual Studio
Visual Studio Tools for CMake 1.0
Visual Studio Tools for CMake
VSPackage1 Extension 1.0
VSPackage1 Visual Studio Extension Detailed Info
Windows Machine Learning Generator Extension 1.0
Windows Machine Learning Visual Studio Extension Detailed Info
WordWrapping 1.0
A quick and dirty matlab-style word wrapping extention. Should also work for lua.
Re: OpenHint extension crashes Visual Studio
Code: Select all
Microsoft Visual Studio Community 2017
Version 15.7.1
VisualStudio.15.Release/15.7.1+27703.2000
Microsoft .NET Framework
Version 4.7.02556
Installed Version: Community
Visual C++ 2017 00369-60000-00001-AA914
Microsoft Visual C++ 2017
ASP.NET and Web Tools 2017 15.0.40501.0
ASP.NET and Web Tools 2017
C# Tools 2.8.0-beta6-62830-08. Commit Hash: e595ee276d14e14bfb3eb323fb57f2aa668bddea
C# components used in the IDE. Depending on your project type and settings, a different version of the compiler may be used.
DPack 3.11.9
DPack for Visual Studio
Copyright © 2004-2018 USysWare, Inc.
For more information, visit http://www.usysware.com/dpack/ or contact us at support@usysware.com
JavaScript support via JavaScript Parser extension by Oleksandr Boiko
JavaScript Language Service 2.0
JavaScript Language Service
Microsoft JVM Debugger 1.0
Provides support for connecting the Visual Studio debugger to JDWP compatible Java Virtual Machines
Microsoft MI-Based Debugger 1.0
Provides support for connecting Visual Studio to MI compatible debuggers
Microsoft Visual C++ Wizards 1.0
Microsoft Visual C++ Wizards
Microsoft Visual Studio VC Package 1.0
Microsoft Visual Studio VC Package
NuGet Package Manager 4.6.0
NuGet Package Manager in Visual Studio. For more information about NuGet, visit http://docs.nuget.org/.
ProjectServicesPackage Extension 1.0
ProjectServicesPackage Visual Studio Extension Detailed Info
Test Adapter for Boost.Test 1.0
Enables Visual Studio's testing tools with unit tests written for Boost.Test. The use terms and Third Party Notices are available in the extension installation directory.
Test Adapter for Google Test 1.0
Enables Visual Studio's testing tools with unit tests written for Google Test. The use terms and Third Party Notices are available in the extension installation directory.
Visual Basic Tools 2.8.0-beta6-62830-08. Commit Hash: e595ee276d14e14bfb3eb323fb57f2aa668bddea
Visual Basic components used in the IDE. Depending on your project type and settings, a different version of the compiler may be used.
Visual Studio Code Debug Adapter Host Package 1.0
Interop layer for hosting Visual Studio Code debug adapters in Visual Studio
Visual Studio Tools for CMake 1.0
Visual Studio Tools for CMake
VSPackage1 Extension 1.0
VSPackage1 Visual Studio Extension Detailed Info
Windows Machine Learning Generator Extension 1.0
Windows Machine Learning Visual Studio Extension Detailed Info
WordWrapping 1.0
A quick and dirty matlab-style word wrapping extention. Should also work for lua.
How did YOU get a key? All right, go in.
Re: OpenHint extension crashes Visual Studio
interesting, installed VS on my laptop, added OpenHint only
I am getting error message in VS when loading SiS project (as per picture), I am not getting this one on the desktop computer
and ctrl-click produces error in SiS (as per second picture), but no VS crash on this computer
for version
I am getting error message in VS when loading SiS project (as per picture), I am not getting this one on the desktop computer
and ctrl-click produces error in SiS (as per second picture), but no VS crash on this computer
for version
Code: Select all
Microsoft Visual Studio Community 2017
Version 15.7.1
VisualStudio.15.Release/15.7.1+27703.2000
Microsoft .NET Framework
Version 4.7.02556
Installed Version: Community
ProjectServicesPackage Extension 1.0
ProjectServicesPackage Visual Studio Extension Detailed Info
VSPackage1 Extension 1.0
VSPackage1 Visual Studio Extension Detailed Info
Last edited by siyoa on Thu May 10, 2018 8:21 pm, edited 1 time in total.
How did YOU get a key? All right, go in.
Re: OpenHint extension crashes Visual Studio
VS activity log, does it help ?
Code: Select all
<entry>
<record>381</record>
<time>2018/05/10 04:42:02.867</time>
<type>Information</type>
<source>VisualStudio</source>
<description>Begin package load [VSPackage1]</description>
<guid>{1AE47B9D-A1CE-428F-B9D5-DB09B199E241}</guid>
</entry>
<entry>
<record>382</record>
<time>2018/05/10 04:42:02.931</time>
<type>Error</type>
<source>VisualStudio</source>
<description>LegacySitePackage failed for package [VSPackage1]Source: 'mscorlib' Description: Invalid class string (Exception from HRESULT: 0x800401F3 (CO_E_CLASSSTRING))
System.Runtime.InteropServices.COMException (0x800401F3): Invalid class string (Exception from HRESULT: 0x800401F3 (CO_E_CLASSSTRING))
at System.Runtime.InteropServices.Marshal.CLSIDFromProgID(String progId, Guid& clsid)
at System.Runtime.InteropServices.Marshal.GetActiveObject(String progID)
at OpenHint2017.VSPackage1.Initialize() in C:\dev\Leviathan\vs_addons\OpenHint\OpenHint2017\VSPackage1.cs:line 250
at Microsoft.VisualStudio.Shell.Package.Microsoft.VisualStudio.Shell.Interop.IVsPackage.SetSite(IServiceProvider sp)</description>
<guid>{1AE47B9D-A1CE-428F-B9D5-DB09B199E241}</guid>
<hr>800401f3</hr>
<errorinfo></errorinfo>
</entry>
<entry>
<record>383</record>
<time>2018/05/10 04:42:02.997</time>
<type>Error</type>
<source>VisualStudio</source>
<description>SetSite failed for package [VSPackage1](null)</description>
<guid>{1AE47B9D-A1CE-428F-B9D5-DB09B199E241}</guid>
<hr>800401f3</hr>
<errorinfo></errorinfo>
</entry>
<entry>
<record>384</record>
<time>2018/05/10 04:42:03.005</time>
<type>Error</type>
<source>VisualStudio</source>
<description>End package load [VSPackage1]</description>
<guid>{1AE47B9D-A1CE-428F-B9D5-DB09B199E241}</guid>
<hr>800401f3</hr>
<errorinfo></errorinfo>
</entry>
How did YOU get a key? All right, go in.
- sven
- Site Admin
- Posts: 1621
- Joined: Sat Jan 31, 2015 10:24 pm
- Location: British Columbia, Canada
- Contact:
Re: OpenHint extension crashes Visual Studio
I think that rather than trying to debug this remotely with you, I should just recommend that modders (yourself included), switch to using Visual Studio Code. VS Code is a sublime-text-like IDE that has nice integrated debugger support, and some friendly Korean game devs appear to have written a decent Lua debugger for it. I've just done some hacking to get their debugger working with SiS, so, (as of r37523) you should be able to just get setup as follows:siyoa wrote:VS activity log, does it help ?
Install VS Code.
From your VS Code extensions tab, install the devCAT Lua Debugger.
From your VS Code extensions tab, Install sven2718's openhintvc extension.
Go to File->Open Folder and open your "Lua state" dir.
In the VS Code debug pane, select launch-sis, and hit the green arrow.
Now, if everything is working, the game should start in debug mode, and you should have access to both CTRL+click hotkeys and the ability to set breakpoints / view stack traces.
Let me know if it works
- harpy eagle
- Posts: 296
- Joined: Sat Mar 10, 2018 3:25 am
Re: OpenHint extension crashes Visual Studio
That's pretty awesome, I'm sure it will come in handysven wrote:Now, if everything is working, the game should start in debug mode, and you should have access to both CTRL+click hotkeys and the ability to set breakpoints / view stack traces.
- sven
- Site Admin
- Posts: 1621
- Joined: Sat Jan 31, 2015 10:24 pm
- Location: British Columbia, Canada
- Contact:
Re: OpenHint extension crashes Visual Studio
Yeah, I admit, I implemented this mainly because I wanted a better Lua IDE *for myself*harpy eagle wrote:That's pretty awesome, I'm sure it will come in handysven wrote:Now, if everything is working, the game should start in debug mode, and you should have access to both CTRL+click hotkeys and the ability to set breakpoints / view stack traces.
The breakpoint integration doesn't work perfectly -- in particular, it seems like when the Lua you're debugging is being executed in a background thread, you currently need to call 'devcat_break()' explicitly, rather than trusting the IDE's breakpoints to work as advertised. The stack traces are also currently pretty messy, as they include a lot of spam generated by C helper functions.
All that said, it's a usable debug environment -- and once you're halted, you can evaluate arbitrary expressions using the "Watch" pane; which is pretty darn handy.
-
- Posts: 1
- Joined: Fri Feb 15, 2019 6:01 am
Re: OpenHint extension crashes Visual Studio
When I tried to work with the extension suddenly the extension as well as chrome keeps crashing and now even the browser is not opening at all. Please help me to fix the problem.
- sven
- Site Admin
- Posts: 1621
- Joined: Sat Jan 31, 2015 10:24 pm
- Location: British Columbia, Canada
- Contact:
Re: OpenHint extension crashes Visual Studio
It's sounding like I should officially retire the Visual Studio 2017 extension. It's still working for me -- but, everyone else appears to have trouble with it. I'd just remove all the files and restart your machine -- I'd imagine that would fix it? In the meantime, the VS Code extensions may prove more useful for debugging/modding. They're talked though here.alanrogger007 wrote:When I tried to work with the extension suddenly the extension as well as chrome keeps crashing and now even the browser is not opening at all. Please help me to fix the problem.