About mbed
mbed is a tool for Rapid Prototyping with microcontrollers.
Take the tour...
Back to blog

Compiler Update: Fixes, more fixes, and a feature

We've now pushed live an update for the mbed Compiler focused on bug fixes and stability; it addresses a whole variety of quirky cross-platform problems and general application bugs, and has a good deal of internal rework to set us up for the next set of features.

The current compiler has actually proven itself to work really well, but with this update it is feeling more stable than ever across lots of different platforms; in fact, our compiler bug list is now empty (but I'm sure you'll help us change that!). Thanks to everyone who provided us bug reports and feedback to identify these issues.

Here is a summary of the important bugs that should now be squished...

Cross-browser compiler fixes

General compiler fixes

Publishing and importing

We also added a minor improvement to the compiler to allow importing of published projects as libraries. This basically means if you publish something containing reusable code (e.g. a peripheral driver class .h/.cpp, and no main() function or libraries), someone can pull it in as a library and use it within their project just using the URL. It is very primitive at the moment, but it squares-the-circle and makes it possible.

If you publish a project, when you go to it's homepage it looks something like:

Note, when publishing, you also now have the option to add a description and tags.

If you click "Import program in to Compiler", it'll do just that - Import this as a whole new program. No change there.

However, if you just copy the URL and go to the compiler, you can now right-click an existing program and select "Import Library...". Then paste in the URL and hit "Import":

Your program will now have pulled in the code as a library. You can also use the URL under "Import Files..." if you actually want to see/edit the files. There is lots of scope for improvement here, but hopefully this is a good start!

That's it for now. Thanks again for all the reports; if you have any problems after these updates, or spot new ones, please make sure you report it in the Bugs and Suggestions Forum!

Comments

10 Feb 2010

dear

I was  unable to compile on-line.

A window poped up and said:

"Internet explorer cannot download compiler / from mbed.org.

Internet explorer was not able to open this Internet site. the requested site is either unavailable or cannot be found. Please try again."

Please look at this problem.

10 Feb 2010

Hi Kian,

Yes, we're looking at this now. We moved the compiler fully over to SSL, and it seems Internet Explorer is not liking it; any other browser will work fine for the minute, but we should fix it very soon.

Thanks for the report!

Simon

10 Feb 2010

any other browser will work fine for the minute

Right, except Opera :(

10 Feb 2010

by the way, is there any compiler offline, that I could use when I have no access to www.

10 Feb 2010

This should be fixed now. Sorry for the hickup.

It turns out Internet Exploder + SSL + Content-Type: application/force-download = bang.

Simon

10 Feb 2010

thank you.

It works now.

cheers

10 Feb 2010

Just FYI,

It works on IE7, but not IE6

...kevin

11 Feb 2010

I'm finding in FF 3.5.7 that when you go past column 27ish, where you type/delete is offet by 1. and it gets worse roughly with multiples of 27, so when you get to 100 characters on a line, its offset by 3 characters.

11 Feb 2010

Hi Mark,

Can you check if you have any zoom applied? Unfortunately, zoom is not supported well in JS, so you currently have to have it at 100%.

For our reference, can you confirm the OS too?

Thanks!

Simon

11 Feb 2010

Ah good call Simon! That was driving me nuts! (It was Windows XP, but you've already pointed out the fix, it was a user error, not a bug :P)

11 Feb 2010

btw, I think we've just cracked the Zoom problem, and even got the compiler running on IE6 (does anyone still really use that?!). We'll roll them in with the Safari copy/paste fix we've now confirmed as working and aim to put it live tomorrow if it passes all our testing.

12 Feb 2010 . Edited: 12 Feb 2010

We've just put some fixes live that should squish problems in our latest compiler version:

We've also added support for Zoom in FF, Chrome, Safari and IE8 (not IE7 unfortunately) that therefore fixes...

  • Cursor alignment problem when zooming (as reported in this thread!)

Thanks for all the great feedback; this fixes all outstanding bugs with this version of the compiler. If you find any other problems, please just report it in the Bugs and Suggestions forum.

20 Mar 2010

he can some1 help me with offline compiler details .................

Please log in to post a comment.