Questions tagged [dsl]
Domain-Specific Language is a programming language intended for a particular application domain
2,215
questions
1
vote
0
answers
39
views
Function literal with a receiver invocation
I can't seem to find much documentation on why the second invocation of foo works. Using the receiver as an argument doesn't make sense to me. I realize it might be more of a use case for DSLs but for ...
-1
votes
2
answers
49
views
How do I eliminate data duplication in querydsl?
query
select
book1.id as col_0_0_,
book1.title as col_2_0_,
images1_.id as col_5_0_,
images1_.filesize as col_9_0_
from
book book1
left outer join
...
0
votes
2
answers
45
views
Setting closure's delegate in method results in SO
I'm using the following code with builder:
Closure getObject = { String oType ->
return {
type oType
format 'int32'
}
}
def yaml = new YamlBuilder()
yaml{
string 'value'
object1{
...
0
votes
0
answers
45
views
Creating a parser in C for DSL calculator
I tried to fix the error on line 137 of the code.
As a result I get an exit code -1. And error:
note: expected 'const char * const' but argument is of type 'int'
1917 | CJSON_PUBLIC(cJSON *) ...
2
votes
0
answers
17
views
Is it possible for an editor eg vscode to autosuggest suitable types that conform to a type constraint?
For the following code, when I've supplied a type parameter to the performAs method of the concrete instance runner is it possible to get my editor to auto suggest easyTask or hardTask since they are ...
0
votes
0
answers
29
views
Optional Widget
How to make an optional widget in Swift? WidgetBundle uses @resultBuilder, so I think we can do something similar to SwiftUI:
// SwiftUI example
if showText {
Text("Optional text")
}
...
0
votes
1
answer
55
views
Query a string on array element in api with url enpoint
I'm using the Art Institute of Chicago API (https://api.artic.edu/docs/#introduction) and there is an element called subject_titles which is an array of strings. I want to query the API to show me all ...
1
vote
2
answers
140
views
"Code insight unavailable" warning while using kotlin dsl
I started to migrate groovy gradle scripts to kotlin dsl and didn't encounter any problem with build.gradle and settings.gradle files. I have several scripts that i apply in build.gradle.kts. When i ...
0
votes
0
answers
39
views
Ambiguous rules and predicate behavior in Xtext
I am stuck with the following ambiguous rules in Xtext:
UnaryExpression returns ExpressionAtom:
..................
| EXISTS? '(' SelectStatement ')'
| '(' Expressions ')'
//...
0
votes
1
answer
29
views
Missing `breakInside` rule on GrooCSS
I am using GrooCSS 1.0-GA to write CSS. Unfortunately, it seems like GrooCSS doesn't support breakInside so the following code:
GrooCSS.process(new Config(prettyPrint: true)) {
body {
...
1
vote
1
answer
48
views
Can't compile java project when I am using DSL json serialization and deserialization
I have googled on this. But doesn't get any result.
I am using jdk 8 of java.
When I am going to compile this code snippet. I get this error.
this is ResponseBody class.
public class ResponseBody {
...
1
vote
1
answer
113
views
How do I add syntax coloring for my custom file type to Visual Studio (not Code)?
I have a custom (text-based) file type used by our applications. It's neither XML nor JSON nor YAML, but a custom format (a domain-specific language, if you want to call it that) that meets our needs. ...
0
votes
1
answer
67
views
How to use feeder in gatling with 1 user and session, to make sequential HTTP requests
I am building a gatling feeder with 50 values in the sequence like this
var count = 0
val feeder = generateSequence {
val takenCount = (count++).takeIf { it < 50 }
if (takenCount != null) {...
0
votes
2
answers
57
views
Is it possible to do infix function composition in python without wrapping your functions in some decorator? [duplicate]
Title says it all. Seen lots of answers where folks have implemented f @ g, but this requires wrapping f, g in some infix decorator or class. Is it possible to get this to work? Maybe by patching some ...
0
votes
1
answer
40
views
Elasticsearch: search elements outside a range
I have data stored in elastic with a year_start and year_end integer values.
Then, I use a "year" to query elements.
My goal is to search elements that are within a "year".
When I ...
0
votes
0
answers
18
views
How to not trigger dependent builds of a scheduled build on teamcity when the last dependent build is green?
I have two build configurations:
val buildA = BuildA()
buildType(buildA)
val buildB = BuildB()
buildB.dependencies {
snapshot(buildA) {
onDependencyFailure = FailureAction.CANCEL
...
0
votes
0
answers
21
views
Apache Camel Renaming A Zip File And Deleting After Extraction
If I were to express what I want to do very simply: I want to extract the contents of a abc.zip file to another path, rename the zip file to abc.zip.Extracted and delete the abc.zip file.
But I can't ...
0
votes
1
answer
31
views
Is it necessary to return the same object in methods with fluent interface
in some sources such as the original article of Martin Fowler aren't written that methods would return the same object, and methods in examples return different objects but in some sources(newer) such ...
2
votes
1
answer
53
views
Issue with Directory Structure Generated by Gradle compileQuerydsl
I proceeded while watching the online lecture, and now I'm not sure if the version has changed or what, but even if I run compileQuerydsl, only the highest directory is created, not the target model.
...
0
votes
1
answer
28
views
Nextflow DSL2 error while constructing BLAST pipeline
''' #! /usr/bin/env nextflow
nextflow.enable.dsl=2
println "\nI want to BLAST $params.query to $params.dbDir/$params.dbName using $params.threads CPUs and output it to $params.outdir\n&...
0
votes
0
answers
28
views
OpenSearch DSL case statement
I'm working with OpenSearch data, utilizing the OS DSL JSON formatted query language.
The data set of devices that I'm querying against is as follows. I want to use case statement logic to create an ...
0
votes
0
answers
49
views
variable type issue in carl bot tag programming
I am making a tag for Carl bot (Discord) in which it should sum up the numbers of an arrray, since I couldn't find how to implement an array I faced issue with this code returning 0+10+10 (in 1 to 3 ...
0
votes
1
answer
44
views
How to send request with content-type is form-data?
The problem is: how to send a request with the body which has content-type Form-data and also this request body should contain saved parameter from the previous response
The code is:
TestPlanStats ...
0
votes
1
answer
38
views
How to send requests on the dynamic url in the TestPlanStats stats = testPlan(threadGroup())?
I need to create a performance test on the full operation flow with the several APIs.
httpSampler(urlForFirstRequest) and its children (new DslJsr223PostProcessor("Save url parameter from the ...
0
votes
0
answers
65
views
Is there a way to convert elasticsearch's eql to dsl?
I want to convert elasticsearch's eql to dsl?
I only found a way to convert sql to dsl.
I'm trying to parse elastic detection rules.
The rule shows the query as eql.
I'd like to change it to a dsl.
...
0
votes
1
answer
187
views
How to read a yaml file through a dsl script - jenkins
I've developed a seed job (which is a freestyle project) on Jenkins. This job takes specific parameters like 'name' and 'gitrepourl'. Now, my goal is to automate this process by using a YAML file that ...
0
votes
1
answer
62
views
How do you set up an array in Experian's PowerCurve Script?
Experian's PowerCurve software has an internal scripting language. The documentation on this software is limited and I can't figure out how or even if it's possible to implement an array.
How do you ...
0
votes
1
answer
68
views
Jooq Java Code to handle more than 200k records from a table
The table in my database has more than 200k records and I don't want to fetch all of them at once in the resultSet to process. I am trying to write a function in a service that calls another ...
0
votes
1
answer
237
views
how to generate versionName string in build.gradle.kts to be used in settings xml file in android app?
I have file build.gradle for module level
recently changed to be new Kotline DSL version rename to build.gradle.kts
I have a line to generate versionName to be used as string in xml (settings activity ...
0
votes
0
answers
30
views
Spring Integration + Swagger
I am trying to integrate swagger in Spring Integration flow. I know there is no support for Spring integration by swagger, but I am trying to do it manually. So, my approach is like, scan the ...
2
votes
1
answer
394
views
How to reuse the same process twice in within the same module in nextflow dsl2, but saving the output in a different name?
i am building a nextflow workflow (DSL2) and within the same module i need to reuse the same process twice, but the syntax i am using seems to offend nextflow, in the sense that it complains that the ...
0
votes
0
answers
76
views
Jenkins DSL Seed Job Run commands after the Job is created
I am creating a seed job which basically created a jenkins pipeline to onboard a new service which builds and deploys to ECR/EKS.
Below is my Jenkins DSL script (Have attached sample)
pipelineJob('...
1
vote
1
answer
116
views
nextflow: error while running gatk - command runs fine on command line without xmx options
I do not provide any XmXX, etc. settings whilst running gatk. I run my main.nf on login node of a HPC server
I have main.nf
params.outdir_fastp="/sc/arion/projects/name/user/...
1
vote
1
answer
501
views
nextflow: WARN: Input tuple does not match input set cardinality declared by process - using tuple
I've multiple processes, I take output of one as an input for another. I'm unable to understand when tuple works and when it doesn't.
main.nf
params.outdir_fastp="./trimmed"
params....
0
votes
1
answer
112
views
Access build config extra properties set using kotlin DSL
In my android application I am setting some extra properties which I should be able to get via build config.
android {
extra.apply {
set("version", "AN-1.15")
}
//...rest ...
1
vote
0
answers
18
views
How to update the isolation algorithm model with new data by not combining with existing data and without losing the old data's knowledge in python
I need to update the isolation model with newly fetched data by not combining with existing data.
I used DSL queries to extract data from Network Logs.
Then that data is fed as input to the isolation ...
1
vote
1
answer
36
views
Fetching documents with calendarItems.minNights first value greater than 2 using Elasticsearch DSL
I would like to learn how to fetch documents with the first value of the calendarItems.minNights field greater than 2 using Elasticsearch DSL. The data structure looks like this:
In the above data ...
1
vote
1
answer
145
views
nextflow: use global variable and use .name in another script (create index)
I have two scripts: main.nf and index_process.nf Third I am creating without passing variable dummy_index_process.nf
I initially create index by passing parameters, however I understood that params. ...
1
vote
1
answer
850
views
nextflow: how to pass directory path with files created in process before
I have three files: main.nf, index_process.nf and dummy_bwamem.nf
main.nf has output directory for index files to be created. The index is created using bwa aligner.
I provide a small FASTA (neisseria ...
1
vote
2
answers
385
views
nextflow: avoid work directory being generated despite output folder
I've following code that generates a out.txt in path I decide: results_new/check
The script runs fine, that is out.txt file is generated successfully, however, another out.txt is generated at:
/Users/...
0
votes
1
answer
52
views
Why an arbitrary repository, such as nexus/artifactory, defines in maven block in Gradle?
repositories {
mavenCentral()
maven {
//any repos
}
}
Why an arbitrary repository, such as Nexus, Artifactory, e.t.c defines in maven {} block in Gradle.
It's obviously another ...
0
votes
0
answers
83
views
Build with parameter option is keep getting unchecked when replay or abort the job - ( build job is created through job dsl groovy script)
I have created the a pipeline job with the help of groovy job dsl template, Its a parameterized pipeline job. whenever this pipeline job is replayed or aborted, build with parameter option is getting ...
0
votes
0
answers
106
views
How to turned a multi-branch Jenkins Job into a Job DSL (Conversion: Trouble with Multi-Branch Job)
Jenkins Job DSL Conversion: Trouble with Multi-Branch Job
I'm currently working on converting a multi-branch Jenkins job into a Job DSL. Here's what I've written so far:
multibranchPipelineJob('...
1
vote
0
answers
65
views
Transform a DSL (proprietary SEEXML) to Java
Problem
Currently we are running software from Seeburger company to transform e.g Edifact to iDoc.
Therefore a lot of mapping files exist to describe this transformation in a proprietary language ...
0
votes
0
answers
31
views
File remains unsaved while refactoring
I use the code mentioned below to implement a refactoring for my Xtext DSL.
public WorkspaceEdit executeCommand(Resource resource, Document document, ILanguageServerAccess access,
...
0
votes
0
answers
40
views
How to use Extensible Choice Parameter in Jenkins DSL to create pipeline jobs from a list?
I am quite new to Jenkins, so any help understanding coding practice and jargon would be appreciated.
I am trying to create a Jenkins DSL job that will create several other pipeline jobs from a list. ...
0
votes
0
answers
16
views
KIBANA-OPENSEARCH | Not able to create visualisation
I am trying to create a visualisation in kibana through DSL(Domain-Specific language). Below are the required conditions
it should match below conditions
abc.eventType.keyword:abc-creative-xyz and ...
0
votes
1
answer
44
views
spring-integration 5.x with mixed mode (servlet http inbound and reactive webclient outbound)
I'm having to re-use an internal framework that requires spring-mvc (servlet) inbound gateways but makes downstream HTTP calls using reactive webclient.
Our current implementation using a gateway() ...
0
votes
0
answers
25
views
Flowchart write DSL for process
I have a problem. I want to create a process with Flowchart DSL. Unfortunately my process with DSL does not look even close as I want it.
How I have to write the DSL?
op1=>operation: Task1
op2=>...
0
votes
1
answer
137
views
SSH Authentication with github from Jenkins Shared-library
I am trying to pull github code from Jenkins Shared Library with SSH Username and private authentication but getting below error.
ERROR: Credentials 'SSH_jenkins_with_Github' is of type 'SSH Username ...