Closed JackTrapper closed 10 years ago
Thanks for the patch! I will soon create a new version and upload it to the VS extension gallery. Out of curiosity, how to you trigger that command? Do you have a custom key binding? (The 'Home' button being bound to Edit.LineStart by default, I believe?)
Yes. I remap the Home
key so that it moves to the true start of the line.
Having the cursor move to a known location also helps when recording macros, since the macro will behave the same way every time.
Also: I was unable to test the patch as I don't have access to VS2013.
I have just uploaded an updated vsix to the VS gallery.
Just updated; get an error when Visual Studio 2012 launches:
And from C:\Users\ian\AppData\Roaming\Microsoft\VisualStudio\11.0\ActivityLog.xml
:
# | Type | Description | GUID | Hr | Source | Time (UTC) |
---|---|---|---|---|---|---|
52 | ERROR | CreateInstance failed for package [VSTextMacrosPackage] | {6D613D99-E83F-4532-A1D8-E188E419460C} | 80070002 | VisualStudio | 2014/07/10 14:02:04.058 |
53 | ERROR | End package load [VSTextMacrosPackage] | {6D613D99-E83F-4532-A1D8-E188E419460C} | 80004005 - E_FAIL | VisualStudio | 2014/07/10 14:02:04.058 |
Removed the extension, restarted Visual Studio. Re-added the macro, restarted Visual Studio. Same thing.
Thanks for letting me know. It might be that I updated the solution to VS 2013 that broke something in VS 2012. I'm not sure, I just tested in VS 2012 and had the same error as you had but after uninstalling and reinstalling the same vsix it when away. Can you try and let me know?
I tried disabling, and re-enabling. I tried uninstalling, and re-installing.
Is there another way to uninstall an extension besides TOOLS -> Extensions and Updates... -> Text Macros for Visual Studio 2012/2013 -> Uninstall?
The HRESULT 0x80070002
is Win32 facility error code for ERROR_FILE_NOT_FOUND
. I cannot imagine what file the extension could be looking for.
Ok, thanks for trying. I assume it is trying to load a DLL file from the Visual Studio SDK. Could have to do with this commit.
I have uploaded version 1.6 on the VS gallery where I rolled back these changes. Can you try uninstalling your current version (via Tools > Extensions > Uninstall) and installing the new one?
The Visual Studio Gallery (both inside the Extensions applets, and on the web-site) still has 1.5.
I'll check back periodically, waiting for 1.6.
My bad, I must have done something wrong in the update process. I think it should show 1.6 now.
I tried updating to 1.6, but it still fails.
So i uninstalled and re-installed 1.6 and... it still fails.
I then removed it. Closed Visual Studio. Purged it from the extensions folder. Downloaded the 1.6 from the web-site. Ran the .vsix
. Let it install to Visual Studio 2012. Run Visual Studio. Still fails.
Ahh, apparently I accidentally clicked 'No' to the error message, permanently dismissing it, which is why I thought version 1.6 was working. I don't know how to restore the message though.
Can you help me test version 1.7 before I put it up on the VS gallery? https://github.com/xps/VSTextMacros/releases/tag/1.7
Thanks, and sorry for the trouble!
Still doesn't work. :(
Still getting the 80070002 (file not found) error.
Ok, thanks for trying. I'm really not sure what's going on. I have reverted the changes that could maybe have caused this so I'm out of options for the moment. I will look at it again next week but in the mean time you can reinstall version 1.4, currently on the VS gallery.
1.4 works.
Apparently you can do
devenv.exe /ResetSkipPkgs
to reset all skipped packages.
Source: /ResetSkipPkgs (devenv.exe)
Added support for the
Edit.LineFirstColumn
andEdit.LineFirstColumnExtend
commands.Edit.LineFirstColumn moves the cursor to the beginning of the line.
This is in contrast to Edit.LineStart which toggles the cursor between the first character of the line and the start of the line.