How to integrate ruby in Visual Studio 2010 - ruby

Currently I'm started to learn Ruby in Steel 2.
I installed Ruby from the link and also I installed the Interpreters from the same link, rubyinstaller-1.9.2-p290.exe, but while running in Visual Studio 2010 it's showing
**Error :-**
'RunRuby Exception : unsupported Interpreter Type : Not Supported'
How do I resolve this issue? If anybody has some idea of correct interpreter for Ruby in Steel 2 please share your views.

I guess it is because of wrong version of Interpreter selected by visual studio.I mean the path may be wrong or version mismatch.
You uninstall all and install Ruby in Steel setup and then ruby Interpreter from the same link you used earlier.
And just follow this to get visual studio to select the right path of ruby installed.
Follow this link here
It should work and i got the same problem and it worked for me.

Related

How to use Visual Studio Community with Fortran?

My thesis professor asked my to install and run some code so I can get thermodynamic properties. I need to run thermopack to get the quantum properties of hydrogen.
I followed the instructions in the link, installed Microsoft Visual Studio Community 2022, with Python development, C++ development, and data science analysis F#. Also installed Intel OneAPI base and the toolkit for Fortran. I followed https://icl.utk.edu/lapack-for-windows/lapack/ tutorial for libraries installation, but so far I can only open the document and whenever I try to compile I get two errors "The CompatibiltyToolPackage did not load correctly" and "Visual Studio cannot debug because a debug target has not been specified". Can anyone please help me?

Visual Studio Python Environments window does not display

I have installed Win10, Visual Studio 2015, Python 2.7, Python 3.5 and PTVS 2.2.3.
Unfortunately PTVS does not work at all. I can not load any Python projects that were loading previously in Visual Studio. It worked before I installed Python 3.5. I tried to uninstall Python 2.7 and get an error saying that the uninstall didn't success. After several tries, the problem appears to be around pip which is somehow blocking both install and uninstall of Python 2.7.
When trying to open Python Tools from Tools menu, nothing happens. Neither window opens nor any error message is displayed. Python Environments window does not open even with the shortcut.
In Tools > Options > Python Tools, the only text shown is: "An error occurred loading this property page".
When I try to load/reload the Python project, the message is: "error : Expected 1 export(s) with contract name "Microsoft.PythonTools.Interpreter.IInterpreterOptionsService" but found 0 after applying applicable constraints." This has already been posted for 11 days ago, but no one has answered.
To solve this, I would like to know how to make the Python Environment window appearing in Visual Studio.
Thanks for any help.
VS keeps a cache of loaded assemblies that doesn't always get
invalidated when it should.
If you delete
C:\Users\You\AppData\Local\Microsoft\VisualStudio\14.0\ComponentModelCache
and restart you should be fine.
src: https://github.com/Microsoft/PTVS/issues/1388
You'll need to open the ActivityLog.xml (%APPDATA%\Microsoft\VisualStudio\14.0\ActivityLog.xml) and see if there's any exceptions there related to PTVS.
It sounds like you have a pretty messed up configuration at this point. You could try uninstalling PTVS and re-installing it, but my guess is your messed up Python installs are somehow throwing PTVS off and causing it to crash somewhere.
I`m also having similar issues, first installation path:
Visual Studio 2015 Pro with Update 1
Installed PTVS using the VS2015 installation setup later on
Everything work fine
The issues started:
Installed a DEV version of PTVS from their github page
My pyproj stopped loading saying a migration needed
Noticed that after new PTVS installation, I`ve installed VS2015 Update 2
Not being able to reload my project after trying to debug the issue, I`ve decided to:
Uninstall PTVS and
Reinstall PTVS through VS2015 setup
Now the issue was different, while trying to load my previous pyproj or even creating different Python projects using multiple templates. I was getting this error:
"There is a missing project subtype. Subtype: '{1b580a1a-fdb3-4b32-83e1-6407eb2722e6}' is unsupported by this installation."
Not finding anything around this, I`ve:
Uninstalled Visual Studio 2015 (having Update 2)
Reinstalled Visual Studio 2015 with Update 1 (without checking PTVS, who requires VS 2015 Update 2 to be installed as well, I suspected it has something to do with it)
Installed PTVS latest stable version from their Github
Now Visual Studio is crashing while trying to load the past mentioned pyproj, with the same error as OP:
SetSite failed for package [Python Tools Package][Expected 1 export(s) with contract name "Microsoft.PythonTools.Interpreter.IInterpreterOptionsService" but found 0 after applying applicable constraints.]
Still trying to fix it at the moment.
Maybe these steps will help debugging the issue.
Update / Fixed
After installing VS 2015 with Update 1 and PTVS 2.2 for VS 2015, I was still having issues opening the pyproj causing VS to just crash (unfortunately nothing in ActivityLog.xml).
I've tried repairing Visual Studio through it's setup, still the same issue.
Finally, I've decided to re-update Visual Studio 2015 to Update 2, causing also to update PTVS to March release, all through VS setup utility.
And now my pyproj correctly opens. Probably some versions miss match during the initial steps where I've installed a DEV version of PTVS. Not sure which step actually corrected my issue but it did.
Hope this will help somehow other people with similar issues.
Thanks for your posts.
My problem was fixed after I installed VS 2015 update 3 which included a new release of PTVS (June 2.2.40623).

How can I fix the vb6tmpl.tbl error that always occur every time I run visual basic 6.0

I've already reinstall visual basic 6.0 most likely trice but I always got the same error (Visual Basic was not able to start up due to an invalid system configuration. Missing or not registeredVB6TMPL.TBL). How can I fix this or how you can fix this? I currently using Windows 10.
There is a Microsoft Support post dealing with this. The gist is you need to uninstall and reinstall to fix a missing or mis-registered type library.
A missing or mis-registered type library key for VB6.olb would
indicate an improper setup of Visual Basic. Microsoft recommends that
you uninstall and reinstall Visual Basic.
To ensure proper reinstallation of Visual Basic, uninstall the current
product. Then proceed to reinstall Visual Basic from the original
installation disks. For additional information, click the article
number below to view the article in the Microsoft Knowledge Base:
248697 HOWTO: Manually Uninstall Visual Studio with MSDN Library

"cannot load PDB" when running Visual-D project

When trying to run a simple "Hello world" D lang code snippet in Visual Studio (using the visual-d plugin), I see the following error in the logs:
D:\mydata\ConsoleApp\ConsoleApp\Debug\ConsoleApp.pdb: cannot load PDB helper DLL
where ConsoleApp is the name of my app. As per this thread, the problem should have been fixed in the v0.3.38-1 installer but I still see this issue. I'm using Windows 8.1 with Visual Studio Standalone/Integrated Shell.
Any help is making this run would be much appreciated.
If the latest VisualD installed does not fix the problem, then try the following fix http://stuff.benjamin-thaut.de/D/visualdfix.reg by Benjamin Thaut. Here is what what he wrote on the NG: "This is for visual studio 2010. If you need it for a
different version you have to open it with a text editor and change
"10.0" to "11.0" for 2012 and "12.0" for 2013."
I switched to the Mago debugger as mentioned on this wiki page and the error went away. Since I just want to get a feel of the language, not using the "native" debugging format doesn't bother me a lot, so all is well now.

CMake says c compiler is broken

I've just attempted to use Firebreath and have followed their video tutorial for Windows and come across the error that says:
Check for working C compiler using Visual Studio 10 -- broken
And then says:
It fails with following output:
Change Dir:
And then lists the drive. This happens when running prep2010.cmd. I have found a post about it, but the forums won't let me log in and there is no answer. It's here: http://forum.firebreath.org/topic/274/?page=1#post-1117 and is exactly the same error, I believe. The last post talks about running prep2010 from inside the vs2010 command shell. What does that mean?
Has anyone else had this error or know how it is caused? I have no idea how to approach it.
Thankyou
I know this is really old.. but in case someone else has this problem, the solution for me was to install service pack 1 for visual studio 2010
As I said in the comment above, this is not "FireBreath" that is saying your compiler is broken; the prep command uses CMake to generate the project files, and it is from cmake that the error comes.
In your start menu where Visual Studio 2010 is there should be a "tools" or "utilities" subfolder and in there somewhere there is a "Visual Studio 2010 Command Prompt" link. That starts a command prompt with environment variables and path set up so that the vs2010 commands are all available. The error you're seeing is indicating that for whatever reason, CMake is unable to find visual studio 2010.
I don't know if using the vs2010 command prompt will help or not; it doesn't have any trouble finding vs2010 on any of my boxes. I can postulate that perhaps if you installed it to a nonstandard location, in a nonstandard way, or your registry got screwed up any of these things could potentially cause the issue that you are seeing. Also if you don't have vs2010 installed it would certainly cause this issue =]
I'd recommend first trying the vs2010 command prompt; if that doesn't work, you may have to try uninstalling and reinstalling vs2010. If that doesn't work, I'm out of ideas, and maybe someone who knows more about cmake will have a suggestion :-(
Service pack 1:
http://www.microsoft.com/en-us/download/details.aspx?id=23691
Configure cmake with generator: MSVC2010 x64
I also had MSCV 2010 x64 on windows 7 and installing service pack one also helped.
Also make sure that all your external dependancies are (x64) versions:
MSVC version:
http://visual-studio-2010.en.malavida.com/
Gl&HF

Resources