Migration Tips moving from ECL IDE to VSCode - hpcc-ecl

I have been using the Windows based ECL IDE for 11 years, but would now like to migrate to using the Visual Studio Code with the ECL extension. Is there any available documentation, or can you share any migration tips and best practices? Thanks!
I have been to the marketplace web page text but perhaps a clear step-by-step list of installation steps would be great.

I found this useful information from another ECL developer using VSCode:
Getting Started with Visual Studio Code Editor and ECL
Locate and install the appropriate ECL Client Tools version from hpccsystems.com
Install VSCode if you haven’t yet done so. You can install to Windows, Linux, or Mac platforms. Here is the link:
https://code.visualstudio.com/download
For Windows 10, I used the 64-bit Users Install for Windows.
In VSCode, open the command palette (ctrl+shift+p) and select Install Extension. Enter "ecl" to filter the available extensions and choose ecl.
HPCC Cluster Configuration
Click on Debug Icon in VSCode (located on the Side Bar)
File > Add Folder to Workspace – Add "My Files" folder: (C:\Users\Public\Documents\HPCC Systems\ECL\My Files)
Click on Gear Icon near top (Configure or Fix launch.json). If asked, select the ECL environment.
Modify configuration as follows:
VSCode will supply a default profile for ECL and the users can manually modify the following as needed:
Example:
"name": "play.hpccsystems.com",
"type": "ecl",
"request": "launch",
"protocol": "https",
"serverAddress": "play.hpccsystems.com",
"port": 18010,
"targetCluster": "thor",
"rejectUnauthorized": false,
"resultLimit": 100,
"timeoutSecs": 60,
"user": "Bob",
"password": "(IfNeeded)"
Save your changes (File > Save)
Running your first ECL file
Open a test ECL file – (Example – Hello.ecl)
Click on the arrow in the upper right of the editor to compile/run the ECL file
To see the output, look at the Output tab in the Panel view below the editor.
Happy Coding!

Related

How to debug an Excel Add-In created using Yeoman, running IE in Windows 8

I created an Office Add-In using the Yeoman generator, I chose the React add-in and I was able to make it run properly within VS Code by following this tutorial:
https://learn.microsoft.com/en-us/office/dev/add-ins/tutorials/excel-tutorial
The react boilerplate includes a piece of code which logs an action to the console, but I see no console anywhere. According to the documentation, since my version of Office is 2016 volume licensed, I'm running Internet Explorer, and since my Windows system is 8.1, I can't use the F12 tools nor the Microsoft Office Add-In Debugger, so how do I view these logs like I do when I develop web applications for other browsers like Chrome and Firefox?
I followed the instructions in this guide by microsoft:
https://learn.microsoft.com/en-us/office/dev/add-ins/testing/debug-add-ins-using-f12-tools-ie
Now, for what I understood, the only option I'm left with is to "Switch to the Internet Explorer 11 webview". So I ran the command npx office-addin-dev-settings webview manifest.xml ie in the terminal and it returned "The web view type is set to Microsoft Internet Explorer". Then when I go ahead and type npm start, the add-in loads correctly but I still can't see any dev tools.
I did try something else by going to the Run and Debug tab in VS Code, choosing the option "Excel Desktop (Edge-Legacy)", running the command npx office-addin-dev-settings webview manifest.xml edge-legacy, modifying the launch.json file so it didn't complain but I saw no difference.
I was able to have bridge chrome and edge devtools using the IEDiagnosticsAdapter, but nothing appears in the console, so I think it's unsupported.

How to install DCEVM in Guidewire?

I have downloaded DCEVM jar file. Now I want to install this jar to run Gosu queries in my Gudiewire Studio.
Please help me how to install this DCEVM jar in Guidewire Studio.
Thanks
DCEVM was first published in June 2010 as a research paper. Since then it has been widely used by Guidewire as the preferred VM for development environments. It allows you to Hot Swap (partially reload code changes to classes) without restarting the VM. In a development environment, it can help save a lot of time where a full VM restart can take several minutes. A fork of the original DCEVM is available at http://dcevm.github.io/.
The Dynamic Code Evolution Virtual Machine (DCE VM) is a modification
of the Java HotSpot™ VM that allows unlimited redefinition of loaded
classes at runtime. The current hot-swapping mechanism of the HotSpot™
VM allows only changing method bodies. Our enhanced VM allows adding
and removing fields and methods as well as changes to the super types
of a class.
You can download the suitable installer jar file for your java version and patch your existing JDK by DCEVM. Unfortunately, the only installer available is a jar file and there are caveats to using it.
First of all, you can only patch your JDK if the DCEVM version supports your JDK minor version. A lot of people don't understand this and encounter failures when they try to patch a newer update of Java with the previous version of DCEVM.
A key point to note in the image is the available versions of DCEVM. To be able to install it on Java 8, you must have Java with the update 181 installed i.e. your JDK version must equal 8u181. If you installed an update on the JDK and updated it to 8u271 or another version, the patch is not going to work.
Once you have the installer jar downloaded, you must run it with Administrator privileges on Windows for it to work. In Windows, run cmd as Administrator and then navigate to the directory where the jar is downloaded and run:
java -jar dcevm-installer.jar
For unix based systems you must run:
sudo java -jar dcevm-installer.jar
This should open a window where you need to select your correct JDK version and then click on the Replace by DCEVM button. If done correctly you'll be able to see the status as below:
DCEVM isn't required to run queries in GW Studio. DCEVM enables more capabilities to hotswap (class reloading after compile).
To run queries in GW Studio you only need start server in debug mode, open Gosu Scratchpad (Tools menu or Alt+Shift+S) and use "Run in Debug Process" button in scratchpad
C:\ java -jar dcevem.jar
It will open the DCEVM window, select the java version, and click on the install button.
For version 10.0.3 there actually 2 possible paths to run Guidewire on DCEVM, depending on the version of Java you are using. Those instructions should also work for other versions of GW
For Java 11
Visit http://dcevm.github.io/.
Click the Java 11 link.
Scroll to find the binary for your development platform, and click to download the relevant file, extract the contents of the downloaded file.
Add the DCEVM as an alternate JDK in Studio.
In Studio, click File → Project Structure
Under Platform Settings, click SDKs.
Click Add New SDK +.
Select the folder for the DCEVM, and then click OK.
In the Name text box, change the name to DCEVM.
Click OK.
Click Run → Edit Configurations.
Under Application, click Servers.
Next to JRE, click DCEVM.
Do not set the DCEVM as your project SDK.
For Java 8
Visit http://dcevm.github.io/.
Click the link under Binaries to download the appropriate DCEVM installer for your java version.
Install the DCEVM as an alternative JVM.
At a command prompt, run java -jar installer.jar, where installer.jar is the name of the file you downloaded in the previous step.
java –jar DCEVM-8u181-installer.jar
The Dynamic Code Evolution VM Installer dialog appears.
Select the installation directory for the JDK corresponding to the DCEVM version you are installing.
Click the Install DCEVM as altjvm button.
The Dynamic Code Evolution VM Installer dialog displays Yes in the Installed altjvm column for the selected JDK.
Click "X" to close the Dynamic Code Evolution VM Installer dialog.
In Studio, at the right hand side of the toolbar, select Server.
Click Run → Edit Configurations.
Under Application, click Servers.
In VM options, add -XXaltjvm=dcevm to the end of the line.
Click OK.
Both instructions above are based on the info from documentation

Flutter App Running Error: Dart can not be opened, Developer can not be verified after upgrading to Catalina

I was using the latest version of Android Studio IDE for creating flutter apps. But when I upgraded from Mojave to Catalina and tried to open my flutter code on IDE it gave me an error saying:
Dart can not be opened because the Developer can not be verified
What is the reason behind the error and how can I solve the issue?
Do I have to install flutter and relative development tools from scratch again or is there any other way to resolve the issue?
Do this steps and repeat until allow all you need and stop notifications.
Solve for me.
On your Mac, choose Apple menu > System Preferences, click
Security & Privacy, then click General.
Click the lock icon to unlock it, then enter an administrator
name and password.
Select the sources from which you’ll allow software to be
installed: There should be a button that says "Allow anyway". If not
make sure you've cancelled the error dialog.
usually you will not be allowed to install the applications dowloaded form other sources .... you need to first give permissions in the system Preferences
apple-icon on left top corner > System Preferences > click Security & Privacy > then click General... now Click the lock icon to unlock it ...
2.now, you will be shown with below attached image ... click allow anyway ..
now retry installing ... you are good to go...
Disabling entire Gate Keeper is definitely not a good idea as it will result running any type of program on your system.
You can add Dart to the white list by running this in terminal:
sudo spctl --add "Path_to_flutter/bin/cache/dart-sdk/bin/dart"
You might require to reboot the system in order to apply the changes.
There are several other binaries other than Dart that may get blocked as well.
You can run GateKeeper script to fix the issue:
https://github.com/AmirKamali/Flutter_GateKeeper_Fix
I have published an article with more information how to fix this:
https://medium.com/#amir.n3t/how-to-fix-flutter-idevice-id-running-errors-in-mac-osx-catalina-7aa1f89f61aa
You can run this command to allow your mac/apps downloaded from anywhere
sudo spctl --master-disable
So who the hell is an "identified developer" if Google chooses not to be one? Something is wrong with this
i updated mac to Big sur and then got this problem.
Allowing dart in the security and privacy settings and then Deleting ...flutter/bin/cache folder solved it for me.
run flutter doctor in terminal afterwards to reinstall dart SDK
This issue can be resolved by deleting the artefacts directory and running flutter doctor once again - More Info Here
2022 update
The button is now at
 → System Settings → Privacy & Security → Scroll down to Security → Allow anyway

Eclipse Marketplace Not Showing All Search Results

I'm having an issue with the eclipse marketplace where doing a search doesn't show all available results. Searching for "java" I get a list of about 10 available plugins and at the bottom it says "156 matches. Browse for more solutions."
The problem is, when I click to browse more solutions I just get a blank emacs window and I can't seem to get to any of the other search results so I'm stuck with only the first 10 options.
How can I get it to show the rest of the results?
I'm running eclipse on a RedHat 6 Linux server and using a Cygwin XWindow to open it on my PC. My eclipse version info is below.
When clicking on that link, Eclipse should be opening your web browser. Somehow, on your system, Eclipse thinks that Emacs is your web browser. You can fix this on your system set-up, or override that system settings in Eclipse for Eclipse only.
Set Default Browser
Open Preferences
Navigate to General -> Web Browser
Customize your settings
Visit Marketplace Directly
An alternative is to browse to the Eclipse Marketplace directly in your web browser:
https://marketplace.eclipse.org/search/site/java

RAD does not prompt for worksapce

When I open RAD it does not prompt for workspace. I verified in Preference=>General=>Startup and shutdown=>Prompt for workspace check box is checked. But still it does not prompt while start up. Any ideas how to get RAD to prompt for the workspace?
Thanks
Uma
I am surprised that setting the preferences has not worked.
It always works for me on my eclipse and RAD(and other eclipse based tools like WID).
The file(org.eclipse.ui.ide.prefs) is where these preferences are persisited in teh file system.
Look for this under this directory
\configuration.settings\org.eclipse.ui.ide.prefs
I am not showing the entire file here (as that is just a clutter). Look at the SHOW_WORKSPACE_SELECTION_DIALOG and ensure that it's value is true.
MAX_RECENT_WORKSPACES=5
SHOW_WORKSPACE_SELECTION_DIALOG=true
eclipse.preferences.version=1
HTH
Manglu
Short answer : Run RAD as administrator.
Long answer:
I faced the same problem on my computer. I believe the issue is that I didn't run RAD as administrator.
Even though eclipse clearly shows that YES, it will prompt me for a workspace, the content of the property file remained :
SHOW_WORKSPACE_SELECTION_DIALOG=false
On Windows 7, you need administrator privilege to write files to the "Program Files" directory. This would explain why RAD was never able to overwrite the file with my new preferences.
Running RAD as administrator is how I managed to fix the problem.
Run RAD
Go to Windows -> Preferences -> General -> Startup and Shutdown -> Workspaces
Check the box "Prompt for workspace on startup"
Save your settings and restart RAD

Resources