分类: Eclipse Coding

  • Creating our own plugins

    Is it possible to create our own plugins for Angular IDE as it is with regular eclipse?
    In other words,
    In regular eclipse one could download the development version of eclipse (PDE I think it was called) and then you could create your own plugin and it would package it for you.

    Can I do the same with Angular IDE?

     

    ——

     

    Yes, you can.

    Angular IDE is basically Eclipse IDE with our plugins installed, and running a custom “product”, which gives it unique, Angular IDE branding. You can add the PDE into Angular IDE, or you can write plugins in a regular Eclipse install, and install them into Angular IDE, just as you would with any other Eclipse in distribution.

    Hope this helps.

  • No indentation formatting

    ctr+shift+f doesn’t indent looked at hot-keys and it is mapped. Then looked at other forum posts I don’t seem to have a “window”->”preferences”->”codemix” ->”settings”. If that isn’t an option, is there a way to use basic formatting through eclipse itself.

  • MyEclipse VERY, VERY slow to start

    MyEclipse takes forever to start. I have an extremely fast machine with 128 GB RAM and MyEclipse is the slowest program on the entire computer. Not sure why it takes SO VERY long to start, but wanted to mention this as others have as well.

    Sorry that you are seeing this problem with MyEclipse.

    1. Can you please clarify if you have upgraded to the latest MyEclipse 2019.4.0? Are you seeing this problem only recently? If you are not on the latest release, then please share your current MyEclipse version details from Help > About MyEclipse section.
    2. Does it take a long time to get to the workspace selection dialog? or does it take a long time to load the workspace as well? Approximately how much time does it take?
    3. Once the workspace loads, do you see any further performance issues when editing/saving files or building the projects etc?
    4. Please try increasing the -Xmx value in the myeclipse.ini file located in your MyEclipse installation directory and check if it helps.
    5. If the slowness persists, then please send us 3-4 thread dumps when MyEclipse is slow. It would help us figure out what process is running. To take a thread dump, you will need to run
      jstack -l 9000 > dump1.txt
      Please replace 9000 with the PID of the MyEclipse process, the jstack program can be found in the bin directory of any JDK installation. If you can generate 3-4 dumps (sent to different files, of course) during the period of slowness, and attach those files here, that could help a great deal.
      Apologies for inconvenience caused.
    6. Yes, latest version, 2019 4.0. Not a recent issue.
    7. When starting MyE, the splash screen stays on the screen at least 5 seconds. From there, it takes another 6 – 7 seconds to load the workspace. Is this the expected start-up time?
    8. Once the workspace loads, then things work OK.
    9. I assume you mean the file: “/Applications/MyEclipse CI/MyEclipse CI.app/Contents/Profile/eclipse.ini”. I don’t seem to have a “myeclipse.ini”. The current value for -Xmx in that file is -Xmx2048m. Doubling that value to 4096m made no difference.
      Based on your reply to this message (that is, my reply here), I’ll send you the stack dumps.
      Thanks very much for your terrific replies and help.

    Thank you for the details.
    The startup time you are seeing is actually pretty good and expected. It usually takes several seconds depending on the workspace size and the plugins installed.
    Please let us know if you see any other issues.

    I am a licensed user (Blue License) of MyEclipse. I have the latest MyEclipse version (see below) installed on a Microsft Windows 7 Professional. It is taking about 8+ minutes for the application to start. Why does it take so long? What can I do to troubleshoot this issue? I have seen other people complaining of the same problem but no specific solution?
    MyEclipse Enterprise Workbench
    Version: CI 2019.4.0
    Build id: 16.0.0-20190403
    OS: Windows 7, v.6.1, x86_64 / win32
    Java version: 11.0.2

    Sorry that you are seeing problems with MyEclipse.
    Can you please give us some more details to help us investigate further?

    1. Is the 8+ mins from the splash screen to workspace being loaded in the IDE or from the splash screen to the point where you choose the workspace location? Once the workspace loads, is the performance good or are you seeing any slow down on further actions like editing,saving files etc?
    2. If you have installed DevStyle, then did you also install Icon Designer as well? We do have reports of slow down due to Icon Designer.
      To check, go to Help > Install New Software and click the “already installed” link at the bottom. Then type “DevStyle” in the filter, and see if “DevStyle – Icon Designer” shows up in the list. If it does, uninstall it and restart. Does this improve your startup performance?
    3. Any other third party plugins installed? Any Anti Virus software running?
    4. Is the Windows Defender enabled on your machine? We have a post on Windows Defender causing slow starts. Please read and see if making the suggested changes helps : https://www.genuitec.com/stop-slow-eclipse-myeclipse-startups/
      Apologies for inconvenience caused.
  • How to use Eclipse IDE for developing Ros2 packages?

    In the past with ROS1, a simple command like catkin build MY_ROS1_PACKAGE_NAME –force-cmake -G”Eclipse CDT4 – Unix Makefiles” would generate the necessary CMake project settings, so it could be imported in Eclipse via the Import > Existing Projectway. Does anyone know how to do this for ROS2 packages built with colcon? It seems that the idea of building individual packages from the workspace has changed and now we required to build the entire workspace.

    Even after following the instructions in https://index.ros.org/doc/ros2/Tutorials/Eclipse-Oxygen-with-ROS-2-and-rviz2/ I am not able to Execute/Debug a node within Eclipse.

    I’m new to ROS2, but I’ve been using ROS1 for quite a while. I’m probably missing some conceptual understanding of how colcon works, but it won’t hurt to ask if there are any developers using ROS2 in Eclipse that can provide some insight.

  • i cannot find how to start eclipse IDE after install

     
     

    i did a setup of eclipse IDE for my ubuntu19.04 x64. disclaimer: i am not at all a java dev, but i need this IDE to run a project i work with locally an no one in the team can tell me how to do so without this IDE.

    so i took an eclipse installer from the official website. “by Oomph”, i chosed “Eclipse IDE for Java Developers”

    setup runs sucessfully, IDE launches, i did open my java project with it, fine.

    but when i close the IDE i have no idea how to launch it again. Nothing useful is found in the head up display of ubuntu when i search for “eclipse”.

    the installed created a config folder in my user home folder, just containing a setup log. But there is no executable here. i don’t get why they do something so hidden. Any other ide i tested is able to be launched from CLI by its name.

    so if anyone is used to eclipse your advice would be welcome.

  • How to Install Eclipse IDE on Manjaro 18

    How to Install Eclipse IDE on Manjaro 18

    Table of Contents

    Install Eclipse IDE on Manjaro 18

    Eclipse is the most widely used Java IDE (Integrated Development Environment). The Eclipse IDE is written in C and Java. It supports multiple languages like C, C++, Java, PHP, Ruby, etc. for development. Eclipse comes with a variety of features and you can also extend it using plugins. In this tutorial, you are going to learn How to Install Eclipse IDE on Manjaro 18.

    Prerequisites

    Before you start to install Eclipse IDE on Manjaro 18. You must have the non-root user account on your system with sudo privileges.

    Install Eclipse on Manjaro

    Follow below instructions to install Eclipse on Manjaro 18:

    Eclipse requires Java to be installed on your system. Run java --version command to check if Java is installed on your system. If your system doesn’t have Java installed on then install it by using the following link:

    sudo dnf install java-11-openjdk.x86_64Copy

    Now download Eclipse IDE by using wget or curl command to download run below command:

    wget http://ftp.jaist.ac.jp/pub/eclipse/technology/epp/downloads/release/2019-03/R/eclipse-java-2019-03-R-linux-gtk-x86_64.tar.gzCopy

    After completing the above downloading process, extract the eclipse-java-2019-03-R-linux-gtk-x86_64.tar.gz using following command inside usr directory:

    sudo tar -zxvf eclipse-java-2019-03-R-linux-gtk-x86_64.tar.gz -C /usr/Copy

    Now create a symbolic link to /usr/bin directory using following command:

    sudo ln -s /usr/eclipse/eclipse /usr/bin/eclipseCopy

    This is the time to create a launcher icon for Eclipse IDE so you can launch it from anywhere to do so create eclipse.desktop file inside /usr/share/applications/ directory using following command:

    sudo nano /usr/share/applications/eclipse.desktopCopy

    Now paste following code inside above file:

    [Desktop Entry]
    Encoding=UTF-8
    Name=Eclipse IDE
    Comment=Eclipse IDE
    Exec=/usr/bin/eclipse
    Icon=/usr/eclipse/icon.xpm
    Categories=Application;Development;Java;IDE
    Version=4.8
    Type=Application
    Terminal=0Copy

    After completing the above instructions you have successfully installed Eclipse on your Manjaro system.

    Start Eclipse

    You can also visit Appplications -> Eclipse to start Eclipse IDE:

    Otherwise you can run the following command to start Eclipse on Manjaro:

    eclipse

    Once you start then it will ask you to select workspace directory, if you are running Eclipse IDE for first time. You can click on Launch or you can change the directory. Then you will see following screen:

    Conclusion

    You have successfully learned how to Install Eclipse IDE on Manjaro 18. If you have any queries regarding this then please don’t forget to comment below.

  • DVT Eclipse IDE

    For design and verification engineers who are working with Verilog, SystemVerilog, Verilog AMS, VHDL, UPF, CPF, e Language, PSS, SLN, or SDL, the Design and Verification Tools (DVT) Eclipse IDE is an integrated development environment (IDE) that significantly improves productivity.

    Unlike plain text editors providing regular expression based capabilities, the DVT Eclipse IDE compiles the code and signals errors as you type, speeds-up code writing using auto-complete and quick fix proposals, and allows you to find anything you are looking for instantly.

    What the DVT Eclipse IDE can give you in seconds would likely have taken you several minutes or hours to find and do by hand.

    It is similar to well-known programming tools like Visual Studio®, NetBeans®, and IntelliJ® that are commonly used in the software world.

    The DVT Eclipse IDE enables engineers overcome the limitations of plain text code editors and address today’s project complexity more efficiently. It enables faster and smarter code development and simplifies legacy code maintenance for novices and experts alike.

    The DVT Eclipse IDE consists of a parser, a smart code editor, an intuitive GUI, and a comprehensive set of features that help with code inspection, navigation, and debugging. In addition, DVT includes several capabilities that are specific to the hardware design and verification domains, such as class and structural browsing, signal tracing, and verification methodology support.

    The DVT Eclipse IDE is built on the powerful Eclipse Platform used by tens of thousands of engineers worldwide and inherits the best features and practices collected into the platform core. The Eclipse Platform’s extensible architecture allows DVT to integrate within a large plug-in ecosystem and work flawlessly with third-party extensions.

    Features

    • On the fly standard compliant compilation. The DVT Eclipse IDE uses an IEEE standard compliant parser (IEEE 1800 SystemVerilog, IEEE 1647 e Language, IEEE 1076 VHDL, and IEEE 1801 Low Power). There is no need to invoke the simulator to make sure the code compiles without errors. DVT performs on-the-fly incremental compilation and as such, the editor highlights the errors in real time, as you type.
    • Advanced code editing capabilities such as autocomplete, quick fixes, macro expansion, intelligent code formatting, refactoring, connect module instances, code templates, and in-line reminders for task tracking.
    • Code and project navigation features such as hyperlinks, semantic search, class and structural browsing (e.g. class hierarchy, design hierarchy), check and coverage views, dynamically created UML diagrams and design diagrams, and trace port connections. These features enable users to navigate easily through tens of thousands of code lines, locate the relevant information, inspect a class or module structure, and understand the source code quickly.
    • Verification Methodology Support. The DVT Eclipse IDE supports the Universal Verification Methodology (UVM) , Open Verification Methodology (OVM) , and Verification Methodology Manual (VMM). It includes an UVM/OVM automated compliance-checking capability and a built-in OVM-to-UVM Migration Wizard that offers advanced transition capabilities using refactoring scripts.
    • Integration with the NCSim , Specman , VCS , and Questa simulators for simplified simulation analysis and debugging. One can easily invoke a simulator and then visualize and browse its output on the DVT console through a smart log viewer. The log simulation errors and warnings are hyperlinked to the problematic source code.
    • Integration with revision control systems like CVS , Git , Subversion , ClearCase and bug tracking systems such as Bugzilla.
    • Cross-language capabilities for mixed-language projects allows users to work with source code written in multiple languages (i.e. SystemVerilog, Verilog, VHDL, e), navigate seamlessly through large projects, easily see the big picture, and understand the whole design.
    • Customizable views. Besides the source code window opened into the GUI, at any given moment one can bring in and move around the necessary information, and look from a higher perspective or drill down into details. For example, a GUI perspective can include views of the source code, types, class hierarchy, layers, errors and warnings, tasks, macros, and diagrams.

    10 reasons to choose the DVT Eclipse IDE

    • Quickly fix the errors flagged as you type (incremental compilation).
    • Move around in the source code using hyperlinks.
    • Speed up code writing and avoid typos using auto-complete.
    • Continuously improve the code using refactoring.
    • Easily create and reuse code and project templates.
    • Understand the project using high-level structural views like class or design hierarchies.
    • Trace a signal throughout the design.
    • Visualize the project architecture using UML Diagrams or Design Diagrams.
    • Place reminders and track tasks.
    • Integrate mixed language projects.
  • Where Arduino meets Eclipse

    You like Arduino, your projects are getting bigger and you feel the Arduino IDE is not powerful enough?

    This is about Sloeber a free, open source, Eclipse IDE to ease your development efforts!
    This represents a completely free and open Arduino IDE alternative!
    Download the product, unpack and play!
    You speak Italian? Sloeber V4.3.1 as well. Try it out now!!!
    Welcome to a next stage for your Arduino projects!

  • Fix open source vulnerabilities directly from your Eclipse IDE

    We are excited to share that developers can now test and monitor their projects for open source vulnerabilities, natively from within their Eclipse IDE (integrated development environment) instance.

    As a rule, software developers mainly work from their favorite IDE, and the IDE they prefer is usually one that integrates well with their existing workflow. At Snyk, we also believe tooling should integrate seamlessly with your existing software development process in order to be most efficient. 

    For this reason, we have released a Snyk plugin that you can install directly from within Eclipse. Once installed, when you run the security scanning tool, Snyk analyzes the direct and indirect dependencies in your projects, identifies security vulnerabilities and license issues, and reports them back to you with essential details so that you can remediate them more quickly and smoothly.

    The power of the Snyk CLI

    To implement the Eclipse IDE plugin, we used our existing CLI capabilities to scan the projects in your workspace—enabling you thorough scans, remediation advice, and support for your projects regardless of language or package manager. 

    The core business of Snyk is to find and fix vulnerabilities in your project’s dependencies. Through our CLI, Snyk scans your different projects, built through different ecosystems, from within your local development environment. Snyk then automatically detects the type of project you have (language and package manager), creates a dependency tree in order to analyze all direct and indirect dependencies and then validates these dependencies against our proprietary vulnerability database. Based on this analysis, we then show whether a direct or transitive dependency contains a vulnerability, and we also direct you to the most recommended fix available for the issue.

    Seamlessly set Eclipse up with the Snyk plugin

    Installing the Snyk Vuln Scanner for Eclipse is easy. Search for Snyk from the Eclipse Marketplace, click install, follow the instructions and you are good to go.

  • Getting Started with CodeMix

    CodeMix is an Eclipse plugin that gives you access to a wide array of technologies from VS Code and add-on extensions built for Code OSS. If you’re an experienced Eclipse developer, CodeMix has a few new UI elements and usability models to be aware of. If you have experience developing with VS Code, you will find these features familiar; however, you will access them differently in CodeMix.

    The CodeMix plugin is compatible with Eclipse-based IDEs and tools—like MyEclipse, Spring Tools Suite, and JBoss Tools—so you can continue working in the environment you are accustomed to.

    Workbench Basics

    This section covers some CodeMix fundamentals that come in handy when working with projects and code.

    Preferences

    To select preferences for important key bindings, supported editors and validators, select Window>Preferences (or Eclipse>Preferences on Mac), and then expand CodeMix and select the appropriate node. Many settings can be made directly from CodeMix. Other setting will include a link to edit the values directly in the json file.

    Under Extensions, you can add languages, debuggers, and tools to your CodeMix installation that support your development workflow. These settings pages cover the majority of settings provided by the installed extensions. Under Formatter, you will find formatting related settings. You can use the filter at the top of the Preference dialog to quickly find setting.


    CodeMix Preferences

    VS Code and extension specific settings can be made at the workspace level or project level. If preferences are set in multiple locations, project settings have the highest priority, followed by workspace settings.

    • Workspace Settings—From Preferences, select CodeMix, and then select the appropriate node for the setting. Workspace settings are specific to your Eclipse workspace. 
    • Project Settings—Right-click your top-level project folder, select Properties>CodeMix, and then select the appropriate node for the setting. Project settings are stored within the project and are retained across workspaces, systems and users. 

    Quick Open and the Command Palette

    Effectively use these features to leverage the full potential of CodeMix and significantly improve your productivity. The keyboard shortcut is listed for each (Windows / Mac).

    Quick Open (Ctrl+P / Cmd+P)

    Quickly open files in your workspace.


    Quick Open

    Open Types (Ctrl+Shift+T Cmd+Shift+T )

    Jump to symbols across files, across languages.

    Open Local Symbols (Ctrl+O Cmd+O)

    Navigate within the current file, using the filter to quickly locate an element. 


    Open Local Symbols

    Command Palette (Ctrl+Shift+P Cmd+Shift+P)

    Use the command palette to do everything from running npm builds, to launching debug sessions. Use it to format your current document, or apply quick fixes en masse; you can even use it to refactor code. The command palette includes Eclipse commands as well—start typing to find a command for the job you need.


    Command Palette

    After opening the command palette, you can type #@ or > to go into the types, local symbols or command modes, respectively. 

    These key bindings can be turned on or off on the Preferences>CodeMix>Miscellaneous>Bindings page, or customized on the Preferences>General> Keys page, type Quick Open in the filter to find them.

    Extensions

    Extensions add a whole range of functionality to your CodeMix installation—from supporting new languages and frameworks, to productivity enhancements when coding, advanced validation, and even debugging capabilities.

    CodeMix automatically installs appropriate extension packs when you create a CodeMix project, as well as intelligently suggests them based on what files you are editing.


    Python Pack Suggestion

    To manually install extensions, go to Help>CodeMix Extensions.


    Extension Manager

    For more information, see Extensions in CodeMix.

    Terminal

    Use a host of Terminal commands to open a CodeMix terminal in Eclipse. You can also create a new terminal from the Terminal view, and choose the CodeMix terminal in the dialog.


    Terminal Commands

    You can use the Terminal: Select Default Shell command to change the shell created by default. It will include OS specific options, like PowerShell on Windows 10, for instance.

    Debugging

    Right-click on your project to bring up the context menu, and choose Debug As>CodeMix Launch (or Angular Web Application). If your project doesn’t already have a launch.json file, one is created and you can choose the launch type. Available launch types depend on the extensions you have installed.


    Debugging with launch.json

    Once your launch has been created, click the launch icon in the launch.json editor’s ruler area, or go to the Debug Configuration dialog from where you can launch your debug session. CodeMix specific launches will be grouped under the CodeMix node.


    Accessing Debug Configurations


    Launching from Debug Configurations

    For more information, see Debugging in CodeMix.

    Status Bar

    The status bar indicates the state of your connection to the CodeMix engine, and other details that are relevant to the file you are editing. For example, the version of TypeScript is displayed for TypeScript files and can be changed, while other items indicate whether a linter is active.


    Status bar notifications

    If the connection to the CodeMix engine breaks, this icon  displays in the status bar and no CodeMix functionality works. This should ideally never happen, but if it does, restart your IDE. If the disconnected state persists, or if you get into this state frequently, please get in touch with support.

    Evergreen Updates

    When a new release of CodeMix is available, CodeMix updates automatically. To force an update, press Ctrl/Cmd+Shift+P and type Update CodeMix.


    Forcing an update

    If an update was downloaded, an icon displays in the status bar:  . Updates are applied the next time Eclipse is started.

    Creating a New Project

    To create a new project, go to File>New>Other>CodeMix and choose any of the project wizards there to start with a new Angular, React, Python, etc., project.


    New Project wizard

    The project creation process automatically downloads the corresponding extension pack to ensure you have all the development support you need for that technology.

    Note: Depending on the speed of your connection, it might take awhile to download all the required extensions, you can watch the status area to monitor the installation progress. When installation is complete, you may be asked to restart the CodeMix engine (not the IDE) for the extensions to be enabled.

    The projects have a READFIRST.md file which includes some essential steps you need to run and build the project, while the README.md shares more details on the project itself.


    READFIRST.md

    A Note on Project Metadata

    Unlike typical Eclipse projects, CodeMix features function in just about any folder with the corresponding source files in it. In Eclipse-speak, you don’t need to enable natures, builders or facets for IntelliSense, advanced navigation or validation to start working. This is quite liberating once you get used to the idea. Most projects with conventional layouts are usable out of the box.

    Importing an Existing Project

    Select File>Import>Projects from Folder or Archive, select the project and import it into CodeMix. Most projects are usable out of the box.

    CodeMix Editors

    CodeMix automatically associates itself with supported file types, making the corresponding CodeMix editor the default editor for these file types. To explicitly open a file with a CodeMix editor, right-click on the file and select Open With> <file type> :: CodeMix.


    Opening a CodeMix editor


    Preferred Editor Preferences

    Note: The first time you open a workspace with CodeMix, if it had open editors, the workspace starts with these files opened in the older, non-CodeMix editors. Close and reopen these files to open them in the CodeMix editor.

    Editing Code

    Unlike typical Eclipse editors, most CodeMix editors show you content assist suggestions as you type, without waiting for a period or other special characters. You can explicitly invoke content assist by pressing Ctrl+Space, though most of the time this won’t be necessary. 


    IntelliSense in a vue file

    From code folding to formatting, there are a number of features in the editor that will improve productivity. Some other popular ones include:

    • View/go to definition—Hover the mouse over a variable to see the definition, then press Ctrl (Cmd on a Mac) to see the declaration in place, which is especially useful for methods and functions. You can click when pressing Ctrl (Cmd on a Mac) to jump to the corresponding piece of code.
    • Move line—Press Alt + up/down to quickly move lines up or down. 
    • Comment line—Press Ctrl+/ to toggle a comment line.

    Extensions can often improve something as fundamental as typing—good examples are the Auto Close Tag and Auto Rename Tag extensions. When working with markup such as HTML or XML, Auto Close Tag automatically inserts a closing tag when you type in a new tag, and Auto Rename Tag automatically renames the matching closing or opening tag when you edit one of them.

    For more information, see IntelliSense in CodeMix, Editing in CodeMix, and Navigating Code.

    Building and Validation

    CodeMix supports two validation modes: in-editor validation that affects any file open in an editor, and project level validation that is used for all other files in your project.

    Project level validation can use generic built-in validation tech, or be configured to use external tasks, which are often used to build and serve your application as well. With build pipeline support in CodeMix, the validation and build experience is seamless.

    For further details, see Build Pipelines and Validation in CodeMix and Tasks in CodeMix with tasks.json.

    Helpful Resources

    We understand the challenges that come with implementing new technologies and introducing new software to the mix. Our CodeMix development team is committed to partnering with you to make sure you get the most from CodeMix.

    New to CodeMix 3 is eLearning. Interactive tutorials guide you through a variety of technologies and tips that make you a more efficient coder. Refer to the CodeMix eLearning Guide for details on using this feature.

    Use Live Chat to connect with one of our CodeMix developers—select Help>CodeMix>Live Chat. Whether you need help using the software or just want to give us feedback on how we can make CodeMix even better, we are excited to hear from you! Live Chat is included with your license.


    Live Chat

    In addition, we also offer free support in our forums and an in-depth learning center to help you get the most out of CodeMix. You can access these from the Help>CodeMix menu.

    Advanced: Project Registration with CodeMix

    For CodeMix to work on a given project, the project must first be registered with the CodeMix engine. In order to save resources that would be needlessly consumed by projects not being worked with, CodeMix will intelligently register projects only when required. This has the additional benefit of reducing the engine startup time, and results in an optimal overall development experience.

    Caveat: If you have not interacted with a project in the current session, it may not be registered with the CodeMix engine. In such cases, symbols from the project will be absent from the workspace-wide symbol list (accessible with Ctrl/Cmd + P + @). Similarly, if another project you are working with references symbols in this project, these symbols will not be presented in content assist suggestions. This is typically a concern only when you are working with a number of interdependent projects.

    In such cases, you can either interact with the project to have the engine register it, or you can force the registration of a project with the engine, by checking the, “Always register project at CodeMix startup”, checkbox on the Project Properties>CodeMix>Miscellaneous page.