So I am working with MOAI 2D game engine and I am using Eclipse with the Koneki plugin to interpret Lua.
Right now, autocomplete works with normal Lua libraries like math. and io. but what I want to do is set up autocomplete for the MOAI libraries. I have created and imported my library into Eclipse but the autocomplete doesn't work and I don't know why. I must be missing a step.
So far, I've gone to Window > Preferences > Lua > Execution Environment and added my library. Then I right clicked on my project and went to properties. Then I went to Lua > Build Path and added my library to the project. At this point I tried to use autocomplete functionality by typing things like MOAISim. but I had no luck.
I've searched around alot with no results. Any help would be great.
Autocompletion is provided by Execution Environments that include formatted documentation.
There is a library of execution environments here. It looks like someone has contributed one for MOAI. To install an execution environment, see this article.
Related
I have an Arduino code and want to continue programming in Eclipse IDE. Basically it consists of 2 main projects which use a lot of common, mostly self-written libraries and structs.
I want to include the two main projects and the libraries in Eclipse.
The problem is, that the compiler can't find the Libraries.
I already Googled a lot but didn't come to a working solution yet.
There are many possible solutions to this problem:
- Move the libraries to C:\Users\Andreas.arduinocdt\libaries - does not work.
- The best one: Set the Arduino Sketchbook location of the Eclipse Arduino IDE. But I can't find the location of this setting.
- Tell the compiler all location of the libraries.
- Write something ugly like this: #define INCLUDE_PATH(N) - But it doesn't work with external (downloaded) libraries or libraries consisting of multiple files.
But I didn't get any Solution to work.
Eclipse Version: 2020-03 (4.15.0)
Can you help me, please! Thank you very much!
Andreas
The current structure of the project. The SettingsGateway is one of many libraries.
Hi I ditched Eclipse for Arduino (microcontroller) development. I use a combination of ArduinoIDE wirh notepad++ as Editor (with plugins) and doxygen for documentation. I write code in C, C++, Javascript CSS, HTML so pretty different code bases. The "problem" with eclipse: it saves the libs woth the project, so if I change something in a lib I have found so far no easy way to automaticlly distribute it to the other projects using the same lib.>br>I am sure there is some plugin, but my job is to code and not to readd ocumentation of an ever changing IDE. If you stay with eclipse for Arduino Sloeber is your easiest option: http://eclipse.baeyens.it/index.shtml Everything together in a central place, you can then install other modules if needed
When developing a Node.js application in Eclipse, you usually import your own modules with functionality tied to exports (append functions) or module.exports (allows popular object literal notation).
But how do you set this up for code completion in files where you import your module?
Module
As you can see in the outliner, Eclipse is "aware" of the function:
Yet importing the module as tools doesn't make it's functions available:
I also tried the oldskool //#import tools.js but it doesn't seem to work like this.
How do I get code completion for my own functions in my project?
#Jey Keu: this question has some suggestions towards our mutual dream of code completion, namely:
Amateras plugin
JSDT editor
Aptana Plugin
SPKET plugin
VJET plugin
But it was closed by a bunch of people who know nothing about Eclipse. Profiling is the basis of code completion. But they think profiling is unicorns and rainbows and therefore not constructive.
I think, depending on your specific development needs, that VJET is your best bet. If you can get it to work without destroying every other function within Eclipse, please share your wizardry in this question.
http://eclipse.org/vjet/
I've been trying to convert from Java to Scala for a few months, and found that the greatest roadblock is that Eclipse plugin for Scala is hardly better then using Vim.
I normally have "Build Automatically" on, so apart from Open and Save, the commands I use most of the time are:
Open Declaration (F3)
References > Workspace (Ctrl-Shift-G)
Open Type Hierarchy (F4)
Open Type (Ctrl-Shift-T)
Content Assist (Ctrl-Space)
and looking at the Outline.
None of this works with the Scala IDE for the libraries. Some stuff works for my own code, like outline. But the rest just returns the following error:
The resource is not on the build path of a Java project.
Is there any way to get any of those things to work in Eclipse? Without them, basically the only thing I get is syntax highlight and compile-on-save, and I can get syntax highlight from vim without needing 1.5 GB of ram...
With implicits, and static function import, finding out from where something comes is really difficult without F3. I ended up using Google to find what class/trait defines what.
[EDIT] I just pulled Eclipse Classic 3.6.2, and update-1.0.0-milestones-2.8.1.final, which wasn't available the last time I checked. They have fixed the Outline, and "Open Type", that's it. The rest still doesn't work.
Which version of the Eclipse plugin are you using? If the version is from a while ago, then you're right, it's a bit buggy.
However, there is a new version, currently in beta (as of 23.04.2011) available from Scala IDE Eclipse download site. This is a lot better.
Also, please make sure that the 'Use JDT content assists' checkboxes are checked in Scala->Setup diagnostics window.
Please try the new version, and see if it fixes your problems. If not, raise a bug, and the team will fix it.
I wish to write my own Python IDE (just for the heck of it). I was wondering if I could use Eclipse as a foundation. This will save me from coding a whole lotta things (code editor, intellisense and so on).
To understand what I mean, please take a look at Visual Studio Isolated Shell. I'm essentially looking for something equivalent. Searching on Google hasn't helped. Is there anything like this available in Eclipse's case?
Yes. Eclipse is designed to have additional languages added and there is extensive support for this kind of plugin development. I'm surprised Googling didn't help - there's an entire site dedicated to a tutorial on the basics and a toolkit for developing such things
I'm currently evaluating eclipse after using Textmate for all my development for many years. What I miss in Eclipse and what I can't find any solution for are some kind of generic templates:
I'm using PDT for my JavaScript and PHP development, and it supports code-templates. however , in my projects I'm writing large amounts of shell-scripts, yml-configuration-files, xml-files, gnu make scripts, etc., too. I'm writing source-documentation for all these scripts using a generic syntax (similar to robodoc) and you can save much time, when you can insert the doc-blocks using templates. however, besides PDT not all of the editor-plugins support templates.
Is there some generic way of storing code-snippets/templates in eclipse, which will work across all editor-plugins? I think it should be possible to implement such using eclipse monkey -- however, it seems development of monkey was stopped?
I'm using Eclipse 3.4.0.
If you have the web tools (WTP) plugins installed you should have a Snippets view which is an editor-independent place for collecting reusable code snippets. You can create and place your snippets in there and can separate them using 'drawers'. Double clicking or dragging a snippet item will insert it in the active editor.
The web tools user guide has a section about this view.
Why don't you try Snip2Code plugin?
It is a general purpose snippet manager platform that you can add to your Eclipse and will store your snippets on the cloud, so that you don't have to sync them when you reinstall Eclipse or move onto another machine.
http://www.snip2code.com/Static/Downloads