Automatic broken references resolution in MPS 3.1
One of the neat enhancements that has been implemented in MPS 3.1 is the ability of the editor to automatically re-resolve broken or out-of-scope references. Imagine, for example, that you refer to a field from a piece of BaseLanguage code, e.g. from a method body.
Highlighting the field’s usages (Control/Cmd + Shift + F7) confirms that the reference points to the field declaration.
If, at this point, you introduce a parameter to the method with the same name, the field declaration gets moved out of the scope, since the parameter hides it. The reference gets automatically re-resolved to the parameter declaration so that the code remains valid.
If you eventually remove the parameter, the reference will start pointing at the field declaration again.
This capability also enables you to first type in the reference and only then create a definition that the reference should point to.
To enable automatical reference re-resolution, you need to enable the corresponding flag on the Editor page in the Project settings.
We’ve also shot a short video showing this and other scenarios when this capability comes in handy. Check it out.
Develop with pleasure!
-JetBrains MPS Team
Subscribe to Blog updates
Thanks, we've got you!
The Early Access Program for MPS 2021.3 is open
Our release of MPS 2021.3 will be delayed until next year. That said, we can’t finish the year without giving you a glimpse of what you can look forward to. DOWNLOAD MPS 2021.3 EAP Experimental Kotlin language support An experimental Kotlin implementation is now bundled with MPS. While it supports m…
Feature Freeze for MPS 2021.1
Today we’re rolling out the last build in the Early Access Program for MPS 2021.1, and these are the last few features that will be included in the release. Try them out. Zoom in and Zoom out The font size can be quickly adjusted in the currently open editor window by holding Control/Command and rol…
MPS 2021.1 EAP3 is now ready for you to try
We are getting ready for the major release of MPS 2021.1, and the Early Access Program (EAP) is our way of sharing with you the new functionality that we have been working on in recent months. Here are the new features we’ve implemented in this version. Model viewer in diff dialog The MPS model view…
Early Access Program of MPS 2021.1 is open
The Early Access Program is an important part of our product development process for identifying critical issues with the new release features. If you encounter any problems, please report them to our issue tracker. Check out the new functionality that we have prepared for you. Improved access to $L…