asbjornenge / Docker.tmbundle

Dockerfile syntax
MIT License
75 stars 27 forks source link

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

Open mlalpho opened 1 week ago

mlalpho commented 1 week ago

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

princemaple commented 1 week ago

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