Coco creator using with VS code - visual-studio-code

It's not working code autocompletion and definition in vs code .
I have finished to create creator.d.ts and jsconfig.json.

I have some expected solutions..
Create Project with Typescript
enter image description here
Configuration in Editor
enter image description here
(Developer -> VS Code Workflow -> Add Typescript Config)
(Developer -> VS Code Workflow -> Compile Task)
Install TsLint in VSCode (Cmd + Shift + P -> "install Extensions" -> TsLint)

Related

Flutter build error "Exception: Gradle task assembleDebug failed with exit code 1"

Guys I'm completely new to flutter and whenever I try and run all I got same error, I tried everything I could find on net, but it still doesn't work. PLZ help
This is the output of Run
this is the output of logcat-Verbose
Open Android Studio
Go to File->Other Settings->Default Project Structure/JDK Location
and copy whatever string is specified there
In the file locator directory window, right-click on This PC
Properties -> Advanced System Settings -> Environment Variables... -> System Variables
Click on the New button under System Variables, then type and paste respectively:
Variable name: JAVA_HOME
Variable value: Which you have copied earlier in step 3

Why does the RASCAL IDE extension for Eclipse not work?

I've tried to use this example of the RASCAL documentation:
http://tutor.rascal-mpl.org/Rascal/Libraries/util/IDE/Menus/Menus.html#/Rascal/Libraries/util/IDE/IDE.html
After registering the language and annotator nothing happens.
My goal is to build out this example to register some menu items for java files which could startup a RASCAL visualization or report.
Any help is appreciated.
Steps to reproduce:
Start Rascal console in Eclipse
type import util::IDE;
type import ParseTree;
type m1 = popup(menu("MyMenu", [action("Example item", void (Tree t, loc s) { println("<t> # <s>");})]));
type registerContributions("abc",{m1});
I expect a new menu item 'MyMenu' in the Eclipse IDE when I open a *.abc file. I don't know where it should popup, the documentation doesn't tell where the menuitem should show up.
rascal>import util::IDE;
ok
rascal>import ParseTree;
ok
rascal>m1 = popup(menu("MyMenu", [action("Example item", void (Tree t, loc s) { println("<t> # <s>");})]));
Contribution: popup(menu(
"MyMenu",
[action("Example item",function(|prompt:///|(50,45,<1,50>,<1,95>)))]))
rascal>registerContributions("abc",{m1});
ok
rascal>registerContributions("rsc",{m1});
To add a menu item to an editor which is not generated by Rascal itself but already exist in eclipse, for example a Java editor, you can use registerNonRascalContributions. See http://tutor.rascal-mpl.org/Rascal/Libraries/util/IDE/IDE.html#/Rascal/Libraries/util/IDE/registerNonRascalContributions/registerNonRascalContributions.html
You need the "editor id" for the default Java editor plugin which is org.eclipse.ui.JavaEditor I believe.

Configure Eclipse for C++ with Eigen library

This might be super silly question - but how do i make my eclipse identify Eigen libraries. I installed Cygwin64 (with devel option which installed Eigen under D:/Cygwin64/usr/include/Eigen3
I included Cygwin root folder in path env variable.
After this, i opened Eclipse for C++ and when i try to include Eigen #include <Eigen/Dense> it says Unresolved inclusion : <Eigen/Dense>
I googled for a while, and tried various options, but not working. How do i make my program include Eigen libraries? (like prj prop --> c++ build --> setting --> link --> misc --> adding eigen folder)
Is there a setting in eclipse where i need to specifically include it in build path?
---Update ----
I did the following
Prop --> C/C++ general --> Paths & Symbols --> GNU C++ --> added Eigen3 folder
after this, the error is changed to fatal error : Eigen/Dense No such file or directory
Appreciate your help!
I wonder if you have a resolution no longer. But I have resolved this problem with the following steps.
1. proj prop -> C/C++ General -> Paths and Symbols -> (GNU C++) Source Location -> Link Folder -> check "Link to folder..." -> Browse -> select eingen3 folder(eg. /usr/include/eigen3) -> OK -> Apply
2. (proj prop -> C/C++ General -> Paths and Symbols ->) (GNU C++) Includes -> Add -> Workspace -> select "eigen3" -> OK -> Apply
3. Click OK and close the Properties window.
The progress bar is moving, and Analyzing is finished, then you can see green terms related Eigen.
I hope this makes you help.

Eclipse and PHPUnit: "The import PHPUnit\Framework\TestCase cannot be resolved"

I'm starting with PHPUnit, and it works fine so far. I just got one problem:
Eclipse (Oxygen.3) is telling me in this line:
use PHPUnit\Framework\TestCase;
"The import PHPUnit\Framework\TestCase cannot be resolved"
I went to Window -> Preferences -> PHP -> Tools -> PHPUnit and added the path to my phpunit.phar. But this didn't help.
I went to Window -> Preferences -> PHP -> Source Paths -> Libraries and tried to import my phpunit.phar. But this results in an error "The selected file is not a valid user library data file".
Any other ideas how to get rid of this error?
I was having the same problem and this solution worked for me:
Going into Project > Properties
Under PHP > Include Path, pick the "Libraries" tab.
On "Add External PHARs..." select the PHPUnit framework file on your system (phpunit.phar).

How to use wxWidgets on eclipse under Ubuntu

I am using ubuntu 15.04 under VMware Player.
I have eclipse 3.8.1 and wxWidgets 3.0.
I have installed wxWidgets by:
sudo apt-get install libwxbase3.0-0-unofficial libwxbase3.0-dev libwxgtk3.0-0-unofficial libwxgtk3.0-dev wx3.0-headers wx-common libwxbase3.0-dbg libwxgtk3.0-dbg wx3.0-i18n wx3.0-examples wx3.0-doc
I open a new c++ project with the following setting:
Project -> Properties -> C/C++ Build -> Settings -> Cross G++ Compiler -> Miscellaneous -> Other flags -> append "`wx-config --cxxflags`"
Project -> Properties -> C/C++ Build -> Settings -> Cross G++ Linker -> Miscellaneous -> Linker flags -> append "`wx-config --libs`"
Project -> Properties -> C/C++ Build -> Settings -> Cross G++ Compiler -> Includes -> add "/usr/include/wx-3.0-unofficial/"
I then copy the example from here. The problem is that those declaration of the variables defined by wxWidgets did not found. Anyone knows how to solve it?