Fork me on GitHub

  New "Wollok Freire" released!

There is a new Wollok release: 1.6 version, a tribute to an outstanding educator and philosopher: Paulo Freire. His work is a source of inspiration for every teacher in this world.

This year several teacher and developer joined into a broader team, leading to a new product. Monthly we do hackatons and meetings, to work together and catch up with each other.

If you like to join us, stay tuned!

Meet Freire!

You can see in this link a brief resume of closed issues (100+) for this milestone. Let’s see in plain english what’s new:

Test suite with fixtures

Now in wollok you can define

  • individual tests (as usual)
  • and also describe tests, with instance variables initialized in a fixture, so state is shared among them.

Both kind of tests are still isolated, automatic and repetitive.

  • Tests results and editor are fully integrated, so you can navigate stack trace errors and failures.
  • A new Show only failures and errors toggle button allows to focus only in tests we should correct.
  • Now you can run all tests in a specific project (it works for individual and describe tests):

In Outline View we can see the structure of a describe

Language enhancements

Beyond minor corrections, there is an important change in Wollok Freire about constructors:

  • every class inherits constructors from its superclass, so now you don’t have to define a constructor that simply delegates to super
  • unless explicitly defining one constructor: in this case superclass constructors will be overriden

Remember you can search any Wollok library class by pressing Ctrl + Shift + F3 and typing the name of the looked class:

New Validations

Student’s feedback helped us to add new validations to early detect code smells:

  • Cyclic loops in hierarchy (like A inherits from B, and viceversa)
  • Conceptual errors like overriden methods that only calls to super
  • Spanish speaking users now can enjoy internationalization of validation messages

So, several checks were added and we expect to add more in a near future.

Quick Fixes

User experience is better, as this demo shows:

  • Spanish speaking users now can enjoy internationalization of quick fixes descriptions
  • Enhanced context dependent quick fixes for classes and objects, tests and describes were developed
  • Quick fixes don’t require to manipulate elements in same file. Now you can add a wko’s method defined in a .wlk file while editing a test

Project organization

As soon as you realize you have a large project, Wollok allows you to organize your definitions in packages.

All you have to do is import objects and classes using package names as prefixes, separating each folder with a dot:

Static diagram enhancements

Wollok static diagram has full integration with environment tools:

Now a lot of features are available:

  • Every manual adjustment and configuration is saved, so you never lose your changes.
  • Diagram has a smart drawing algorithm to place elements. Nevertheless, you can change size or location of them.
  • You can show and hide classes, variables or methods in the diagram, so it is easy for the student to add this diagram as an additional documentation artifact (constructors and accessors are never shown)
  • Remember that you can navigate to editor by double clicking any element, and you can export diagram to a png image file
  • All inheritance relationships are automatically detected. Until now association and dependency relationships must be manually defined, using Palette Toolbar at the right of the diagram.
  • You can dismiss any action: show hidden elements, show hidden variables/methods of a certain element, delete association / dependency relationships.

  • In 1.6.1 version you can add external elements if they are in the same project!

REPL Console enhancements

  • You can (finally!) paste any text from the clipboard, without having to press a space key

  • You can run REPL console without any open project

  • When an error occurs, you can navigate stack trace directly to editor

Plugins changes

  • Default Version Control System plugin in Wollok is now EGit, a widely used plugin that integrates Git with Eclipse.

  • SVN plugin no longer comes with Wollok installation. If you need to use it, you can install it manually from Marketplace, like any other Eclipse plugin

External Libraries Support

From now on, you can run a .wlk, .wtest or .wpgm by passing any JDK 1.8-compatible external library.

So you can configure your Running environment to use any .jar libraries.

  Solved Issues

You can see the solved issues for