What happened to VaadinWebSecurityConfigurerAdapter in Vaadin 19? - vaadin

We are building a web app with Vaadin 19 Fusion, and I'm following this tutorial:
https://vaadin.com/docs/latest/fusion/security/spring-login
(I have selected the V19+ Docs and then Fusion)
In the tutorial there is a reference to VaadinWebSecurityConfigurerAdapter which is used for setting up the security with Spring, but this class is not available on the classpath. I have tried downloading a plain starter project (v19) from start.vaadin.com, and here I am also not able to use VaadinWebSecurityConfigurerAdapter.
Is there an alternative in v19 or am I missing a dependency? I have the same dependency tree as the starter project, so I was assuming the pom is correct.

It looks like the VaadinWebSecurityConfigurerAdapter will end up in V20, which is scheduled for release in June.
The documentation page you linked has a tag V20 pre-release at the top. This could certainly be made more visible.

Related

Could not find goal 'update-theme' in plugin com.vaadin:vaadin-maven-plugin:23.1.1 among available goals build-frontend, prepare-frontend

I have started using Vaadin 23 which is launched recently. But when I'm trying to compile theme its not working. Below is the message I'm getting on console.
BUILD FAILURE
[ERROR] Could not find goal 'update-theme' in plugin com.vaadin:vaadin-maven-plugin:23.1.1 among available goals build-frontend, clean-frontend, dance, prepare-frontend
Many things have changed since Vaadin 8. There is no more update-theme. You should create a new template project and use that as a reference.
Vaadin 23 uses plain CSS instead of SCSS, so it doesn't need to be compiled. Thus there is no need for an "update-theme" goal.

com.vaadin.data.Provider not located

Currently, I am working on a Vaadin web application project in Netbeans. Recently, I looked into using the ExpandingTextArea addon, which ended up running into an unfortunate compilation error.
Apparently, the Property class in com.vaadin.data was missing. After searching through my dependencies, I found the com.vaadin.data package in my vaadin-server jar, and as expected, property was missing.
https://vaadin.com/api/7.7.6/com/vaadin/data/Property.html indicated that Property has been present since version 3.0, and as the URL indicates, it's been present up to 7.7.6.
Unfortunately, I am using 8.4.2; looking at https://vaadin.com/framework/releases, no versions between 8.4.2 and 8.5.0 (the most up-to-date version) contain Property (I installed the vaadin-server.jar's and then looked inside each one).
I'm thinking about making a Vaadin 8 version of ExpandingTextArea.
As such, is there some alternative to Property in Vaadin 8 that I could use?

Where is GlimpseTimeline?

I am using the latest Nuget package of Glimpse. I see in the official website that they have a GlimpseTimeline that allow to add custom event in the timeline. I see the Github source that this static class exist. How come it is not inside Glimpse?
The page on official website that you referensed says "The GlimpseTimeline API was introduced in v2+" now. And v2 haven't been released yet, which is sad.
You can download SSW.AnalyticsInterface.Glimpse nuget package which provides the same syntax and works well. But I think it's not opensource and that's quite confusing. If you fine with non-opensource code that may be your solution.

Is there any documentation for building Xcode 4 plugins?

Recently I've noticed a couple of projects on github that extend the functionality of Xcode 4 via plugins.
Two projects as examples by #olemoritz:
MiniXcode changes the main toolbar.
ColorSense provides overlays to help pick colours.
Both projects are installed into ~/Library/Application Support/Developer/Shared/Xcode/Plug-ins and Xcode just picks them up.
Are there any sources of documentation (officlal or user generated) on extending Xcode?
Edit: ping #olemortiz ;)
As I wrote those plugins you mentioned, here are some pointers:
There is no official documentation from Apple, so while Xcode does have a plugin infrastructure, it is entirely private API. (but hey, no one wants to submit Xcode plugins to the App Store, right? ;)) – The usual warnings apply: You should code very defensively, and it's possible that Xcode updates break things. Any plugin can bring Xcode down entirely, so be careful.
There is a seemingly abandoned effort to document the plugin interface here.
There are some open source projects that allow you to see what's needed to get a plugin loaded at all, e.g. mine and there's CLITool-Infoplist (I think that's where I got the basic structure from, but I can't really remember, because I've been doing this without publishing anything for quite a while).
You can use class-dump to generate headers from Xcode's private frameworks, e.g. IDEKit and IDEFoundation (in Xcode.app/Contents/Frameworks). Reading those gives you quite a bit of information on how Xcode is structured internally. DVTKit and DVTFoundation (in Xcode.app/Contents/SharedFrameworks) can also be useful to class-dump.
You can observe all notifications that are sent in Xcode by registering an observer for nil. I initially just logged all those notifications to get an idea of where I might be able to hook into.
Good luck!
There is no formal API or documentation.
Having said that nearly all community plugins are open sourced, use http://alcatraz.io to discover new plugins, then follow their github source code to learn how people are implementing them.
Here are some useful resources:
Use https://github.com/edwardaux/XcodeExplorer to discover the API hook point you need to be poking around.
Look at http://www.blackdogfoundry.com/blog/creating-an-xcode4-plugin/ for a series of posts about building Xcode plugins.
Check https://github.com/kattrali/Xcode-Plugin-Template for a Xcode 6+ template for creating new plugins.
Look at https://github.com/zats/AdjustFontSize-Xcode-Plugin as a good Xcode 7.1+ starting point
See http://www.blackdogfoundry.com/blog/debugging-your-xcode-plugin/ for debugging aid

Changing Grails SDK in IntelliJ IDEA Doesn't Work on Plugin Modules

IDEA 11.1.2
I have a Grails app I need to upgrade. The application consists of several modules. One being the application and a few others being plugins. I right clicked on the application and went to Grails -> Change SDK Version. I chose the version I wanted, then IDEA asked me if I wanted to upgrade the application. Clicked yes and all was good.
I've been trying to do the same thing on the plugin modules. IDEA never asks if I want to upgrade and it doesn't appear to change the SDK. If I upgrade the modules from the command line, when I come back to IDEA, it thinks there is a version mismatch and automatically downgrades me without even asking.
Is there a workaround for this?
It worked for me in this IDEA version. Make sure that you change Grails version in application.properties of all plugins:
app.grails.version=2.1.0
Then right-click on every module (plugin), Grails, Change SDK version. It should be changed already.
Have exactly same problem - app + plugins wich requires different SDK (for testing).
After some investigation found that it's an IntelliJ IDEA bug IDEA-114418. So, I think, it will be good if you'll vote for this bug there too.
I also had the same bug. I took extreme measures to rectify it.
I deleted the old grails from the Global Libraries. Go to file>Project Structure > Global Libraries . It should complain that this is used by a module.
Then I had to add grails framework support, but added the new one.

Resources