Skip to content

Google config parsing failed #6826

@thalassemia

Description

@thalassemia

Bug report

Expected behavior and actual behavior

Nextflow 26.01.1-edge cannot resolve config variables in the google context. This issue does not exist on Nextflow 25.10.4.

Steps to reproduce the problem

Run any Nextflow workflow with the following config file (e.g. nextflow -C test.config run main.nf):

google.location = "us-west1"
google.batch.subnetwork = "regions/${google.location}/subnetworks/default"

Program output

The error looks like the following:

 N E X T F L O W   ~  version 26.01.1-edge

Error test.config:2:38: `google` is not defined
│   2 | google.batch.subnetwork = "regions/${google.location}/subnetworks/defa
╰     |                                      ^^^^^^


ERROR ~ Config parsing failed

 -- Check '.nextflow.log' file for details

Here is .nextflow.log:

Feb-12 01:06:31.526 [main] DEBUG nextflow.cli.Launcher - $> nextflow -C nextflow_temp/test_installation/test.config run nextflow_temp/test_installation/main.nf
Feb-12 01:06:31.583 [main] DEBUG nextflow.cli.CmdRun - N E X T F L O W  ~  version 26.01.1-edge
Feb-12 01:06:31.603 [main] DEBUG nextflow.plugin.PluginsFacade - Setting up plugin manager > mode=prod; embedded=false; plugins-dir=/Users/<>/.nextflow/plugins; core-plugins: nf-amazon@3.7.0,nf-azure@1.21.0,nf-cloudcache@0.6.0,nf-codecommit@0.5.0,nf-console@1.3.0,nf-google@1.26.0,nf-k8s@1.5.0,nf-tower@1.20.0,nf-wave@1.18.0
Feb-12 01:06:31.618 [main] INFO  o.pf4j.DefaultPluginStatusProvider - Enabled plugins: []
Feb-12 01:06:31.619 [main] INFO  o.pf4j.DefaultPluginStatusProvider - Disabled plugins: []
Feb-12 01:06:31.620 [main] INFO  org.pf4j.DefaultPluginManager - PF4J version 3.12.0 in 'deployment' mode
Feb-12 01:06:31.626 [main] DEBUG nextflow.util.RetryConfig - Missing nextflow session - using default retry config
Feb-12 01:06:31.690 [main] INFO  org.pf4j.AbstractPluginManager - No plugins
Feb-12 01:06:31.703 [main] DEBUG nextflow.config.ConfigBuilder - Parsing config file: /Users/<>/nextflow_temp/test_installation/test.config
Feb-12 01:06:31.704 [main] DEBUG nextflow.config.ConfigParserFactory - Using config parser v2
Feb-12 01:06:31.711 [main] DEBUG nextflow.config.ConfigBuilder - Applying config profile: `standard`
Feb-12 01:06:31.797 [main] ERROR nextflow.cli.Launcher - Config parsing failed
nextflow.exception.ConfigParseException: Config parsing failed
        at nextflow.config.parser.v2.ConfigParserV2.parse(ConfigParserV2.groovy:154)
        at org.codehaus.groovy.vmplugin.v8.IndyInterface.fromCache(IndyInterface.java:321)
        at nextflow.config.parser.v2.ConfigParserV2.parse(ConfigParserV2.groovy:184)
        at org.codehaus.groovy.vmplugin.v8.IndyInterface.fromCache(IndyInterface.java:321)
        at nextflow.config.ConfigBuilder.parse0(ConfigBuilder.groovy:454)
        at org.codehaus.groovy.vmplugin.v8.IndyInterface.fromCache(IndyInterface.java:321)
        at nextflow.config.ConfigBuilder.merge0(ConfigBuilder.groovy:439)
        at org.codehaus.groovy.vmplugin.v8.IndyInterface.fromCache(IndyInterface.java:321)
        at nextflow.config.ConfigBuilder.buildConfig0(ConfigBuilder.groovy:395)
        at org.codehaus.groovy.vmplugin.v8.IndyInterface.fromCache(IndyInterface.java:321)
        at nextflow.config.ConfigBuilder.buildGivenFiles(ConfigBuilder.groovy:336)
        at org.codehaus.groovy.vmplugin.v8.IndyInterface.fromCache(IndyInterface.java:321)
        at nextflow.config.ConfigBuilder.buildConfigObject(ConfigBuilder.groovy:833)
        at org.codehaus.groovy.vmplugin.v8.IndyInterface.fromCache(IndyInterface.java:321)
        at nextflow.config.ConfigBuilder.build(ConfigBuilder.groovy:846)
        at nextflow.cli.CmdRun.run(CmdRun.groovy:362)
        at nextflow.cli.Launcher.run(Launcher.groovy:515)
        at nextflow.cli.Launcher.main(Launcher.groovy:675)
Caused by: org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:
_nf_config_968b9ac46f029ea6: 2: `google` is not defined @ line 2, column 38.
   google.batch.subnetwork = "regions/${google.location}/subnetworks/default"
                                        ^

1 error

        at org.codehaus.groovy.control.ErrorCollector.failIfErrors(ErrorCollector.java:292)
        at org.codehaus.groovy.control.CompilationUnit$ISourceUnitOperation.doPhaseOperation(CompilationUnit.java:878)
        at org.codehaus.groovy.control.CompilationUnit.processPhaseOperations(CompilationUnit.java:660)
        at org.codehaus.groovy.control.CompilationUnit.compile(CompilationUnit.java:634)
        at nextflow.config.parser.v2.ConfigCompiler.compile0(ConfigCompiler.java:112)
        at nextflow.config.parser.v2.ConfigCompiler.compile(ConfigCompiler.java:97)
        at nextflow.config.parser.v2.ConfigParserV2.parse(ConfigParserV2.groovy:133)
        ... 17 common frames omitted

Environment

  • Nextflow version: 26.01.1-edge
  • Java version: openjdk version "21.0.7" 2025-04-15 LTS
  • Operating system: macOS
  • Bash version: zsh 5.9 (arm64-apple-darwin25.0)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions