Hi Frederico, I extended the CodeInput property with basic python support [1] and the possibility to disable JS linting.
So you can now do : .requiredCodeblock(label, CodeLanguage.Python) -> enables Python syntax highlighting (no linting by now) .requiredCodeblock(label) -> uses CodeLanguage.None and disables syntax highlighting completely In both methods, you can also provide a default code skeleton instead of the built-in skeleton. There's an example at [2]. Unless you're already on 0.69.0 or are happy to test a pre-release version, I suggest to wait a bit as the next version has some major changes to pipeline element discovery which requires some reconfiguration, but feel free to try it ;-) Hope this helps and thanks for your feedback! Dominik [1] https://issues.apache.org/jira/projects/STREAMPIPES/issues/STREAMPIPES-423 [2] https://github.com/apache/incubator-streampipes-examples/blob/dev/streampipes-pipeline-elements-examples-processors-jvm/src/main/java/org/apache/streampipes/pe/examples/jvm/staticproperty/CodeInputExampleController.java On 2021/09/03 08:35:30, "Rullo, Federico" <[email protected]> wrote: > Hello, > > Thank you for the help. > Is there any way for me to implement error handling for python or just > deactivate it for now? > Since Python isn't yet implemented it obviously check for JavaScript syntax. > > Fede. > > **Federico Rullo** _ > __________________________________________________________________ > > **GFT Italia S.r.l.** > Via A. Rimassa, 51/2 > 16129 Genova, Italy > > T +39 010 583158 > F +39 010 8680479 > [email protected] > [www.gft.com/it](http://www.gft.com/it) > <https://blog.gft.com> > <https://www.linkedin.com/company/gft-group/> > [www.twitter.com/gft_it ](http://www.twitter.com/gft_it ) > > [](https://www.gft.com/it/it/index/societa/stampa/press- > releases/2021/sostenibilita-e-innovazione-sociale--gft-lancia-il-greencoding- > e-in-italia-act-for-the-future/) > > Registered office: GFT Italia S.r.l., Via Sile 18, 20139 Milan (Italy) > VAT Code and number of registration with the Companies' Register of Milan: > 00819200478 > Corporate capital: Euro 1,000,000 fully paid-in > > Company subject to the direction and coordination activity of GFT Technologies > SE > > Ai sensi del Regolamento UE 2016/679 (GDPR) e delle Linee Guida per posta > elettronica ed Internet del Garante Privacy si rende noto che le informazioni > contenute nella presente comunicazione e i relativi allegati possono essere > riservate e sono, comunque, destinate esclusivamente alle persone o alla > Societa sopraindicati. Le stesse non sono da considerarsi comunicazioni > personali, quindi eventuali risposte potranno essere conosciute da persone > appartenenti all'azienda. > > In accordance with Regulation EU 2016/679 (General Data Protection Regulation) > and Guidelines Applying to the Use of E-Mails and the Internet in the > Employment Context of Italian Data Protection Authority it is announced that > the information in this communication (which includes any documents with it) > is confidential and meant only for above-mentioned persons and/or Companies; > the information is not personal therefore, It is intended for the addressee > only and any replies will be known by people belonging to the company. > _________________________________________________________________ > > > \-----Original Message----- > From: Philipp Zehnder <[email protected]> > Sent: martedi 31 agosto 2021 11:01 > To: [email protected] > Subject: Re: Extending Enum in Process > > [EXTERNAL EMAIL] > This email originated from outside of the organization or was sent > unauthenticated. Do not click links or open attachments unless you confirm the > sender and know the content is safe. > >
