de-jcup / eclipse-yaml-editor

Eclipse YAML editor
https://marketplace.eclipse.org/content/yaml-editor
Apache License 2.0
35 stars 10 forks source link

What does mean: mapping values are not allowed here in 'reader' #64

Closed mxmlnglt closed 5 years ago

mxmlnglt commented 5 years ago

I have this yml file:

logging: level: graphql: debug execution: ExecutionStrategy: info

Validation message says:

mapping values are not allowed here in 'reader', line 4, column 16: execution: ^

What does that mean? Especially what is 'reader' refering to?

Yaml_editor_validation_message_reader

de-jcup commented 5 years ago

Hello @mxmlnglt,

Parent nodes may not have direct values in YAML.

Your graphql: debug cannot be a parent node.

so this is not correct:

logging:
  level:
    graphql: debug
      execution:
        ExecutionStrategy: info

but this one is correct (at least correct Yaml, I do not know the log level format)

logging:
  level:
    graphql: debug
    execution:
        ExecutionStrategy: info
mxmlnglt commented 5 years ago

Oh yes of course, I did understand that (well, I'm new to yml, so I figured it out afterwards). But the thing is the error message isn't explicit enough, especially as the 'reader' seems unrelated here.

de-jcup commented 5 years ago

The error messages are from embedded snake yaml parser. see https://github.com/asomov/snakeyaml If you have wishes about the error message please make an issue there.

Ooussamaa commented 1 year ago

Hello,

Can you please identify where is the problem here and why I am having this error message "yaml.scanner.ScannerError: mapping values are not allowed here"

Thank you

here is the content of my .Yaml file name: Emperical Gaussian description: Three turbines using emperical Gaussian model floris_version: v3.x

logging: console: enable: true level: WARNING file: enable: false level: WARNING

solver: type: turbine_grid turbine_grid_points: 3

farm: layout_x:

flow_field: air_density: 1.225 reference_wind_height: -1 # -1 is code for use the hub height turbulence_intensity: 0.06 wind_directions:

wake: model_strings: combination_model: sosfs deflection_model: empirical_gauss turbulence_model: wake_induced_mixing velocity_model: empirical_gauss

enable_secondary_steering: false enable_yaw_added_recovery: true enable_transverse_velocities: false

wake_deflection_parameters: gauss: ad: 0.0 alpha: 0.58 bd: 0.0 beta: 0.077 dm: 1.0 ka: 0.38 kb: 0.004 jimenez: ad: 0.0 bd: 0.0 kd: 0.05 empirical_gauss: horizontal_deflection_gain_D: 3.0 vertical_deflection_gain_D: -1 deflection_rate: 15 mixing_gain_deflection: 0.0 yaw_added_mixing_gain: 0.0

wake_velocity_parameters: cc: a_s: 0.179367259 b_s: 0.0118889215 c_s1: 0.0563691592 c_s2: 0.13290157 a_f: 3.11 b_f: -0.68 c_f: 2.41 alpha_mod: 1.0 gauss: alpha: 0.58 beta: 0.077 ka: 0.38 kb: 0.004 jensen: we: 0.05 empirical_gauss: wake_expansion_rates:

mxmlnglt commented 1 year ago

The error messages are from embedded snake yaml parser. see https://github.com/asomov/snakeyaml If you have wishes about the error message please make an issue there.

FYI repo is now @ https://github.com/snakeyaml/snakeyaml

Hello, @Ooussamaa

Please make a new issue please...

Ooussamaa commented 1 year ago

Hello @mxmlnglt,

I did create a new issue

here is the path: https://github.com/de-jcup/eclipse-yaml-editor/issues/116

Thank you