Running IBM Rhapsody animations without Visual Studio - eclipse

I am relatively new to Rational Rhapsody, and SysML in general, so the errors are likely to be at my end.
I have been scouring Google (and SOF) looking for ways to run Rhapsody animations without Visual Studio. It was my impression that if Rhapsody had access to another IDE, say Eclipse, then the other IDE could deal with the animations. Is this correct, or is VS absolutely required to run animations and debugging tools in Rhapsody?
I have been getting a similar error to that of the user in How to fix Rational Rhapsody error :"Current value is "VC11", but no Visual Studio installation was not found in the directory ""."; my error is "VC10." However, I do not have, or plan to have, Visual Studio run the animations; I'd rather have the animations run using Eclipse, but this is not working either (the same "VC10" error occurs).
I also chatted with a contact at IBM and he suggested trying cygwin as a compiler, but under my circumstances, I cannot download that software.
Thanks in advance for the assistance.

The Rhapsody workflow:
Rhapsody generates code from your model. (UML => C++)
To compile the code you need a compiler. Rhapsody does not have its own compiler. If you are on Windows, you can use the VS or cygwin compiler. (C++ => EXE)
If you have enabled the animation instrumentation for your application, then if you start the application, it will connect (using TCP/IP) to a running Rhapsody instance. The animation will run in Rhapsody.
... is VS absolutely required to run animations and debugging tools in Rhapsody?
A compiler (eg. VS or cygwin) is absolutely required to compile the code that has been generated by Rhapsody. Rhapsody is required if you want to see animated state-charts or sequence-diagrams while your application is running.
See also: configure Rhapsody 8.x to use the VS 2013 compiler.

There are many different questions. I try to give you some clarifications.
To run your Rhapsody model with animation you need Rhapsody and a compiler. The compiler could be Visual Studio compiler or Cygwin gcc. Those frameworks are already provided by Rhapsody.
Visual Studio or Eclipse you only need to edit your code. This can easily be done with right klick on your configuration and change it to the corresponding IDE.
I guess you question is related to the VS Version. In the properties of your configuration you must adjust your Visual Studio version. Search for property with VCxx content. Can't remember the exact name of the property at the moment.

Related

Cannot find Arduino IDE path. In Visual Studio Code

I wants to use Arduino in vs code Visual Studio Code.
I installed arduino IDE on my local machine on C:\Program Files\Arduino IDE I also added arduino path my Visual Studio Code's setting .json
"arduino.path": "C:\\Program Files\\Arduino IDE",
setting .json
I am using arduino extension.
This is the pic of extension
Any suggestion or recommendations would greatly aid me. I've been struggling to find a solution for this problem for 6 hours.
This was giving me issues for the longest time, too. It seems that the Arduino 2.X IDE doesn't work well with VSCode.
To resolve, use the legacy IDE (Arduino 1.8.X). First, uninstall the 2.X version of Arduino. As of February 2023, you can download the legacy version by going to the Arduino Downloads page and scrolling down to the "Legacy IDE (1.8.X)" section. There's a few different download options. I opted for the one labeled "Windows Win 7 and Newer" since it's a neatly contained executable to install Arduino.
From here, run the executable and install normally. I also reinstalled the Arduino plugin in the Visual Studio marketplace (not sure if necessary, but it doesn't hurt). There's at least three places you could potentially enter the arduino.path:
The one in YOUR PROJECT FILEPATH/.vscode/settings.json
The one in the VS Code User Settings (File>Preferences>Settings> User tab> Search for arduino.path in the search bar)
Same as above, but on the "Workspace" tab instead of "User"
For me, leaving all three empty worked fine. I believe that's because the installer added Arduino to the Windows Path variable. Here's a related post, though, where someone had to configure the path variable in case that doesn't work for you.

Visual Studio code : Issue loading Extensions

I am using visual studio code to do my LWC change and it takes at lest 5 minutes to load those extensions. Some times it fails outright and would not let me run commends.
Is there an option to force run extensions?
There is no option to force run extensions in VSCode. It is likely that your hardware and system configuration is not capable of running your program quickly. Consider editing your question to include your computer specs.
While IntelliJ IDEA does require better hardware than VSCode, consider trying that IDE for LWC instead in case it is a VSCode issue and not your hardware.

Why do no programs run in visual studio code?

I recently got a new computer and reinstalled visual studio code but I haven't been able to run any of my files. The error has occurred with both python and C++, so I feel as though it is the IDE that is the problem. I have looked online and there are no straight answers as I have tried following some solutions which have resulted in different errors.
The error above comes up when I run (F5) a simple line of code in c++. Does anyone have a solution?
Thanks, Jacob
[EDIT]
For my python files to work I have to manually select 'Python: current file' but for c++ files they still have the same error.
First step, uninstall python from this machine.
Second, reinstall and make sure that you check the box "add to path".
It's pretty easy to miss as it's a small box, and I missed it my first time installing python earlier in the year. Here's the box you may have missed while installing.
It could be your extensions.
I had a similar error message and simply updated all of my extensions and then my SDK. I was then able to run my code within the IDE. I was using VSCode for c++ and also updated my GCC compiler along with the extensions.
Also look into your computer's environment variables, if you have changed the %PATH variables it may be affecting your ability to run/compile programs.

Can I have multiple configurations of Visual Studio Code, one per coding language, each with its own plugins?

This is not a duplicate of How do I open multiple instances of Visual Studio Code?.
My previous question, How can I make Visual Studio Code's auto-complete suggestions appear more quickly? explains my problem.
I was using VSC with the PlatformIo plugin for embedded development for a few months with no problem. Then I started on Flutter/Dart and soon had a problem with auto-suggest being really slow.
It could be that I just loaded a duff plug-in (I am adding them back, one by one, to see if/when it "breaks"), but ... I am considering doing all development in VCS, so as to have a single IDE.
I am currently using Eclipse for C/C++ and PHP, WebStorm for AngualrJs and PyCharm for Python.
I had previously used Eclipse for everything, and had a different copy of Eclipse for each language, each with its own plugins.
Since I will be developing in 4 or 5 languages, even if I don't hit a problem as bad as I just did, adding plug-ins for that many languages into a single IDE will inevitably slow things down.
So, question: can I have multiple installs of VSC, each with its own plug-ins, and launch them separately?
I solved this problem on windows using vs code portable.
I created a folder at the root of my machine with subfolders for each language, inside each I put the vs code, then I created a data folder inside each of them so that the information was stored locally, I modified the name of the executables and added it to the path.
As an example, to access a vscode configured for python I put code-python . at the terminal.
I Have the idea watching this video, it may help you (it is in portuguese, but you can see more os less what it does).

How to configure Visual Studio Code to build a project with IAR compiler?

I want to use Visual Studio Code as my main IDE, but I want to compile my code with IAR's compiler.
How could I configure VSCode ?
I found this extension but the documentation is too poor.
Yes, the extension politoleo.iar is indeed NOT good.
-> I found a better one (will try it in future by myself):
VSCode plugin: pluyckx.iar-vsc
IAR For Visual Studio Code - Visual Studio Marketplace
Good document
Welcome to IAR-VSC’s documentation! — IAR-VSC 1.2 documentation
doc's Github source: pluyckx/iar-vsc
IAR related official Technical Note
Using Visual Studio Code with IAR Embedded Workbench
Enjoy it !
There are now two official IAR plugins for VSCode which make things much easier:
For building and development: https://marketplace.visualstudio.com/items?itemName=iarsystems.iar-build
For debugging with C-Spy: https://marketplace.visualstudio.com/items?itemName=iarsystems.iar-debug
https://www.iar.com/knowledge/support/technical-notes/general/using-visual-studio-code-with-iar-embedded-workbench/
What I did is setting some environment variables in settings.json;
then in tasks.json I created shell tasks that call the IarBuild.exe & IarIdePm.exe with appropriate values (see the documentation on the command line options)...
So now, I can use VSCode for navigation & editing, but the compilation is done by the EWARM.
The only thing that I haven't figure out yet is how to make C-Spy work from within VSCode...
Currently when I want to debug, I just launch the EWARM and debug from there...
here is a screenshot:Screenshot of settings.json and tasks.json
For this, you can port you project to the custom build system (non iarbuild), e.g. a best choose is the Qbs. The Qbs support a lot of architectures and the toolchains (include IAR, KEIL and so on). In this case you can then use any IDE which support the Qbs, e.g. such as VSCode or QtCreator, and to open your project in any of these IDEs.
Both IDEs support only the GDB debugging, because the C-Spy debuger is a proptietary technology, which has not the public datasheets.