Skip to content

Improve logging output from Nimma when a custom function errors #236

@jimkidd2048

Description

@jimkidd2048

For support questions, please use the Stoplight Community Forum. This repository's issues are reserved for feature requests and bug reports. If you are unsure if you are experiencing a bug, the Community Forum is a great place to start.

Describe the bug

when validating a yaml document the linting stops and following notification appears.

image

The spectral output channel has the following error:

[Error - 4:31:33 PM] An error occurred while validating document file:///xxxV1.yaml: AggregateError: Error running Nimma

It looks like the same issue was reported and corrected in the CLI repo: stoplightio/spectral#2053

Environment:

  • Extension version: v1.1.2
  • VS Code version:
    Version: 1.89.0 (user setup)
    Commit: b58957e67ee1e712cebf466b995adf4c5307b2bd
    Date: 2024-05-01T02:09:22.859Z
    Electron: 28.2.8
    ElectronBuildId: 27744544
    Chromium: 120.0.6099.291
    Node.js: 18.18.2
    V8: 12.0.267.19-electron.0
    OS: Windows_NT x64 10.0.19045
  • Operating System: Windows 10

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions