Sublime Forum

Build 3047 - C++ package replacement

#1

Hi there,
I installed the last build of Sublime Text 3 this morning but I still have a problem that was already present with the previous build.
I have my own C++ syntax coloration file, and I wanted to replace the already existing package. So I named my folder “C++” and put it in the
“Package” folder. But it does not seem to override the existing package. I thought this build would remove this bug, so am I doing something wrong ?

Regards.

0 Likes

#2

Nobody has the same error ?

0 Likes

#3

Works For Me™.

You didn’t say the actual path in which you put that directory or if there are errors in the console resulting from your changes. I can only assume it’s not actually in the correct path based on your quote: “Package”. That might be a typo. The folder is called “Packages

0 Likes

#4

The default “C++” package is in the “Cache” folder. My “C++” package is in the “Package” folder, under ~/.config/sublime-text-3 on Linux (I use Ubuntu).
So my snippets are recognized inside sublime text but the syntax coloration is still a mess.
Here is a link to the different files I use: https://gist.github.com/athanase/5910696

Any idea ?

PS: here is the output of the console when launched

DPI scale: 1
startup, version: 3047 linux x64 channel: stable
executable: /opt/sublime_text/sublime_text
working dir: /home/jean
packages path: /home/jean/.config/sublime-text-3/Packages
state path: /home/jean/.config/sublime-text-3/Local
hardware concurrency: 4
zip path: /opt/sublime_text/Packages
zip path: /home/jean/.config/sublime-text-3/Installed Packages
found 4 files for base name Default.sublime-keymap
found 1 files for base name Default.sublime-mousemap
found 1 files for base name Main.sublime-menu
loading bindings
loading pointer bindings
found 1 files for base name Default.sublime-theme
theme loaded
app ready
startup cache, total files: 147 cache hits: 147
pre session restore time: 0.17314
Loading dictionary Packages/Language - English/en_US.dic
using gamma: 1 (err: 0)
startup time: 0.514067
first paint time: 0.662825
launching: /opt/sublime_text/plugin_host
reloading plugin Default.block
reloading plugin Default.comment
reloading plugin Default.copy_path
reloading plugin Default.delete_word
reloading plugin Default.detect_indentation
reloading plugin Default.duplicate_line
reloading plugin Default.echo
reloading plugin Default.exec
reloading plugin Default.fold
reloading plugin Default.font
reloading plugin Default.goto_line
reloading plugin Default.history_list
reloading plugin Default.indentation
reloading plugin Default.kill_ring
reloading plugin Default.mark
reloading plugin Default.new_templates
reloading plugin Default.open_file_settings
reloading plugin Default.open_in_browser
reloading plugin Default.pane
reloading plugin Default.paragraph
reloading plugin Default.paste_from_history
reloading plugin Default.save_on_focus_lost
reloading plugin Default.scroll
reloading plugin Default.set_unsaved_view_name
reloading plugin Default.side_bar
reloading plugin Default.sort
reloading plugin Default.swap_line
reloading plugin Default.switch_file
reloading plugin Default.symbol
reloading plugin Default.transform
reloading plugin Default.transpose
reloading plugin Default.trim_trailing_white_space
reloading plugin CSS.css_completions
reloading plugin Diff.diff
reloading plugin HTML.encode_html_entities
reloading plugin HTML.html_completions
plugins loaded
loaded 845 snippets

0 Likes

#5

ok, I think I should ask a better question:
Does anybody know how packages with syntax files work in sublime text 3 ?
Is there any documentation about it ?

0 Likes

#6

FOR F*** SAAAAAAAAAAAKE :astonished:

I am so sorry for this question.
It was working on sublime text 2 since it was already in cache.
In the transfer, bad character have been added to my C.tmLanguage which is needed by the C++.tmLanguage.
But no errors were displayed in the console in sublime text 3. This is after openning C.tmLanguage and SAVING it
that sublime text noticed the error in the file.
After correcting the file, everything works fine. Sorry about that. Ar least that is something I will remember in the future !!
:smiley:

0 Likes