How to add lang::cpp:AST (Clair) to Rascal search path - rascal

After installing Clair onto Rascal 0.17.0
import lang::cpp::AST;
Gives the following error:
Could not import module lang::cpp::AST: can not find in search path
My Rascal project shows some search path entries, but not the Clair path.
Any suggestion as to how to make this work ?
Note that I tried installing Clair onto the latest version of Rascal (0.23), but that failed (so hence I used the older 0.17.0 version):
Missing requirement: clair 0.2.0.202103011036 (clair 0.2.0.202103011036) requires 'osgi.bundle; rascal_eclipse [0.17.0,0.19.0)' but it could not be found

I guess you need to add the following manually to your project.
in MANIFEST.MF -> Require-Bundle: rascal_eclipse, clair
in RASCAL.MF -> Require-Libraries: |lib://clair|

Related

No Module Named PyQt5 and Pyside2 Error While Trying to open rqt

I've been trying to use the ROS(Robot Operating System) using this page:
Tutorial page
In the link it makes you use turtle sim it seemed to work fine with me without any errors.
In the 4th step(install rqt),i get this error:
`INPUT: RQT
OUTPUT: ImportError for 'pyqt': No module named 'PyQt5'
ModuleNotFoundError: No module named 'PyQt5'
ModuleNotFoundError: No module named 'PySide2'`
There was more lines of error but it seemed irrelevant to me because it only says file names.
I'm using python version 3.8.3 and qt version 5.12.12.
I downloaded the qt manually in their website.Didn't use:
pip install PyQt5
And i don't exactly remember now but someone said something about local files of pyhton but i had none of them:
screenshot of C:\Users\Boran\AppData\Local\Programs
It supposed to be Pyhton files in here.
Also there is no problem about python it works fine and i used talker and listener(pyhton coded applications of ROS.) and they worked fine.
I solved the problem by installing graphviz.It appears that to run rqt i had to install graphviz.

Dart import a package you have created

I have some code that i want to use between two projects. I would like to break this out into a package and import it into other projects/packages that need it. When i try to import a locally created package, I get a "The target URI doesnt exist" error. What do i need to do? Is there a path environment variable that dart checks to find local packages? Do i need to publish my package to pub.dev and use "dart pub add"? (I really would not prefer this)
Thanks in advance
The dependencies section of pubspec.yaml supports, along with the pub.dev and Git options, a path option.
Path dependencies are documented on the Dart website.
For example:
dependencies:
hosted_package: ^1.0.0
local_package:
path: ../my_local_package

Can't integrate localytics-react-native on iOS

I'm trying to integrate the localytics-react-native package to my already existing app and successfully integrated it on android but I can't pass the build phase on iOS.
I followed this documentation to do so.
After linking it manually, I followed every step on the localytics documentation.
On the second step 2. Add dependency, the libLLLocalytics.a is already in the Linked Frameworks and Libraries section so I skipped this step.
I managed to go trought every step without problem but at the end it doesn't build and I get this error :
We are managing our natives librairies with cocoapods and and it's the first librairie I have to install without it. Is there a specific configuration I have to do to support the two way of managing them ?
I also tried to follow the iOS specific documentation and install the library with pods. It builds but on the JS side when I try to import LLLocalytics, it returns me undefined.
Versions :
react-native: 0.57.7
react: 16.6.3
localytics-react-native: 2.3.1
pod --version : 1.4.0
If anybody can help me, I thank you in advance.
In Xcode, go to [target] -> Build Settings -> Search Paths -> Header Search Paths and add the directory where the dependency is located. The linker just doesn't know where to find the header yet.

Failed to load package in Dart

When I try to import a package with the syntax import 'package:markdown/markdown.dart';, I get no error in Dart Editor but when I run the dart application, the debugger shows me the message:
An error occurred loading file: package:markdown/markdown.dart
Failed to load resource
chrome-extension://gfjabgeipkcfopofkhjimepepnomcidk/dart/packages/markdown/markdown.dart
But when I write the whole path (import "../../packages/markdown/markdown.dart";) everything works fine. I cannot understand why the syntax package: doesn't work in my code though it works in Dart Editor's own examples.
You can see the Chrome app architecture below (I'm loading a package from translator.dart):
You should have the package added as a dependency in pubspec.yaml (which I assume you do).
Also try running following:
delete packages folder
delete pubspec.lock
run pub get to fetch the
dependencies again.
I think in your md_to_html folder you need a link to the 'packages' directory for the shortform to work. I seem to remember this happening when the workspace is built but I'm not sure now which command triggers it, have a look at the current pub docs.

How to use msgpack in xcode project?

I installed msgpack with brew and can compile the sample code with gcc msgpacktest.c -lmsgpack in the command line. But when I add the header in test.m, a class in my iOS project and add -lmsgpack in Compile Sources of Build Phases, I still get the error msgpack.h file not found. I am a new programmer and this is confusing me. What am I missing?
You need to tell Xcode where to find the header. In Build Settings, under Search Paths, add the path under User Header Search Paths.

Resources