shramov / tll

MIT License
9 stars 3 forks source link

Loss of url when importing config #5

Open Diego2la opened 1 year ago

Diego2la commented 1 year ago

app.yaml

processor.objects:
   logic:
      url: java://;java=my.Logic

config.yaml

processor.include:
    - yaml://app.yaml

processor.objects:
   logic:
      url.param: 1

reproduction.py

#!/usr/bin/env python3

import pytest

cfg = Config.load('yaml://config.yaml')
cfg.process_imports('processor.include')
url = cfg['processor.objects.logic.url']
print('url = %s' % url)

Received url = None in terminal while url = java://;java=my.Logic expected.

Workaround: use in this case a broken url

    logic: url: {tll.proto: java, java: ..., args: ... }

It is desirable to obtain a systematic solution to the problem.

libtll0 version: 0.0.0-794-gd575a42~exp+ubuntu20.04

Diego2la commented 7 months ago

not a bug Crooked syntax that should not be used