Docker.tmbundle icon indicating copy to clipboard operation
Docker.tmbundle copied to clipboard

error: Error loading syntax file "...Dockerfile-bash.sublime-syntax": ...: no such target scope:source.json#arrays

Open mlalpho opened this issue 1 year ago • 1 comments
trafficstars

When switching to Dockerfile-bash syntax, an error pops up and breaks syntax highlighting. I think this is related to the recent commit, but, I don't know any context on the change.

I was able to workaround by setting an Override (i.e. adding Folder, Packages\Dockerfile Syntax Highlighting\Syntaxes, with modified Dockerfile-bash.sublime-syntax inside.

image

https://github.com/asbjornenge/Docker.tmbundle/blame/c001fb280561d7c16f0f2837d76af493cf6c3bf8/Syntaxes/Dockerfile-bash.sublime-syntax#L53

Sublime Text Build 4169 Windows 10

mlalpho avatar Jun 25 '24 03:06 mlalpho

In Dev build 4175 (or a version in between 4169 and 4175, I can't remember) they changed it from array to arrays.

An override will have to be used for now, until a newer stable version is out.

https://github.com/sublimehq/Packages/commit/1e3ffaec85baaa99fef0b59003c9511750648ba2#diff-6f9ea69e5ca5975db738156a2e4b01dbd0c4b5b77a5989acd61dacc1abc38cd4L51

https://github.com/sublimehq/Packages/commit/1e3ffaec85baaa99fef0b59003c9511750648ba2#diff-6f9ea69e5ca5975db738156a2e4b01dbd0c4b5b77a5989acd61dacc1abc38cd4R104

princemaple avatar Jun 27 '24 00:06 princemaple