How to debug a Lua script in Sublime Text 2 under Linux - scripting

I am using Lua (I am newbie on it) for scripting under Sublime Text 2 and Linux and I would like to debug my script so I would like to set some breakpoints. How can I achieve this?

Sublime text 2 is just a text editor, it is not an environment and so you cannot debug in it. I don't actually script Lua, so I am not that familiar with the tools available for it but they are out there.

Corona Labs released plugin for Sublime, which supports debugging. Check out: https://sublime.wbond.net/packages/Corona%20Editor

As far as I see - no such a thing thing for Sublime Text. Only some kind of Corona Texmate Bundle[1] derivative for Sublime[2].
Also there are couple of links for Corona SDK IDEs in official Corona page[3]. Some of them provides debugging functionality...
[1]http://www.ludicroussoftware.com/corona-textmate-bundle/
[2]https://github.com/drowne/Corona-Sublime
[3]http://www.coronalabs.com/resources/3rd-party-tools-and-services/

It should be possible to write a plugin for SLT2/3
Plugins are written in Python, so there is no compilation needed or anything like that. But it's still a huge effort due to the fact that there is virtually no documentation available for the SLT scripting API.
Your best bet would be to borrow from existing projects like
https://github.com/Kindari/SublimeXdebug
http://sokolovstas.github.io/SublimeWebInspector/
There is also Outlaw which claims to be an IDE but it does not seem to support debugging and is more like a project manager with a mediocre editor attached. You can probably do the same in SLT with a few commandlets. It does seem to have completion though.

Related

Autocomplete does not work when using Odoo / Openerp

I'm using Pycharm as my Odoo IDE. But for the reason of no auto-complete function, it bring me coding trouble. So i wonder if there is a plugin that can provide auto-complete function or more convenient IDE?
Thanks for your help!
You can use Eclipse as Odoo IDE.
currently i am using eclipse as Odoo IDE, it's very easy to coding.
you should try it.
I found myself using PyCharm for the most of my programming needs. The key pain points PyCharm solved for me where robust code intel tools, better Python application run and debug support, with traceback clicking. The development efficiency gained from these features is enough to migrate over, even though there are features I miss in Sublime Text. However, these editors sync files perfectly and I can always alt+tab switch to Sublime Text when I need to write some Restructured Text or Markdown.
I am looking forward for the upcoming contender Github’s atom.io editor which has the ease and flexibility of Sublime Text plugin system, but with better features, UI integration and big development-oriented company backing it up. Atom team is still working on getting the basic architecture together, so it might be few years until we see robust Python tools on Atom. I’d guess HTML, CSS and JavaScript support get there sooner, as they are building the Atom itself on CoffeeScript.

Professional VHDL IDE? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
Is there a good IDE to work with VHDL projects ?
Or are most of the professionals working with emacs/vim/notepad++ ?
I use Emacs+VHDL-mode which is great if you don't mind (or have already climbed) the learning curve of Emacs.
Alternatively, you could try Sigasi-HDT which is Eclipse-based and has more GUI. And some more powerful refactoring tools by the look of it.
I have been using Sigasi HDT since it was released in january (I think) and am very pleased with it so far. Previously I used Vim for all my editing (C or VHDL), but since I switched to Sigasi I have not looked back. The Eclipse based plugin is much more than just syntax highlighting. The auto-completion of components and entities is a real time-saver and you avoid a lot of errors. You can download a free trial from their website (http://www.sigasi.com) and I encourage you to give it a try with grlib (http://www.gaisler.com) to see the real power of the plugin.
Maybe Xilinx ISE or Altera Quartus.
I once tried - at least I wanted to try - Altera Quartus, but I soon switched to a normal editor and took GHDL for simulation.
But I am no professional, so I suppose they are using some of the former two products.
Engineers in large semiconductor companies are using emacs/vim for code editing.
Integrated Development Environment doesn't make much sense there, since a project is a few thousand HDL files taken from different places on a *NIX network, setup scripts for a dozen different tools, and cron jobs to do frequent builds.
For simpler FPGA projects developed on Windows I've seen people using Borland CodeWright, UltraEdit, and Crimson Editor.
I've been using Notepad++ along with the free vendor tools to edit my VHDL on Windows.
My best bet is to use VIM to do whatever i need to for VHDL formatting. VIM has an extremely powerful facility to develop custom plugins, and no amount of IDE hopping will give you all the customization you would ever need.
Things like signal names < 20 characters, procedure lengths < 100 lines, no use of linkage ports -- all of these can be coded in VIM with minimal effort. You could actually run vcom or ncvhdl from within VIM and then see where the errors are.
Having said all this, you might want to take a look at what Sigasi has to offer. If you need more help on this, let me know -- it'd be fun coding a VIM plugin.
Emacs + VHDL mode + a compiler / simulator + source control.
The VHDL mode is configured to use the compiler to compile the design and optionally run the simulation.
Emacs can link with the source control to correctly check in, diff and tag.
I personally like this set up because the editor is open source and I can use it anywhere (Mac, Linux, Windows). The compiler / simulator can be anything from a free download (FPGA vendor sponsored Modelsim or GHDL) to a grid engine. Once set up, it pretty much becomes invisible.
Simplifide also has an eclipse plugin which supports VHDL, Verilog and SystemVerilog which contains all of the standard IDE features and more.
It can be downloaded at http://simplifide.com
I'm just using Scite, like for most other coding.
Some things in Scite make my VHDL coding pleasant:
Coloring is easy to set up. Either download a ready .properties file or modify the Ada mode.
Scite has a snippets plugin that's very useful for VHDL. All those boring process and architecture definitions are generated automatically for me with a couple of key-presses.
Scite is easy to customize with external scripts: I have scripts for compiling the current file, for fixing indentation, for listing all processes and so on, the possibilities are limitless.
Besides the big ones Sigasi and Simplifide there is also ZamiaCad a free VHDL IDE: http://zamiacad.sourceforge.net/web/
It depends on the kind of project you are developing. Modelsim provides a good IDE but the code editor lacks the advanced features we are accustomed to use. I use VIM to write the code, and Modelsim to simulate, debug etc...
There's another VHDL-IDE, it's a plug-in for Visual Studio, but as far as I could see, it is also available as standalone version (ie, you don't need a Visual Studio license). It seems relatively new, but so far I really like it.
http://www.vide-software.at
I switched to use Vim because it has a very large list of plugins for almost any language (I believe Emacs do also). You might not get the best VHDL IDE ever with it, but you get a familiar interface for every code and non-code you must edit. Plus, as you move between companies, you can take your environment with you.
For the ones using Vim, check vim-hdl. It's a plugin I'm working on that provides syntax checking based on simulators/compilers. I'm using daily with ModelSim and so far works nice.
Emacs with the appropriate language mode is my vote. Basic editing is easy enough to learn and there are a lot of example config files out there.
Kevin.
I'm using Xilinx ISE for educational purposes, it works really well. And it has everything. After applying for a student license, the student version it free to use, but it takes up a lot of space. The installation file alone is more than 6 gb. The book we use for school is referring to xilinx special properties. (“FGPA Prototyping by VHDL Examples”). I'm also programming on a nexsys 3 spartan 6 testboard, and I'll be using xilinx for another year, but when I finish the course I’m gonna look for something smaller. Happy to read about the lightweight alternatives.

Which TextEditor is easiest to customize for a new scripting language?

It's been more than an year that i'm developing a new scripting language with its own grammar rules and constructs.
I'd like to give the users of this language some minimalistic ide to work with, but i don't want/have time to make one from scratch so i'd like to take one already existing (it has to run on Linux platforms natively, so no windows-only editors plz) and customize it.
Well, which one is the easiest to customize without changing the source code and recompiling it, maybe even with plugin support?
Thank you.
UPDATE
I don't need to know which editor is the best for you, i need to know which one is the easiest to customize AND, most of it, which one has the most complete documentation about new language customization.
Ex: SciTE is good, but its documentation about custom grammars is really poor.
Have you looked into Scintilla/SciTE? I think it gets used often for this sort of thing. It's very lightweight, but from what I understand, is easy to add functionality to. It's not really an IDE, but it's more of a text-editor component that you could use as the basis for a simple IDE. I've used SciTE, which is a sort of demo text editor of Scintilla's capabilities. It's simple, but also quite fast and responsive.
I suppose another option would be to write plugins for existing IDEs such as Eclipse or Netbeans. Both of these IDEs support many languages just through 3rd-party plugins. Going this route means you don't need to build a complete UI, just the components needed to make your language work.
The downside of building plugins for an extendable IDE (such as NetBeans or Eclipse) is that you are at the mercy of the IDE developers. If they change the way the platform works, you must ensure that your plugins still work with the new versions. Sometimes this can become a major problem.
All of these options should work on Linux as well as Windows.
This sounds like a very ambitious project and I wish you luck.
I don't use linux too often, I use a Mac and my favorite text editor is called TextMate because it has snippets, code completion, and a whole mess of other features. The closest thing to it that I've found on linux is called Scribes.
There's always Emacs or Vim (I lean towards Vim, but that's just my opinion :) ). Neither are IDEs per se, but both are very extensible and it shouldn't be too hard to create settings for each that will aid people writing scripts in your language.

Alternative to Dreamweaver?

I'm tired of Dreamweaver overwriting wrong files on the server,
so I'm looking for an alternative.
I want color-coding and possibility to open/save and edit files direct from the server, so I don't need to save files on my desktop first.
I'm using Windows.
Every web developer should be hand-writing their mark-up - all forms of automated abstraction inhibit your understanding and awareness of the code and create maintenance problems for the future. I'm quite a zealot about this, you may be able to tell.
On that basis, I can heartily recommend Editplus: has code colouring, FTP and a huge amount of feature-sugar from line duplication to macros.
Notepad++ extended with some plugins is a really handy replacement. Though I can't call it IDE, it does virtually everything a developer need. In my case (a lot of repetitive code) Texter (a small app working in background) makes notepadd++ even more handy. So, my suggestion is: Notepad++ and Texter.
I switched to notepad++ when I had the same kind of problems with DreamWeaver. I tried some other programs too, but they were too complicated for my needs.
If all you need is color-coding and ftp-support, notepad++ is a good choice.
Visual Web Developer Express, which is the lightweight version of Visual Studio.
http://www.microsoft.com/express/
If you're using a Mac you should take a look at Coda
Well personally I use Programmer's Notepad but it doesn't support the facility to upload files to the server. You could get Notepad++ and this FTP plugin. I haven't tried Notepad++ but I'm sure that it isn't WYSIWYG.
Perhaps KompoZer? It has all the features you've asked for, and there's a Windows version (as well as Mac and Linux).
Dreamweaver... Not my cup of tea, because it lacks good support for modern web programming with Javascript or PHP.
For primary design, I use WeBuilder from Blumentals. Its also a good and not expensive PHP and Javascript IDE with debugging support and also has good CSS support with a built-in CSS editor.
I'm not a big fan of text editors like Notepad++ as an IDE replacement, because you often need a lot of additional plug-ins to have similar features like a IDE. But for some files or quick editing nothing can beat such editors (I like Notepad++ the most on Windows).
So for Windows I would prefer WeBuilder for all things (design & programming).
You use only Windows? For Linux there are other alternatives too ;)
When I searched an alternative for the Dreamweaver for PHP, I found some IDEs and one among them is Netbeans. Soon it became my favorite for my object oriented coding.
Here is the download page.
This has support for Zend and Symphony frameworks.
They also support File uploading.
When developping in PHP, I generally use Eclipse PDT.
If you are more oriented towards HTML/CSS/Javascript, you might be interested by Aptana, which is based on Eclipse too... Which means it can use lots of plugins, including some to work directly on a server, I suppose (see TM/RSE, for instance).
Note than Aptana can also be installed into an existing Eclipse installation, as a plugin.
Oh, also, I almost forgot : Eclipse is free, and there are both a free and a commercial version of Aptana.
(One bad thing about Eclipse being it requires a quite powerful computer -- at least 2 cores and 2 GB of RAM, if you want to use any other application at the same time...)
E Text Editor, a Textmate clone for Windows, claims to have FTP Support. But i haven't used this feature before.
I want color-coding and possibility to open/save and edit files direct from the server, so I don't need to save files on my desktop first.
The Zeus editor can highlight and fold HTML files, it integrates with HTML Tidy and can seamless edit files from the server via ftp/sftp.
It also has support for a host of other languages (i.e C/C++, C#, Java, Javascript, PHP, etc etc)

Small tools/scripts that help you so much?

On top of my head, especially for C/Linux developer:
ack
git-bz
colorgcc
colordiff
moap and prepare-ChangeLog
Is there some tool/script you couldn't work without, but that you feel others don't know so much?
For instance, I just found:
cppcheck
I don't use it that often, but the tool with the highest ratio of awesomeness to being little known has to be dot, which is the tool for drawing directed graphs that is part of the AT&T Graph Visualization suite. A nice example output is their Unix family tree.
On Windows or Linux:
grep, without a doubt
tail
vim
On Windows (and Linux, Solaris), XMLStarlet
I realize that grep and tail are well-known, but it amazes me how many people think it's magic when you use either one of them. Same thing with Vim. I'm hardly a power user, but I can open it up and have a small document complete before MS Word would even open.
Vim http://www.straw-dogs.co.uk/wp-content/vim_logo.png
Vim, my favorite editor
StackOverflow
Google
And my other two favourites are too large to be considered small :P
Visual Studio
The Internet
It's a language not a tool, but it is small and not yet well known: the programming language Lua. I can't live without it and it is gradually displacing my sh, ksh, awk, and perl scripts... One mark of genius: the escape character for string-search patterns is different from the escape character for quoted strings. No more trying to make sense of legions of backslashes!
git has had such a profound impact on my workflow that I do not want to code without it
firebug is a must for web development
standard command-line utilities/functions: grep, find, locate, tail, sed, awk, pushd, popd
custom TextMate bundle snippets, TextMate's bundle editor is superb even though TextMate lacks some important vi and emacs capabilities (like split buffers)
regular expressions - people need to learn how-to use regexps, period
I'm quite fond of:
.Net Reflector
Sysinternals (a bunch of cool tools here)
The python interactive interpreter and its pumped up variant iPython are the tools that have enhanced my programming productivity like no other.
Being able to experiment with new code on the fly and inspect objects, classes, and modules in any way you want interactively is simply awesome.
Does know one depend on Putty ?, i really dunno what i would do with out it
Most have been listed here already so I won't repeat. Here are a couple new ones.
LINQ Pad
Reflector
Sticky Notes VS Add-In
psValidation (My own Validation Class Library, Mostly RegEx)
- ANT
- Mylyn
- TortoiseSVN
- firebug (think console too!)
- TextMate
My faves are Notepad++, which I use for EVERYTHING that's not wrapped in a visual studio project, and a small macro in Visual studio that turns a c# variable declaration into a basic property. Both are simple, but oh so very useful!
Vim and PrintFile. All PrintFile does is print text and PostScript files, any which way I want them (including cut-and-paste).
I need the most tools when coding for web, anything else usually just a text editor.
for web:
Web Developer Add-On for Firefox
Notepad++
Pixie
MeasureIt Add-On for Firefox
Already listed but I must mention TextMate. I use Mercurial or Hg on a daily basis.
Firebug. More than anything else.