Skip to content

"non-constant source not supported" but it's really supported #1388

Description

@Ganton

Code editor

Kate

Platform

Linux (Kubuntu 26.04)

Version

5.6.0

What steps will reproduce the bug?

#!/bin/bash

libFolder="/usr/local/lib"

# shellcheck source=/usr/local/lib/example.sh
source "$libFolder/example.sh" || exit 1

How often does it reproduce? Is there a required condition?

It happens every time.

What is the expected behavior?

No error messages.

Command completion working (in the test script) for symbols that are defined in "example.sh".

What do you see instead?

[10:00:29  Servidor LSP Registro] bash@
[Warn] 08:00:29.871 WARNING ⛔️ file:///run/user/1000/1/t2.sh line 5: non-constant source not supported

Additional information

First of all, thanks for your work.

If source "$libFolder/example.sh" is used instead of source "$libFolder/example.sh" || exit 1, no problem is seen (!).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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