I’m in the process of moving all of my plugin files into a single directory along with adding sublime-settings support… The menu has been created and it works, the name may change so I wanted to create some vars which would precache important locations ( so the logic wouldn’t need to call os.path.join every call - instead call a cached var with that data to save time )… but the data is being deleted!
So far I have almost everything in the single folder - I still need to create a mapper linker so the CodeMap custom_mappers/ folder can be populated with all identical files which link to my folder with a better class-loading system to support file-extensions which have multiple languages - example: PHP uses: PHP, RegEx ( PHP Implementation ), SQL, HTML, CSS, JavaScript, RegEx( JavaScript Implementation ) - so 6 languages - one with 2 different implementations… with the current system you end up with circular imports… which is why I’m doing it this way and adding optimizations where I can…
The vars add a tiny bit of overhead and therefore reduce the need to make functions calls each time it loads or saves a file from / to cache… but I have no idea why the heck the data is being deleted…
Has anyone experienced this before? Is this a bug I need to report? Is this some intended feature?
Definitions File
##
## Paths to files and other locations... This is where the paths are built for consumption throughout the plugin...
##
CFG_DEBUG_PATHS = not False
##
## Sublime
##
## Sublime Path to the AppData Packages Folder
SUBLIME_PATH_PACKAGES = sublime.packages_path( )
## Sublime Path to the AppData Packages User Folder
SUBLIME_PATH_USER = os.path.join( PLUGIN_PATH_PACKAGES, PLUGIN_FOLDER_NAME_USER )
##
## Core
##
## Default / Package Folder and important folders and file-names...
PLUGIN_PATH_BASE = os.path.join( PLUGIN_PATH_PACKAGES, PLUGIN_FOLDER_NAME )
PLUGIN_PATH_BASE_CFG = os.path.join( PLUGIN_PATH_BASE, PLUGIN_FOLDER_NAME_SETTINGS )
PLUGIN_PATH_BASE_SYNTAX_HIGHLIGHTERS = os.path.join( PLUGIN_PATH_BASE, PLUGIN_FOLDER_NAME_SYNTAX_HIGHLIGHTERS )
PLUGIN_PATH_CFG_CORE_DEFS = os.path.join( PLUGIN_PATH_BASE_CFG, PLUGIN_FILE_NAME_CFG_DEFS )
PLUGIN_PATH_CFG_CORE_CORE = os.path.join( PLUGIN_PATH_BASE_CFG, PLUGIN_FILE_NAME_CFG_CORE )
PLUGIN_PATH_CFG_CORE_MAP = os.path.join( PLUGIN_PATH_BASE_CFG, PLUGIN_FILE_NAME_CFG_MAP )
## Default Mapping Class Config Files - Note: This is going to be replaced with a dynamic system using MapSettings_<EXT>.sublime-settings which is the file-name in both folders User/ and non.. These are here for testing purposes..
PLUGIN_PATH_CFG_CORE_MAP_AHK = os.path.join( PLUGIN_PATH_BASE_CFG, PLUGIN_FILE_NAME_CFG_MAP_AHK )
PLUGIN_PATH_CFG_CORE_MAP_BAT = os.path.join( PLUGIN_PATH_BASE_CFG, PLUGIN_FILE_NAME_CFG_MAP_BAT )
PLUGIN_PATH_CFG_CORE_MAP_CPP = os.path.join( PLUGIN_PATH_BASE_CFG, PLUGIN_FILE_NAME_CFG_MAP_CPP )
PLUGIN_PATH_CFG_CORE_MAP_JS = os.path.join( PLUGIN_PATH_BASE_CFG, PLUGIN_FILE_NAME_CFG_MAP_JS )
PLUGIN_PATH_CFG_CORE_MAP_LUA = os.path.join( PLUGIN_PATH_BASE_CFG, PLUGIN_FILE_NAME_CFG_MAP_LUA )
PLUGIN_PATH_CFG_CORE_MAP_MD = os.path.join( PLUGIN_PATH_BASE_CFG, PLUGIN_FILE_NAME_CFG_MAP_MD )
PLUGIN_PATH_CFG_CORE_MAP_PHP = os.path.join( PLUGIN_PATH_BASE_CFG, PLUGIN_FILE_NAME_CFG_MAP_PHP )
PLUGIN_PATH_CFG_CORE_MAP_PY = os.path.join( PLUGIN_PATH_BASE_CFG, PLUGIN_FILE_NAME_CFG_MAP_PY )
PLUGIN_PATH_CFG_CORE_MAP_SUBLIME_SETTINGS = os.path.join( PLUGIN_PATH_BASE_CFG, PLUGIN_FILE_NAME_CFG_MAP_SUBLIME_SETTINGS )
PLUGIN_PATH_CFG_CORE_MAP_TS = os.path.join( PLUGIN_PATH_BASE_CFG, PLUGIN_FILE_NAME_CFG_MAP_TS )
PLUGIN_PATH_CFG_CORE_MAP_TXT = os.path.join( PLUGIN_PATH_BASE_CFG, PLUGIN_FILE_NAME_CFG_MAP_TXT )
##
## User
##
## User Configuration and Custom Files Folder - The name is different but that may change...
PLUGIN_PATH_USER = SUBLIME_PATH_USER #os.path.join( SUBLIME_PATH_USER, PLUGIN_FOLDER_NAME_USER )
PLUGIN_PATH_USER_CFG = os.path.join( SUBLIME_PATH_USER, PLUGIN_FOLDER_NAME_SETTINGS )
PLUGIN_PATH_USER_CACHE = os.path.join( SUBLIME_PATH_USER, PLUGIN_FOLDER_NAME_CACHE )
## USER Core Config Files
PLUGIN_PATH_CFG_CORE_USER_DEFS = os.path.join( PLUGIN_PATH_USER_CFG, PLUGIN_FILE_NAME_CFG_DEFS )
PLUGIN_PATH_CFG_CORE_USER_CORE = os.path.join( PLUGIN_PATH_USER_CFG, PLUGIN_FILE_NAME_CFG_CORE )
PLUGIN_PATH_CFG_CORE_USER_MAP = os.path.join( PLUGIN_PATH_USER_CFG, PLUGIN_FILE_NAME_CFG_MAP )
## USER Mapping Class Config Files - Note: This is going to be replaced with a dynamic system using MapSettings_<EXT>.sublime-settings which is the file-name in both folders User/ and non.. These are here for testing purposes..
PLUGIN_PATH_CFG_USER_MAP_AHK = os.path.join( PLUGIN_PATH_USER_CFG, PLUGIN_FILE_NAME_CFG_MAP_AHK )
PLUGIN_PATH_CFG_USER_MAP_BAT = os.path.join( PLUGIN_PATH_USER_CFG, PLUGIN_FILE_NAME_CFG_MAP_BAT )
PLUGIN_PATH_CFG_USER_MAP_CPP = os.path.join( PLUGIN_PATH_USER_CFG, PLUGIN_FILE_NAME_CFG_MAP_CPP )
PLUGIN_PATH_CFG_USER_MAP_JS = os.path.join( PLUGIN_PATH_USER_CFG, PLUGIN_FILE_NAME_CFG_MAP_JS )
PLUGIN_PATH_CFG_USER_MAP_LUA = os.path.join( PLUGIN_PATH_USER_CFG, PLUGIN_FILE_NAME_CFG_MAP_LUA )
PLUGIN_PATH_CFG_USER_MAP_MD = os.path.join( PLUGIN_PATH_USER_CFG, PLUGIN_FILE_NAME_CFG_MAP_MD )
PLUGIN_PATH_CFG_USER_MAP_PHP = os.path.join( PLUGIN_PATH_USER_CFG, PLUGIN_FILE_NAME_CFG_MAP_PHP )
PLUGIN_PATH_CFG_USER_MAP_PY = os.path.join( PLUGIN_PATH_USER_CFG, PLUGIN_FILE_NAME_CFG_MAP_PY )
PLUGIN_PATH_CFG_USER_MAP_SUBLIME_SETTINGS = os.path.join( PLUGIN_PATH_USER_CFG, PLUGIN_FILE_NAME_CFG_MAP_SUBLIME_SETTINGS )
PLUGIN_PATH_CFG_USER_MAP_TS = os.path.join( PLUGIN_PATH_USER_CFG, PLUGIN_FILE_NAME_CFG_MAP_TS )
PLUGIN_PATH_CFG_USER_MAP_TXT = os.path.join( PLUGIN_PATH_USER_CFG, PLUGIN_FILE_NAME_CFG_MAP_TXT )
## Core Files
PLUGIN_PATH_FILE_CORE_DEFS = os.path.join( PLUGIN_PATH_BASE, PLUGIN_FILE_NAME_CORE_DEFS )
PLUGIN_PATH_FILE_CORE_LIB = os.path.join( PLUGIN_PATH_BASE, PLUGIN_FILE_NAME_CORE_LIB )
PLUGIN_PATH_FILE_CORE = os.path.join( PLUGIN_PATH_BASE, PLUGIN_FILE_NAME_CORE )
##
## Helper to ensure the proper paths were generated..
##
def PrintAllPaths( *_varargs ):
if ( len( _varargs ) > 0 ):
for _path in _varargs:
print( '\t>> ' + str( _path ) )
if CFG_DEBUG_PATHS:
print( )
print( )
print( '>>>> Printing all paths for verification... >>>>' )
print( )
print( )
print( ' >> Printing >> PLUGIN_PATH_PACKAGES, PLUGIN_PATH_USER' )
PrintAllPaths( PLUGIN_PATH_PACKAGES, SUBLIME_PATH_USER )
print( ' << Finished << PLUGIN_PATH_PACKAGES, PLUGIN_PATH_USER' )
print( )
print( )
print( ' >> Printing >> PLUGIN_PATH_BASE, PLUGIN_PATH_BASE_CFG, PLUGIN_PATH_BASE_SYNTAX_HIGHLIGHTERS, PLUGIN_PATH_CFG_CORE_DEFS, PLUGIN_PATH_CFG_CORE_CORE, PLUGIN_PATH_CFG_CORE_MAP, PLUGIN_PATH_CFG_CORE_MAP_AHK, PLUGIN_PATH_CFG_CORE_MAP_BAT, PLUGIN_PATH_CFG_CORE_MAP_CPP, PLUGIN_PATH_CFG_CORE_MAP_JS, PLUGIN_PATH_CFG_CORE_MAP_LUA, PLUGIN_PATH_CFG_CORE_MAP_MD, PLUGIN_PATH_CFG_CORE_MAP_PHP, PLUGIN_PATH_CFG_CORE_MAP_PY, PLUGIN_PATH_CFG_CORE_MAP_SUBLIME_SETTINGS, PLUGIN_PATH_CFG_CORE_MAP_TS, PLUGIN_PATH_CFG_CORE_MAP_TXT' )
PrintAllPaths( PLUGIN_PATH_BASE, PLUGIN_PATH_BASE_CFG, PLUGIN_PATH_BASE_SYNTAX_HIGHLIGHTERS, PLUGIN_PATH_CFG_CORE_DEFS, PLUGIN_PATH_CFG_CORE_CORE, PLUGIN_PATH_CFG_CORE_MAP, PLUGIN_PATH_CFG_CORE_MAP_AHK, PLUGIN_PATH_CFG_CORE_MAP_BAT, PLUGIN_PATH_CFG_CORE_MAP_CPP, PLUGIN_PATH_CFG_CORE_MAP_JS, PLUGIN_PATH_CFG_CORE_MAP_LUA, PLUGIN_PATH_CFG_CORE_MAP_MD, PLUGIN_PATH_CFG_CORE_MAP_PHP, PLUGIN_PATH_CFG_CORE_MAP_PY, PLUGIN_PATH_CFG_CORE_MAP_SUBLIME_SETTINGS, PLUGIN_PATH_CFG_CORE_MAP_TS, PLUGIN_PATH_CFG_CORE_MAP_TXT )
print( ' << Finished << PLUGIN_PATH_BASE, PLUGIN_PATH_BASE_CFG, PLUGIN_PATH_BASE_SYNTAX_HIGHLIGHTERS, PLUGIN_PATH_CFG_CORE_DEFS, PLUGIN_PATH_CFG_CORE_CORE, PLUGIN_PATH_CFG_CORE_MAP, PLUGIN_PATH_CFG_CORE_MAP_AHK, PLUGIN_PATH_CFG_CORE_MAP_BAT, PLUGIN_PATH_CFG_CORE_MAP_CPP, PLUGIN_PATH_CFG_CORE_MAP_JS, PLUGIN_PATH_CFG_CORE_MAP_LUA, PLUGIN_PATH_CFG_CORE_MAP_MD, PLUGIN_PATH_CFG_CORE_MAP_PHP, PLUGIN_PATH_CFG_CORE_MAP_PY, PLUGIN_PATH_CFG_CORE_MAP_SUBLIME_SETTINGS, PLUGIN_PATH_CFG_CORE_MAP_TS, PLUGIN_PATH_CFG_CORE_MAP_TXT' )
print( )
print( )
print( ' >> Printing >> PLUGIN_PATH_USER, PLUGIN_PATH_USER_CFG, PLUGIN_PATH_USER_CACHE, PLUGIN_PATH_CFG_CORE_USER_DEFS, PLUGIN_PATH_CFG_CORE_USER_CORE, PLUGIN_PATH_CFG_CORE_USER_MAP, PLUGIN_PATH_CFG_USER_MAP_AHK, PLUGIN_PATH_CFG_USER_MAP_BAT, PLUGIN_PATH_CFG_USER_MAP_CPP, PLUGIN_PATH_CFG_USER_MAP_JS, PLUGIN_PATH_CFG_USER_MAP_LUA, PLUGIN_PATH_CFG_USER_MAP_MD, PLUGIN_PATH_CFG_USER_MAP_PHP, PLUGIN_PATH_CFG_USER_MAP_PY, PLUGIN_PATH_CFG_USER_MAP_SUBLIME_SETTINGS, PLUGIN_PATH_CFG_USER_MAP_TS, PLUGIN_PATH_CFG_USER_MAP_TXT' )
PrintAllPaths( PLUGIN_PATH_USER, PLUGIN_PATH_USER_CFG, PLUGIN_PATH_USER_CACHE, PLUGIN_PATH_CFG_CORE_USER_DEFS, PLUGIN_PATH_CFG_CORE_USER_CORE, PLUGIN_PATH_CFG_CORE_USER_MAP, PLUGIN_PATH_CFG_USER_MAP_AHK, PLUGIN_PATH_CFG_USER_MAP_BAT, PLUGIN_PATH_CFG_USER_MAP_CPP, PLUGIN_PATH_CFG_USER_MAP_JS, PLUGIN_PATH_CFG_USER_MAP_LUA, PLUGIN_PATH_CFG_USER_MAP_MD, PLUGIN_PATH_CFG_USER_MAP_PHP, PLUGIN_PATH_CFG_USER_MAP_PY, PLUGIN_PATH_CFG_USER_MAP_SUBLIME_SETTINGS, PLUGIN_PATH_CFG_USER_MAP_TS, PLUGIN_PATH_CFG_USER_MAP_TXT )
print( ' << Finished << PLUGIN_PATH_USER, PLUGIN_PATH_USER_CFG, PLUGIN_PATH_USER_CACHE, PLUGIN_PATH_CFG_CORE_USER_DEFS, PLUGIN_PATH_CFG_CORE_USER_CORE, PLUGIN_PATH_CFG_CORE_USER_MAP, PLUGIN_PATH_CFG_USER_MAP_AHK, PLUGIN_PATH_CFG_USER_MAP_BAT, PLUGIN_PATH_CFG_USER_MAP_CPP, PLUGIN_PATH_CFG_USER_MAP_JS, PLUGIN_PATH_CFG_USER_MAP_LUA, PLUGIN_PATH_CFG_USER_MAP_MD, PLUGIN_PATH_CFG_USER_MAP_PHP, PLUGIN_PATH_CFG_USER_MAP_PY, PLUGIN_PATH_CFG_USER_MAP_SUBLIME_SETTINGS, PLUGIN_PATH_CFG_USER_MAP_TS, PLUGIN_PATH_CFG_USER_MAP_TXT' )
print( )
print( )
print( ' >> Printing >> PLUGIN_PATH_FILE_CORE_DEFS, PLUGIN_PATH_FILE_CORE_LIB, PLUGIN_PATH_FILE_CORE' )
PrintAllPaths( PLUGIN_PATH_FILE_CORE_DEFS, PLUGIN_PATH_FILE_CORE_LIB, PLUGIN_PATH_FILE_CORE )
print( ' << Finished << PLUGIN_PATH_FILE_CORE_DEFS, PLUGIN_PATH_FILE_CORE_LIB, PLUGIN_PATH_FILE_CORE' )
print( )
print( )
print( '<<<< FINISHED Printing all paths for verification... <<<<' )
print( )
print( )
Prints
>>>> Printing all paths for verification... >>>>
>> Printing >> PLUGIN_PATH_PACKAGES, PLUGIN_PATH_USER
>> C:\Users\Acecool\AppData\Roaming\Sublime Text 3\Packages
>> C:\Users\Acecool\AppData\Roaming\Sublime Text 3\Packages\User
<< Finished << PLUGIN_PATH_PACKAGES, PLUGIN_PATH_USER
>> Printing >> PLUGIN_PATH_BASE, PLUGIN_PATH_BASE_CFG, PLUGIN_PATH_BASE_SYNTAX_HIGHLIGHTERS, PLUGIN_PATH_CFG_CORE_DEFS, PLUGIN_PATH_CFG_CORE_CORE, PLUGIN_PATH_CFG_CORE_MAP, PLUGIN_PATH_CFG_CORE_MAP_AHK, PLUGIN_PATH_CFG_CORE_MAP_BAT, PLUGIN_PATH_CFG_CORE_MAP_CPP, PLUGIN_PATH_CFG_CORE_MAP_JS, PLUGIN_PATH_CFG_CORE_MAP_LUA, PLUGIN_PATH_CFG_CORE_MAP_MD, PLUGIN_PATH_CFG_CORE_MAP_PHP, PLUGIN_PATH_CFG_CORE_MAP_PY, PLUGIN_PATH_CFG_CORE_MAP_SUBLIME_SETTINGS, PLUGIN_PATH_CFG_CORE_MAP_TS, PLUGIN_PATH_CFG_CORE_MAP_TXT
>> C:\Users\Acecool\AppData\Roaming\Sublime Text 3\Packages\Acecool_CMS
>> C:\Users\Acecool\AppData\Roaming\Sublime Text 3\Packages\Acecool_CMS\settings
>> C:\Users\Acecool\AppData\Roaming\Sublime Text 3\Packages\Acecool_CMS\syntax_files
>> C:\Users\Acecool\AppData\Roaming\Sublime Text 3\Packages\Acecool_CMS\settings\Default_PluginDefinitions.sublime-settings
>> C:\Users\Acecool\AppData\Roaming\Sublime Text 3\Packages\Acecool_CMS\settings\Default_PluginSettings.sublime-settings
>> C:\Users\Acecool\AppData\Roaming\Sublime Text 3\Packages\Acecool_CMS\settings\Default_MapSettings.sublime-settings
>> C:\Users\Acecool\AppData\Roaming\Sublime Text 3\Packages\Acecool_CMS\settings\MapSettings_ahk.sublime-settings
>> C:\Users\Acecool\AppData\Roaming\Sublime Text 3\Packages\Acecool_CMS\settings\MapSettings_bat.sublime-settings
>> C:\Users\Acecool\AppData\Roaming\Sublime Text 3\Packages\Acecool_CMS\settings\MapSettings_cpp.sublime-settings
>> C:\Users\Acecool\AppData\Roaming\Sublime Text 3\Packages\Acecool_CMS\settings\MapSettings_js.sublime-settings
>> C:\Users\Acecool\AppData\Roaming\Sublime Text 3\Packages\Acecool_CMS\settings\MapSettings_lua.sublime-settings
>> C:\Users\Acecool\AppData\Roaming\Sublime Text 3\Packages\Acecool_CMS\settings\MapSettings_md.sublime-settings
>> C:\Users\Acecool\AppData\Roaming\Sublime Text 3\Packages\Acecool_CMS\settings\MapSettings_php.sublime-settings
>> C:\Users\Acecool\AppData\Roaming\Sublime Text 3\Packages\Acecool_CMS\settings\MapSettings_py.sublime-settings
>> C:\Users\Acecool\AppData\Roaming\Sublime Text 3\Packages\Acecool_CMS\settings\MapSettings_sublime-settings.sublime-settings
>> C:\Users\Acecool\AppData\Roaming\Sublime Text 3\Packages\Acecool_CMS\settings\MapSettings_ts.sublime-settings
>> C:\Users\Acecool\AppData\Roaming\Sublime Text 3\Packages\Acecool_CMS\settings\MapSettings_txt.sublime-settings
<< Finished << PLUGIN_PATH_BASE, PLUGIN_PATH_BASE_CFG, PLUGIN_PATH_BASE_SYNTAX_HIGHLIGHTERS, PLUGIN_PATH_CFG_CORE_DEFS, PLUGIN_PATH_CFG_CORE_CORE, PLUGIN_PATH_CFG_CORE_MAP, PLUGIN_PATH_CFG_CORE_MAP_AHK, PLUGIN_PATH_CFG_CORE_MAP_BAT, PLUGIN_PATH_CFG_CORE_MAP_CPP, PLUGIN_PATH_CFG_CORE_MAP_JS, PLUGIN_PATH_CFG_CORE_MAP_LUA, PLUGIN_PATH_CFG_CORE_MAP_MD, PLUGIN_PATH_CFG_CORE_MAP_PHP, PLUGIN_PATH_CFG_CORE_MAP_PY, PLUGIN_PATH_CFG_CORE_MAP_SUBLIME_SETTINGS, PLUGIN_PATH_CFG_CORE_MAP_TS, PLUGIN_PATH_CFG_CORE_MAP_TXT
>> Printing >> PLUGIN_PATH_USER, PLUGIN_PATH_USER_CFG, PLUGIN_PATH_USER_CACHE, PLUGIN_PATH_CFG_CORE_USER_DEFS, PLUGIN_PATH_CFG_CORE_USER_CORE, PLUGIN_PATH_CFG_CORE_USER_MAP, PLUGIN_PATH_CFG_USER_MAP_AHK, PLUGIN_PATH_CFG_USER_MAP_BAT, PLUGIN_PATH_CFG_USER_MAP_CPP, PLUGIN_PATH_CFG_USER_MAP_JS, PLUGIN_PATH_CFG_USER_MAP_LUA, PLUGIN_PATH_CFG_USER_MAP_MD, PLUGIN_PATH_CFG_USER_MAP_PHP, PLUGIN_PATH_CFG_USER_MAP_PY, PLUGIN_PATH_CFG_USER_MAP_SUBLIME_SETTINGS, PLUGIN_PATH_CFG_USER_MAP_TS, PLUGIN_PATH_CFG_USER_MAP_TXT
>> C:\Users\Acecool\AppData\Roaming\Sublime Text 3\Packages\User
>> C:\Users\Acecool\AppData\Roaming\Sublime Text 3\Packages\User\settings
>> C:\Users\Acecool\AppData\Roaming\Sublime Text 3\Packages\User\cache
>> C:\Users\Acecool\AppData\Roaming\Sublime Text 3\Packages\User\settings\Default_PluginDefinitions.sublime-settings
>> C:\Users\Acecool\AppData\Roaming\Sublime Text 3\Packages\User\settings\Default_PluginSettings.sublime-settings
>> C:\Users\Acecool\AppData\Roaming\Sublime Text 3\Packages\User\settings\Default_MapSettings.sublime-settings
>> C:\Users\Acecool\AppData\Roaming\Sublime Text 3\Packages\User\settings\MapSettings_ahk.sublime-settings
>> C:\Users\Acecool\AppData\Roaming\Sublime Text 3\Packages\User\settings\MapSettings_bat.sublime-settings
>> C:\Users\Acecool\AppData\Roaming\Sublime Text 3\Packages\User\settings\MapSettings_cpp.sublime-settings
>> C:\Users\Acecool\AppData\Roaming\Sublime Text 3\Packages\User\settings\MapSettings_js.sublime-settings
>> C:\Users\Acecool\AppData\Roaming\Sublime Text 3\Packages\User\settings\MapSettings_lua.sublime-settings
>> C:\Users\Acecool\AppData\Roaming\Sublime Text 3\Packages\User\settings\MapSettings_md.sublime-settings
>> C:\Users\Acecool\AppData\Roaming\Sublime Text 3\Packages\User\settings\MapSettings_php.sublime-settings
>> C:\Users\Acecool\AppData\Roaming\Sublime Text 3\Packages\User\settings\MapSettings_py.sublime-settings
>> C:\Users\Acecool\AppData\Roaming\Sublime Text 3\Packages\User\settings\MapSettings_sublime-settings.sublime-settings
>> C:\Users\Acecool\AppData\Roaming\Sublime Text 3\Packages\User\settings\MapSettings_ts.sublime-settings
>> C:\Users\Acecool\AppData\Roaming\Sublime Text 3\Packages\User\settings\MapSettings_txt.sublime-settings
<< Finished << PLUGIN_PATH_USER, PLUGIN_PATH_USER_CFG, PLUGIN_PATH_USER_CACHE, PLUGIN_PATH_CFG_CORE_USER_DEFS, PLUGIN_PATH_CFG_CORE_USER_CORE, PLUGIN_PATH_CFG_CORE_USER_MAP, PLUGIN_PATH_CFG_USER_MAP_AHK, PLUGIN_PATH_CFG_USER_MAP_BAT, PLUGIN_PATH_CFG_USER_MAP_CPP, PLUGIN_PATH_CFG_USER_MAP_JS, PLUGIN_PATH_CFG_USER_MAP_LUA, PLUGIN_PATH_CFG_USER_MAP_MD, PLUGIN_PATH_CFG_USER_MAP_PHP, PLUGIN_PATH_CFG_USER_MAP_PY, PLUGIN_PATH_CFG_USER_MAP_SUBLIME_SETTINGS, PLUGIN_PATH_CFG_USER_MAP_TS, PLUGIN_PATH_CFG_USER_MAP_TXT
>> Printing >> PLUGIN_PATH_FILE_CORE_DEFS, PLUGIN_PATH_FILE_CORE_LIB, PLUGIN_PATH_FILE_CORE
>> C:\Users\Acecool\AppData\Roaming\Sublime Text 3\Packages\Acecool_CMS\XCodeMapper_Definitions.py
>> C:\Users\Acecool\AppData\Roaming\Sublime Text 3\Packages\Acecool_CMS\AcecoolST3_Library.py
>> C:\Users\Acecool\AppData\Roaming\Sublime Text 3\Packages\Acecool_CMS\XCodeMapper.py
<< Finished << PLUGIN_PATH_FILE_CORE_DEFS, PLUGIN_PATH_FILE_CORE_LIB, PLUGIN_PATH_FILE_CORE
<<<< FINISHED Printing all paths for verification... <<<<
Core file which includes defs using from Acecool_CMS import * - all other vars are not edited…
print( )
print( )
print( '>>>> XXXX Printing all paths for verification... >>>>' )
print( )
print( )
print( ' >> Printing >> PLUGIN_PATH_PACKAGES, PLUGIN_PATH_USER' )
PrintAllPaths( PLUGIN_PATH_PACKAGES, PLUGIN_PATH_USER )
print( ' << Finished << PLUGIN_PATH_PACKAGES, PLUGIN_PATH_USER' )
print( )
print( )
print( ' >> Printing >> PLUGIN_PATH_BASE, PLUGIN_PATH_BASE_CFG, PLUGIN_PATH_BASE_SYNTAX_HIGHLIGHTERS, PLUGIN_PATH_CFG_CORE_DEFS, PLUGIN_PATH_CFG_CORE_CORE, PLUGIN_PATH_CFG_CORE_MAP, PLUGIN_PATH_CFG_CORE_MAP_AHK, PLUGIN_PATH_CFG_CORE_MAP_BAT, PLUGIN_PATH_CFG_CORE_MAP_CPP, PLUGIN_PATH_CFG_CORE_MAP_JS, PLUGIN_PATH_CFG_CORE_MAP_LUA, PLUGIN_PATH_CFG_CORE_MAP_MD, PLUGIN_PATH_CFG_CORE_MAP_PHP, PLUGIN_PATH_CFG_CORE_MAP_PY, PLUGIN_PATH_CFG_CORE_MAP_SUBLIME_SETTINGS, PLUGIN_PATH_CFG_CORE_MAP_TS, PLUGIN_PATH_CFG_CORE_MAP_TXT' )
PrintAllPaths( PLUGIN_PATH_BASE, PLUGIN_PATH_BASE_CFG, PLUGIN_PATH_BASE_SYNTAX_HIGHLIGHTERS, PLUGIN_PATH_CFG_CORE_DEFS, PLUGIN_PATH_CFG_CORE_CORE, PLUGIN_PATH_CFG_CORE_MAP, PLUGIN_PATH_CFG_CORE_MAP_AHK, PLUGIN_PATH_CFG_CORE_MAP_BAT, PLUGIN_PATH_CFG_CORE_MAP_CPP, PLUGIN_PATH_CFG_CORE_MAP_JS, PLUGIN_PATH_CFG_CORE_MAP_LUA, PLUGIN_PATH_CFG_CORE_MAP_MD, PLUGIN_PATH_CFG_CORE_MAP_PHP, PLUGIN_PATH_CFG_CORE_MAP_PY, PLUGIN_PATH_CFG_CORE_MAP_SUBLIME_SETTINGS, PLUGIN_PATH_CFG_CORE_MAP_TS, PLUGIN_PATH_CFG_CORE_MAP_TXT )
print( ' << Finished << PLUGIN_PATH_BASE, PLUGIN_PATH_BASE_CFG, PLUGIN_PATH_BASE_SYNTAX_HIGHLIGHTERS, PLUGIN_PATH_CFG_CORE_DEFS, PLUGIN_PATH_CFG_CORE_CORE, PLUGIN_PATH_CFG_CORE_MAP, PLUGIN_PATH_CFG_CORE_MAP_AHK, PLUGIN_PATH_CFG_CORE_MAP_BAT, PLUGIN_PATH_CFG_CORE_MAP_CPP, PLUGIN_PATH_CFG_CORE_MAP_JS, PLUGIN_PATH_CFG_CORE_MAP_LUA, PLUGIN_PATH_CFG_CORE_MAP_MD, PLUGIN_PATH_CFG_CORE_MAP_PHP, PLUGIN_PATH_CFG_CORE_MAP_PY, PLUGIN_PATH_CFG_CORE_MAP_SUBLIME_SETTINGS, PLUGIN_PATH_CFG_CORE_MAP_TS, PLUGIN_PATH_CFG_CORE_MAP_TXT' )
print( )
print( )
print( ' >> Printing >> PLUGIN_PATH_USER, PLUGIN_PATH_USER_CFG, PLUGIN_PATH_USER_CACHE, PLUGIN_PATH_CFG_CORE_USER_DEFS, PLUGIN_PATH_CFG_CORE_USER_CORE, PLUGIN_PATH_CFG_CORE_USER_MAP, PLUGIN_PATH_CFG_USER_MAP_AHK, PLUGIN_PATH_CFG_USER_MAP_BAT, PLUGIN_PATH_CFG_USER_MAP_CPP, PLUGIN_PATH_CFG_USER_MAP_JS, PLUGIN_PATH_CFG_USER_MAP_LUA, PLUGIN_PATH_CFG_USER_MAP_MD, PLUGIN_PATH_CFG_USER_MAP_PHP, PLUGIN_PATH_CFG_USER_MAP_PY, PLUGIN_PATH_CFG_USER_MAP_SUBLIME_SETTINGS, PLUGIN_PATH_CFG_USER_MAP_TS, PLUGIN_PATH_CFG_USER_MAP_TXT' )
PrintAllPaths( PLUGIN_PATH_USER, PLUGIN_PATH_USER_CFG, PLUGIN_PATH_USER_CACHE, PLUGIN_PATH_CFG_CORE_USER_DEFS, PLUGIN_PATH_CFG_CORE_USER_CORE, PLUGIN_PATH_CFG_CORE_USER_MAP, PLUGIN_PATH_CFG_USER_MAP_AHK, PLUGIN_PATH_CFG_USER_MAP_BAT, PLUGIN_PATH_CFG_USER_MAP_CPP, PLUGIN_PATH_CFG_USER_MAP_JS, PLUGIN_PATH_CFG_USER_MAP_LUA, PLUGIN_PATH_CFG_USER_MAP_MD, PLUGIN_PATH_CFG_USER_MAP_PHP, PLUGIN_PATH_CFG_USER_MAP_PY, PLUGIN_PATH_CFG_USER_MAP_SUBLIME_SETTINGS, PLUGIN_PATH_CFG_USER_MAP_TS, PLUGIN_PATH_CFG_USER_MAP_TXT )
print( ' << Finished << PLUGIN_PATH_USER, PLUGIN_PATH_USER_CFG, PLUGIN_PATH_USER_CACHE, PLUGIN_PATH_CFG_CORE_USER_DEFS, PLUGIN_PATH_CFG_CORE_USER_CORE, PLUGIN_PATH_CFG_CORE_USER_MAP, PLUGIN_PATH_CFG_USER_MAP_AHK, PLUGIN_PATH_CFG_USER_MAP_BAT, PLUGIN_PATH_CFG_USER_MAP_CPP, PLUGIN_PATH_CFG_USER_MAP_JS, PLUGIN_PATH_CFG_USER_MAP_LUA, PLUGIN_PATH_CFG_USER_MAP_MD, PLUGIN_PATH_CFG_USER_MAP_PHP, PLUGIN_PATH_CFG_USER_MAP_PY, PLUGIN_PATH_CFG_USER_MAP_SUBLIME_SETTINGS, PLUGIN_PATH_CFG_USER_MAP_TS, PLUGIN_PATH_CFG_USER_MAP_TXT' )
print( )
print( )
print( ' >> Printing >> PLUGIN_PATH_FILE_CORE_DEFS, PLUGIN_PATH_FILE_CORE_LIB, PLUGIN_PATH_FILE_CORE' )
PrintAllPaths( PLUGIN_PATH_FILE_CORE_DEFS, PLUGIN_PATH_FILE_CORE_LIB, PLUGIN_PATH_FILE_CORE )
print( ' << Finished << PLUGIN_PATH_FILE_CORE_DEFS, PLUGIN_PATH_FILE_CORE_LIB, PLUGIN_PATH_FILE_CORE' )
print( )
print( )
print( '<<<< XXXX FINISHED Printing all paths for verification... <<<<' )
print( )
print( )
prints
>>>> XXXX Printing all paths for verification... >>>>
>> Printing >> PLUGIN_PATH_PACKAGES, PLUGIN_PATH_USER
>> C:\Users\Acecool\AppData\Roaming\Sublime Text 3\Packages
>> User\Acecool_CMS
<< Finished << PLUGIN_PATH_PACKAGES, PLUGIN_PATH_USER
>> Printing >> PLUGIN_PATH_BASE, PLUGIN_PATH_BASE_CFG, PLUGIN_PATH_BASE_SYNTAX_HIGHLIGHTERS, PLUGIN_PATH_CFG_CORE_DEFS, PLUGIN_PATH_CFG_CORE_CORE, PLUGIN_PATH_CFG_CORE_MAP, PLUGIN_PATH_CFG_CORE_MAP_AHK, PLUGIN_PATH_CFG_CORE_MAP_BAT, PLUGIN_PATH_CFG_CORE_MAP_CPP, PLUGIN_PATH_CFG_CORE_MAP_JS, PLUGIN_PATH_CFG_CORE_MAP_LUA, PLUGIN_PATH_CFG_CORE_MAP_MD, PLUGIN_PATH_CFG_CORE_MAP_PHP, PLUGIN_PATH_CFG_CORE_MAP_PY, PLUGIN_PATH_CFG_CORE_MAP_SUBLIME_SETTINGS, PLUGIN_PATH_CFG_CORE_MAP_TS, PLUGIN_PATH_CFG_CORE_MAP_TXT
>> Acecool_CMS
>> Acecool_CMS\settings
>> Acecool_CMS\syntax_files
>> Acecool_CMS\settings\Default_PluginDefinitions.sublime-settings
>> Acecool_CMS\settings\Default_PluginSettings.sublime-settings
>> Acecool_CMS\settings\Default_MapSettings.sublime-settings
>> Acecool_CMS\settings\MapSettings_ahk.sublime-settings
>> Acecool_CMS\settings\MapSettings_bat.sublime-settings
>> Acecool_CMS\settings\MapSettings_cpp.sublime-settings
>> Acecool_CMS\settings\MapSettings_js.sublime-settings
>> Acecool_CMS\settings\MapSettings_lua.sublime-settings
>> Acecool_CMS\settings\MapSettings_md.sublime-settings
>> Acecool_CMS\settings\MapSettings_php.sublime-settings
>> Acecool_CMS\settings\MapSettings_py.sublime-settings
>> Acecool_CMS\settings\MapSettings_sublime-settings.sublime-settings
>> Acecool_CMS\settings\MapSettings_ts.sublime-settings
>> Acecool_CMS\settings\MapSettings_txt.sublime-settings
<< Finished << PLUGIN_PATH_BASE, PLUGIN_PATH_BASE_CFG, PLUGIN_PATH_BASE_SYNTAX_HIGHLIGHTERS, PLUGIN_PATH_CFG_CORE_DEFS, PLUGIN_PATH_CFG_CORE_CORE, PLUGIN_PATH_CFG_CORE_MAP, PLUGIN_PATH_CFG_CORE_MAP_AHK, PLUGIN_PATH_CFG_CORE_MAP_BAT, PLUGIN_PATH_CFG_CORE_MAP_CPP, PLUGIN_PATH_CFG_CORE_MAP_JS, PLUGIN_PATH_CFG_CORE_MAP_LUA, PLUGIN_PATH_CFG_CORE_MAP_MD, PLUGIN_PATH_CFG_CORE_MAP_PHP, PLUGIN_PATH_CFG_CORE_MAP_PY, PLUGIN_PATH_CFG_CORE_MAP_SUBLIME_SETTINGS, PLUGIN_PATH_CFG_CORE_MAP_TS, PLUGIN_PATH_CFG_CORE_MAP_TXT
>> Printing >> PLUGIN_PATH_USER, PLUGIN_PATH_USER_CFG, PLUGIN_PATH_USER_CACHE, PLUGIN_PATH_CFG_CORE_USER_DEFS, PLUGIN_PATH_CFG_CORE_USER_CORE, PLUGIN_PATH_CFG_CORE_USER_MAP, PLUGIN_PATH_CFG_USER_MAP_AHK, PLUGIN_PATH_CFG_USER_MAP_BAT, PLUGIN_PATH_CFG_USER_MAP_CPP, PLUGIN_PATH_CFG_USER_MAP_JS, PLUGIN_PATH_CFG_USER_MAP_LUA, PLUGIN_PATH_CFG_USER_MAP_MD, PLUGIN_PATH_CFG_USER_MAP_PHP, PLUGIN_PATH_CFG_USER_MAP_PY, PLUGIN_PATH_CFG_USER_MAP_SUBLIME_SETTINGS, PLUGIN_PATH_CFG_USER_MAP_TS, PLUGIN_PATH_CFG_USER_MAP_TXT
>> User\Acecool_CMS
>> User\Acecool_CMS\settings
>> User\Acecool_CMS\cache
>> User\Acecool_CMS\settings\Default_PluginDefinitions.sublime-settings
>> User\Acecool_CMS\settings\Default_PluginSettings.sublime-settings
>> User\Acecool_CMS\settings\Default_MapSettings.sublime-settings
>> User\Acecool_CMS\settings\MapSettings_ahk.sublime-settings
>> User\Acecool_CMS\settings\MapSettings_bat.sublime-settings
>> User\Acecool_CMS\settings\MapSettings_cpp.sublime-settings
>> User\Acecool_CMS\settings\MapSettings_js.sublime-settings
>> User\Acecool_CMS\settings\MapSettings_lua.sublime-settings
>> User\Acecool_CMS\settings\MapSettings_md.sublime-settings
>> User\Acecool_CMS\settings\MapSettings_php.sublime-settings
>> User\Acecool_CMS\settings\MapSettings_py.sublime-settings
>> User\Acecool_CMS\settings\MapSettings_sublime-settings.sublime-settings
>> User\Acecool_CMS\settings\MapSettings_ts.sublime-settings
>> User\Acecool_CMS\settings\MapSettings_txt.sublime-settings
<< Finished << PLUGIN_PATH_USER, PLUGIN_PATH_USER_CFG, PLUGIN_PATH_USER_CACHE, PLUGIN_PATH_CFG_CORE_USER_DEFS, PLUGIN_PATH_CFG_CORE_USER_CORE, PLUGIN_PATH_CFG_CORE_USER_MAP, PLUGIN_PATH_CFG_USER_MAP_AHK, PLUGIN_PATH_CFG_USER_MAP_BAT, PLUGIN_PATH_CFG_USER_MAP_CPP, PLUGIN_PATH_CFG_USER_MAP_JS, PLUGIN_PATH_CFG_USER_MAP_LUA, PLUGIN_PATH_CFG_USER_MAP_MD, PLUGIN_PATH_CFG_USER_MAP_PHP, PLUGIN_PATH_CFG_USER_MAP_PY, PLUGIN_PATH_CFG_USER_MAP_SUBLIME_SETTINGS, PLUGIN_PATH_CFG_USER_MAP_TS, PLUGIN_PATH_CFG_USER_MAP_TXT
>> Printing >> PLUGIN_PATH_FILE_CORE_DEFS, PLUGIN_PATH_FILE_CORE_LIB, PLUGIN_PATH_FILE_CORE
>> Acecool_CMS\XCodeMapper_Definitions.py
>> Acecool_CMS\AcecoolST3_Library.py
>> Acecool_CMS\XCodeMapper.py
<< Finished << PLUGIN_PATH_FILE_CORE_DEFS, PLUGIN_PATH_FILE_CORE_LIB, PLUGIN_PATH_FILE_CORE
<<<< XXXX FINISHED Printing all paths for verification... <<<<
The XXXX was to differentiate…
I’ve tried different variable names with the same result… It’s strange because I want to use my defs file to set up these core locations so they can be changed from one location ( aside from the imports - but in the code for everything else ) and everything would work…
Sure - I could simply use sublime.package_path( ) in the os.path.join( xxx, … ) but the purpose of this is to avoid running that command - ie sublime text loads the file and keeps it in memory except when refresh is enabled which is a separate var for my addon…
It’s to make things easier - so I also don’t need to call os.path.join or even include it in other files…
I’m not sure whether to report this as a bug or… so I’m posting here first.
Edit: The User\User\ was due to altering the first PLUGIN_PATH_USER which is next to PLUGIN_PATH_PACKAGES from SUBLIME_ prefix to PLUGIN_… Because a second one existed which used it… Even with that issue reolved, the issue remains.