aziz / SublimeANSI

ANSI escape codes color highlighting for SublimeText 3
225 stars 40 forks source link

Coloring gone #62

Closed Zlatov closed 5 years ago

Zlatov commented 5 years ago

Coloring of the text disappeared. Ubuntu-18, ST-3207. Previously worked. After installing manually and switching to commit b97ea0ea077181c7b8cb9db6d8a2775b2541ea6c the problem disappears. Tested on two computers at home and at work. I would like to get rid of manual rollback of the package.

jfcherng commented 5 years ago

Without an exact reproducer (plugin configurations and what's the problematic input?), I do not think there is something that I can do to help you. b97ea0ea077181c7b8cb9db6d8a2775b2541ea6c is not helpful here.

If you install this package manually rather than by Package Control, Package Control should not upgrade this package if I remember correctly. Package Control needs package-metadata.json to track package version and package-metadata.json is not existing if you install a plugin manually.

jfcherng commented 5 years ago

Does this work for you? https://github.com/aziz/SublimeANSI/commit/d9c7fc6b1e0dd4431eee1c7fec2aadde754c7346

NicoLugil commented 5 years ago

I just installed ANSIEscape, I also get no colours:

image

Let me know how I can provide more info...

jfcherng commented 5 years ago

@NicoLugil ANSIEscape is not auto working. You have to set the syntax to ANSI for it in case you want to convert the file content.

NicoLugil commented 5 years ago

Yes it is set:

image

jfcherng commented 5 years ago

Upload the original text here so people can reproduce it.

NicoLugil commented 5 years ago

This is the text:

[^[[34m2019-10-03T14:08:38^[[0m] DEBUG ^[[36mCSettings^[[0m: ^[[35mReading settings file ^[[0m
[^[[34m2019-10-03T14:08:38^[[0m] DEBUG ^[[36mCSettings^[[0m: ^[[35m------------------------ matching ---------------------^[[0m
[^[[34m2019-10-03T14:08:38^[[0m] DEBUG ^[[36mCSettings^[[0m: ^[[35mpattern is >playground<^[[0m

renders as follows on my terminal:

image

NicoLugil commented 5 years ago

Can I see from within sublime which version of ANSIescape I am using?

jfcherng commented 5 years ago

Yes. Ctrl+Shift+P -> type package list

jfcherng commented 5 years ago

This is the text:

[^[[34m2019-10-03T14:08:38^[[0m] DEBUG ^[[36mCSettings^[[0m: ^[[35mReading settings file ^[[0m
[^[[34m2019-10-03T14:08:38^[[0m] DEBUG ^[[36mCSettings^[[0m: ^[[35m------------------------ matching ---------------------^[[0m
[^[[34m2019-10-03T14:08:38^[[0m] DEBUG ^[[36mCSettings^[[0m: ^[[35mpattern is >playground<^[[0m

renders as follows on my terminal:

image

please upload a file. pasting text on github wont be exact the same for some invisible chars.

NicoLugil commented 5 years ago

sf.log

NicoLugil commented 5 years ago

version: image

jfcherng commented 5 years ago

sf.log

This file works on my side. image

Zlatov commented 5 years ago

After f2bdf3985f90a98aba4e22c7672daa0248f99b8f works fine! But, which is more correct?:

  // ~/.config/sublime-text-3/Packages/User/builds/Bash.sublime-build

  "syntax": "Packages/ANSIescape/ANSI.tmLanguage",
  // or
  "syntax": "Packages/ANSIescape/ANSI.sublime-syntax"
jfcherng commented 5 years ago

After f2bdf39 works fine! But, which is more correct?:

  // ~/.config/sublime-text-3/Packages/User/builds/Bash.sublime-build

  "syntax": "Packages/ANSIescape/ANSI.tmLanguage",
  // or
  "syntax": "Packages/ANSIescape/ANSI.sublime-syntax"

The later one. It's a newer syntax format for ST.