Skip to content

Commit

Permalink
Quick fix release to fix debug log
Browse files Browse the repository at this point in the history
  • Loading branch information
eitherys committed Oct 2, 2020
1 parent afd8e55 commit 2b67d55
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 3 deletions.
9 changes: 7 additions & 2 deletions ksp_compiler3/ksp_compiler.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@

import re
import os
import copy
import collections
from collections import OrderedDict
import ksp_ast
Expand Down Expand Up @@ -1627,7 +1628,11 @@ def do_imports_and_convert_to_line_objects(self):
# TO PRESERVE LINE PROPERTIES, SELF.LINES CAN NOT BE REMERGED INTO SOURCE

def extensions_with_macros(self):
check_source = merge_lines(self.lines) # only for checking purposes, not for reproducing lines
check_lines = copy.copy(self.lines)
for line in check_lines:
line.replace_placeholders()

check_source = merge_lines(check_lines) # only for checking purposes, not for reproducing lines

### Extensions ###

Expand Down Expand Up @@ -1872,7 +1877,7 @@ def compile(self, callback=None):
('expanding macros', lambda: self.expand_macros(), True, 1),
# NOTE(Sam): Call the post-macro section of the preprocessor
('post-macro processes', lambda: post_macro_functions(self.lines), True, 1),
('replace string placeholders', lambda: self.replace_string_placeholders(), True, 1),
('replace string placeholders', lambda: self.replace_string_placeholders(), True, 1),
('search for nckp import', lambda: self.search_for_nckp(), True, 1),
# NOTE(Sam): Convert the lines to a block in a separate function
('convert lines to code block', lambda: self.convert_lines_to_code(), True, 1),
Expand Down
3 changes: 2 additions & 1 deletion messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,5 +39,6 @@
"1.9.9": "messages/1.9.9.txt",
"1.9.10": "messages/1.9.10.txt",
"1.9.11": "messages/1.9.11.txt",
"1.10.0": "messages/1.10.0.txt"
"1.10.0": "messages/1.10.0.txt",
"1.10.1": "messages/1.10.1.txt"
}
18 changes: 18 additions & 0 deletions messages/1.10.1.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
Version 1.10.1
---------------------------------------------------

This is a quick release fix for 1.10.0 breaking the use of the debug log after shifting string compilation to a stage too late where the logger needed to read the filepath.

---------------------------------------------------

If you would like to roll back a version of SublimeKSP for time critical work prevented by a new bug:

First, remove SublimeKSP from Sublime Package Control:
1. Use the shortcut `Ctrl + Shift + P` on Windows/Linux or `Cmd + Shift + P` on Mac.
2. Type "Remove Package" and select it, then select the "KSP (Kontakt Script Processor)" entry.

Next, download the version you'd like here: https://github.com/nojanath/SublimeKSP/releases
With your SublimeKSP package downloaded, you can install it as a user package in Sublime following these instructions:
1. Open the Preferences menu in Sublime and click Browse Packages. A folder will open up.
2. Extract the `SublimeKSP` folder out of the zip file and place it into this folder.
3. Restart Sublime completely. Make sure it is not running in your OS task manager (or, restart the computer to be thorough!)

0 comments on commit 2b67d55

Please sign in to comment.