Resize the splitter padding & Intelij plugin not working correctly [message #1852372] |
Thu, 12 May 2022 08:29  |
Eclipse User |
|
|
|
Hi all,
So i have a java Scout22 application and i wanted to know 2 things.
1) Is it possible to reduce the whitespace between the splitter and the other components. As you can see in picture 1 the whitespace between the table and the splitter is really big. Is there a easy way to reduce that? We tried it with css but the result was not really working.
2) I am using intellij to code the scout application. Now i have the newest scout plugin for intellij (12.0.0.2111151344). It appears that since i am using Scout22 the plugin seems to not work correctly. I can generate pages and forms but it only generates the client classes. It doesnt generate the formData classes or Services. Now my question is, is that intended or did i do something wrong?
Thank you all for your help,
Luis
|
|
|
|
|
Re: Resize the splitter padding & Intelij plugin not working correctly [message #1852458 is a reply to message #1852434] |
Tue, 17 May 2022 08:03   |
Eclipse User |
|
|
|
Hi Luis,
your plugin version 12.0.0.2111151344 (November 2021) seems not to be the latest one, but maybe it is the latest one for your IDE-version, as we had some compatibility issues (12.0.1.220591514 only works until IntelliJ 213.*).
I just uploaded an update but it might take some time (1-2 business days) until it is published as JetBrains is reviewing it. I apologize for the delay.
Maybe try an older IDE-version or check again after the update is published.
If there are still problems with the FormData- and Service-generation on a newer plugin version I will have a look.
Kind regards,
Fritz
|
|
|
Re: Resize the splitter padding & Intelij plugin not working correctly [message #1852611 is a reply to message #1852458] |
Fri, 27 May 2022 07:52   |
Eclipse User |
|
|
|
Hey Fritz
Thank you for updating the plugin :). I tested it in our project out and it still doesnt seem to be working correclty.
But then i tested it in a fresh Scout Project out and it works perfectly for some reason. So it might just be this specific scout Project we have. But i dont really understand what the problem there is since i dont get an error.
Regards,
Luis
|
|
|
|
|
|
|
Re: Resize the splitter padding & Intelij plugin not working correctly [message #1852767 is a reply to message #1852766] |
Fri, 03 June 2022 09:51   |
Eclipse User |
|
|
|
Hi Luis
The error is "Cannot start platform due to 33 invalid config properties: [key1, key2, key3, key4, key5, key6, key7, key8, key9, key10, key11, key12, key13, key14, key15, key16, key17, key18, key19, key20, key21, key22, key23, key24, key25, key26, key27, key28, key29, key30, key31, key32, key33]". So it seems you have properties in your config.properties files which actually don't exist in the application?
So either remove those unused properties from your config files or (if they are used somewhere else) implement an IConfigurationValidator which marks them as valid.
Still I don't know the relation to the removed dependency. And why it worked before.
Anyway adding a server dependency to the shared module seems quite dangerous to me, as this dependency is then also available in the client (which results in a server&client mix). Or are you using the serverbridge module and only use one WAR file?
Kind regards
Mat
|
|
|
Re: Resize the splitter padding & Intelij plugin not working correctly [message #1852770 is a reply to message #1852767] |
Fri, 03 June 2022 10:19   |
Eclipse User |
|
|
|
Hey Mat,
Well it basically says that all my custom props are not used. But they all are. Cause for all those properties i made sure that there are Property classes that extend the AbstractStringConfigProperty. I thought that would be enough.
So in that case i just add an IConfigurationValidator implementation and we´ll see how it works then.
But you are totally right adding a server dependency to the shared module is dangerous. I dont know why that was added there.
No we are not using the bridge module.
Regards,
Luis
|
|
|
Re: Resize the splitter padding & Intelij plugin not working correctly [message #1852771 is a reply to message #1852770] |
Fri, 03 June 2022 10:23   |
Eclipse User |
|
|
|
Hi Luis
You are right: Creating AbstractStringConfigProperty classes with these keys should be sufficient. Those are automatically validated by Scout. So then no custom IConfigurationValidator is required.
Then the issue might be, that these properties are not available in your server application? In which module are those properties implemented? And is this module added to the dependencies of the server?
Kind regards
Mat
[Updated on: Fri, 03 June 2022 10:24] by Moderator Report message to a moderator
|
|
|
|
Re: Resize the splitter padding & Intelij plugin not working correctly [message #1852773 is a reply to message #1852772] |
Fri, 03 June 2022 10:51   |
Eclipse User |
|
|
|
Hi Luis
This seems correct to me. Those property classes are public, have a no-arg-constructor and are static classes if they are nested?
Your server module contains a scout.xml file under src/main/resources/META-INF?
Because then they should be found by the default validation and your new IConfigurationValidator should not be necessary. I would recommend to remove it and track down why it is not found without it. Otherwise we might miss some other issues.
After removing your new IConfigurationValidator you could e.g. debug the class ConfigPropertyValidator during the server startup. It will build a map "m_configProperties" that holds all properties known by name. This map should include your custom properties.
Does this help?
|
|
|
Re: Resize the splitter padding & Intelij plugin not working correctly [message #1852774 is a reply to message #1852773] |
Fri, 03 June 2022 11:12   |
Eclipse User |
|
|
|
Hey Mat,
All my propertie classes are nested, static and public, yes. I also have a scout.xml in META-INF directory. There is not much in it but it exists.
I debugged the ConfigPropertyValidator and my properties are in the map. According to the ConfigPropertyValidator every propertiy is valid too.
But now it seems to be working for some reason, maybe there was something old cached.
Thank you very much for your amazing help, now you deserve a cold beverage of your choice and have a nice weekend :)
Regards,
Luis
|
|
|
|
Powered by
FUDForum. Page generated in 0.06229 seconds