Skip to content

Commit d186ffa

Browse files
author
Brenton Bostick
committed
updates
1 parent dfc7bcc commit d186ffa

File tree

7 files changed

+35
-15
lines changed

7 files changed

+35
-15
lines changed

CHANGELOG.md

+13-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,17 @@
11

2-
## 1.8 - XX Sep, 2022
2+
## 1.8 - 10 Oct, 2022
3+
4+
Format `1 / 0` as `1/0`.
5+
6+
Special casing for `Test[input, expected, TestID -> xxx]`.
7+
8+
Prevent palette from becoming blank when removing the last preset.
9+
10+
### Fixes
11+
12+
Fix 427231: CodeFormat on empty quotes throws many errors.
13+
14+
Fix bug where "Save as Present" button is outside the draw area of the palette.
315

416

517
## 1.7 - 4 July, 2022

CodeFormatter/Generate/AcceptableOperators.wl

+1-1
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ EndPackage[]
9292
"};
9393

9494
Print["exporting AcceptableOperators.wl"];
95-
res = Export[FileNameJoin[{generatedWLDir, "Kernel", "AcceptableOperators.wl"}], Column[acceptableOperatorsWL], "String"];
95+
res = Export[FileNameJoin[{buildDir, "paclet", "CodeFormatter", "Kernel", "AcceptableOperators.wl"}], Column[acceptableOperatorsWL], "String"];
9696

9797
Print[res];
9898

CodeFormatter/Generate/Palette.wl

+1-1
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ Module[{nb, res},
221221
];
222222

223223
Print["saving CodeFormatter.nb"];
224-
res = NotebookSave[nb, FileNameJoin[{generatedWLDir, "FrontEnd", "Palettes", "CodeFormatter.nb"}]];
224+
res = NotebookSave[nb, FileNameJoin[{buildDir, "paclet", "CodeFormatter", "FrontEnd", "Palettes", "CodeFormatter.nb"}]];
225225

226226
Print[res];
227227

CodeTools/Generate/GenerateSources.wl

-4
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@ srcDir
1010

1111
script
1212

13-
generatedWLDir
14-
1513
pacletFlagPosition
1614

1715
paclet
@@ -48,8 +46,6 @@ scriptPosition = FirstPosition[$CommandLine, "-script"]
4846

4947
script := script = $CommandLine[[scriptPosition[[1]] + 1]]
5048

51-
generatedWLDir = FileNameJoin[{buildDir, "generated", "wl"}]
52-
5349
pacletFlagPosition = FirstPosition[$CommandLine, "-paclet"]
5450

5551
paclet := paclet = $CommandLine[[pacletFlagPosition[[1]] + 1]]

cmake/ReplacePacletInfo.cmake

-6
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,6 @@ if(LOCAL_BUILD)
1717

1818
string(REGEX REPLACE "Version -> \"[0-9\\.]+\"," "Version -> \"${LOCAL_BUILD_VERSION}\"(* local build *)," filedata ${filedata})
1919

20-
#
21-
# Handle "Documentation" in list of extensions
22-
# Fails if "Documentation" extension is first in list of extensions
23-
#
24-
string(REGEX REPLACE ",\n([ \t]*)\\{\"Documentation\"[a-zA-Z0-9 ->\"/]*\\}(,|)" "\\2\n\\1(* no \"Documentation\" in local build *)" filedata ${filedata})
25-
2620
endif()
2721

2822
file(WRITE ${REPLACED_PACLETINFO} "${filedata}")

cmake/WolframKernel.cmake

+10-2
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ else()
99
endif()
1010
endif()
1111

12-
if(CMAKE_HOST_WIN32 OR CYGWIN)
12+
if(MSVC)
1313
set(WOLFRAMKERNEL_DEFAULT ${MATHEMATICA_INSTALL_DIR}/wolfram.exe)
1414
set(WOLFRAMLIBRARY_INCLUDE_DIR_DEFAULT ${MATHEMATICA_INSTALL_DIR}/SystemFiles/IncludeFiles/C)
1515
#
@@ -20,9 +20,17 @@ if(CMAKE_HOST_WIN32 OR CYGWIN)
2020
# starting in 11.2, the single path for MathLink includes and MathLink libs is:
2121
# SystemFiles/Links/MathLink/DeveloperKit/Windows-x86-64/CompilerAdditions
2222
#
23+
if(EXISTS ${MATHEMATICA_INSTALL_DIR}/SystemFiles/Links/MathLink/DeveloperKit/Windows-x86-64/CompilerAdditions/mldev64/include)
24+
set(MATHLINK_INCLUDE_DIR_DEFAULT ${MATHEMATICA_INSTALL_DIR}/SystemFiles/Links/MathLink/DeveloperKit/Windows-x86-64/CompilerAdditions/mldev64/include)
25+
else()
2326
set(MATHLINK_INCLUDE_DIR_DEFAULT ${MATHEMATICA_INSTALL_DIR}/SystemFiles/Links/MathLink/DeveloperKit/Windows-x86-64/CompilerAdditions)
27+
endif()
28+
if(EXISTS ${MATHEMATICA_INSTALL_DIR}/SystemFiles/Links/MathLink/DeveloperKit/Windows-x86-64/CompilerAdditions/mldev64/lib)
29+
set(MATHLINK_LIB_DIR_DEFAULT ${MATHEMATICA_INSTALL_DIR}/SystemFiles/Links/MathLink/DeveloperKit/Windows-x86-64/CompilerAdditions/mldev64/lib)
30+
else()
2431
set(MATHLINK_LIB_DIR_DEFAULT ${MATHEMATICA_INSTALL_DIR}/SystemFiles/Links/MathLink/DeveloperKit/Windows-x86-64/CompilerAdditions)
25-
elseif (CMAKE_HOST_APPLE)
32+
endif()
33+
elseif (APPLE)
2634
set(WOLFRAMKERNEL_DEFAULT ${MATHEMATICA_INSTALL_DIR}/MacOS/WolframKernel)
2735
set(WOLFRAMLIBRARY_INCLUDE_DIR_DEFAULT ${MATHEMATICA_INSTALL_DIR}/SystemFiles/IncludeFiles/C)
2836
set(MATHLINK_INCLUDE_DIR_DEFAULT ${MATHEMATICA_INSTALL_DIR}/SystemFiles/Links/MathLink/DeveloperKit/MacOSX-x86-64/CompilerAdditions)

cmake/WolframScript.cmake

+10
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,16 @@ if(NOT DEFINED RETRY_ON_FAILURE)
77
set(RETRY_ON_FAILURE OFF)
88
endif()
99

10+
if(NOT EXISTS ${SCRIPT})
11+
message(FATAL_ERROR "SCRIPT does not exist. SCRIPT: ${SCRIPT}")
12+
endif()
13+
14+
file(READ ${SCRIPT} script)
15+
16+
if(script STREQUAL "")
17+
message(FATAL_ERROR "SCRIPT is empty. SCRIPT: ${SCRIPT}")
18+
endif()
19+
1020
if(RETRY_ON_FAILURE)
1121

1222
#

0 commit comments

Comments
 (0)