-
Notifications
You must be signed in to change notification settings - Fork 267
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SSMS 18.2 extension V1.6.13b does not load 'The 'FormatterPackage' package did not load correctly.' - cannot find the file Microsoft.VisualStudio.Shell.12.0 #234
Comments
(from unrelated but similar-looking Issue #227) |
My very limited understanding of this issue, based on some other issues I've been working on, is that:
I think I have this fixed, but cannot test, so will appreciate some feedback shortly - I expect to have a new installer out today. |
New installer available: https://github.com/TaoK/PoorMansTSqlFormatter/releases/tag/1.6.16 I wasn't able to reproduce, so I can't be sure, but I believe this should address the error. Please let me know. |
For me, I have the same problem, first install msi 1.6.16 and get the same information as in version 1.6.13b, the second time I uninstall and install without any changes. |
I still experience this issue with 1.6.16, unfortunately. Recent, clean install of Windows 10 64-bit 1903, SSMS 18.2, .Net 3.5 and 2.0 installed on-demand by another application that required them. I don't have Visual Studio installed at all. |
I'm still getting the same error as well with 1.6.16. |
Same for me |
Same for me this morning |
Same issue. PoorSQL options are greyed out. I uninstalled and reinstalled as well. The VS2017 installation is working. SQL Server Management Studio 15.0.18142.0 |
PoorSQL options are greyed out SQL Server Management Studio 15.0.18131.0 |
Hi I have the same issue SQL Server Management Studio 15.0.18142.0 |
I used the 1.6.16 installler |
Installing SSMS 17.9 alongside 18.2 causes the extension to work! Going to do that until it's fixed; I missed this tool so much. |
Installing SSMS 17.9.1 made the formatting tool work for me too in SSMS, must be a missing library or something. Love the tool too, hope this gets fixed. |
Any update on when this will be fixed? (It shouldn't be marked resolved as there are still many people reporting this issue.) |
The issue still exists. Clean Windows Install /w SSMS 18.3 and PoorMansSQL Installer 1.6.16 |
Same issue here. Any update? |
There are a lot of dependency problems with the current version of SSMS 18.3.1 and the extension. In the end I took the projects and re-referenced them against the Nuget versions of their dependencies and upped the .net version to 4.6 and built them and copied them to the X:\Program Files (x86)\PoorMansTSqlFormatterSSMSExtension folder (replace X with your drive letter) and removed the LinqBridge.dll file (seems to come free with the .net install). Happy to share those DLLs if people want them (https://drive.google.com/open?id=1LI1nlRmlPNg1EkW-B_ydwzAzrHfbJ8m3) - not really an ideal solution but may help. As a caveat it's had limited testing (under 5 minutes - once it worked a few times and reformatted SQL didn't really do much else) on a single newly built machine and has no guarantee of it working in your environment. |
This works for me on a fresh german Win10 + SSMS 18.3.1. Thanks! |
@aphalon : can you make a PR? I like to use your solution as well, but randomly downloading dll's from an untrusted source doesn't make me feel comfortable 😄 |
Using SSMS 18.4 and Windows 10 v1903 -- I am still experiencing this problem using PoorSQL 1.6.16. |
Installing VS Isolated Shell solved my issue. I have SSMS 18.4 and PMSF 1.6.16 |
Same issue here, using SSMS 18.4, Windows 10 version 1909 and Visual Studio 2019 version 16.4. The file
When SSMS finishes loading, the two options for Poor SQL are grayed out under the Tools menu. Will there be a new version that solves this in SSMS 18.4? |
@jmoralesv
|
Helped me too. Running SSMS 18.5, PSMF 1.6.16 and VS 16.6.0
|
The issue seems to be with a binding redirect missing from SSMS. If you edit ssms.exe.config (by default at C:\Program Files (x86)\Microsoft SQL Server Management Studio 18\Common7\IDE) and add the following line inside the
There's one for shell 9.0, 10.0, and 14.0 just not one for 12.0. I took the above from the visual studio exe.config. This will get cleared and have to be re-done any time you update SSMS. |
This totally works! |
I face the same issue on SSMS 18.6. Entries in ActivityLog.xml
|
I had the same issue and came in to say that adding the binding settings to the SSMS config file (see fix above) worked. Great add in other than the opps in install. |
Changing the SSMS config worked for me!!! |
Worked like a charm - thx |
What file is the I cannot find it under |
Still works on Microsoft SQL Server Management Studio 18 anno 2021 |
this Worked! thanks. |
Awesome! It did work like a charm :) Tried it on SSMS v18.9.2 and OS 10.0.19044 |
Just had the same problem and can confirm that this fix works! Great community, thanks a lot! |
Updated to SMSS 18.11.1 this morning. I edited edit ssms.exe.config, added the dependent assembly entry for Microsoft.VisualStudio.Shell.12.0 like I do after each update. This time it didn't work, there's now a comment block at the top ssms.exe.config:
Started ssms after the edit and PoorMansTSqlFormatter was still greyed out. Went back and checked ssms.exe.config and the dependent assembly entry for Microsoft.VisualStudio.Shell.12.0 was no longer there. It would appear that ssms.exe.config is now regenerated at runtime. Installing VS Isolated Shell as suggested by exbarboss on 1/17/2020. Opened SSMS again and PoorMansTSqlFormatter now works.
|
Thank You very much, instaling VS Isolated shell resolve the problem |
Hi, This is not realy a perfect solution - but it took me 5 minutes to solve my problem since I´ve updated my Sql Server to 18.x !
|
After updating to v18.12.1, modifying the .config files stopped working, but those DLL seems to work correctly. |
Thank you |
Per @CH-Kev 's recommendation, I too simply installed VS Isolate Shell, and that worked. I got this warning, but everything works fine. |
By looking at the ssms.exe.config, there is no assembly redirect entry for "Microsoft.VisualStudio.Shell.12.0", so added the following assembly redirect fixed my problem:
|
As of today, this is still the best fix! |
Strange, I just installed v18.12.1 today and I don't see that block at the top of the config - and making the changes did work for me (I guess we'll see if they stick though...). FYI this fix also works to get the extension working in SSMS v19 when used in conjunction with the process described here. |
@RichardDavies and @Lukas31781 have had issues installing the SSMS extension (even latest version 1.6.13b) on SSMS 18.2. The setup completes successfully, but when opening SSMS the error
The 'FormatterPackage' package did not load correctly.
pops up, and the detail inActivityLog.xml
reports that:The text was updated successfully, but these errors were encountered: