Skip to content

Commit 733312b

Browse files
authored
Merge pull request #270 from rainers/master
changes for Visual D 1.4.0-rc1
2 parents f4ff49a + 31769e7 commit 733312b

File tree

13 files changed

+109
-33
lines changed

13 files changed

+109
-33
lines changed

CHANGES

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1357,3 +1357,13 @@ Version history
13571357
* "add imports from dependent projects" is now evaluated recursively and passed to semantic analysis
13581358
* added support for compiler option -preview=shortenedMethods
13591359
* fixed issue #264: VisualD doesn't run compiled executable, when I select "Compile and Run" option
1360+
1361+
2024-02-25 version 1.4.0-rc1
1362+
* dmdserver: updated to frontend of DMD 2.107.0
1363+
* full installer now bundled with DMD 2.107.0 and LDC 1.36.0
1364+
* mago: fix crash due to changed return values from IDiaSession in VS2022, probably fixes
1365+
issue #261
1366+
* fixed issue #269: avoid BOM in response file if system codepage is UTF-8
1367+
* project template cache now removed if Visual D does not find itself in it. Workaround for
1368+
issue #256
1369+
* fixed some version inaccuracies in installation files

VERSION

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#define VERSION_MAJOR 1
22
#define VERSION_MINOR 4
33
#define VERSION_REVISION 0
4-
#define VERSION_BETA -beta
5-
#define VERSION_BUILD 2
4+
#define VERSION_BETA -rc
5+
#define VERSION_BUILD 1

c2d/pp.d

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -375,7 +375,7 @@ class ConditionalCode
375375

376376
void convertMultipleElseIf()
377377
{
378-
assert("not implemented");
378+
assert(!"not implemented");
379379
}
380380

381381
void convertMultipleOpenElseIf()

msbuild/dbuild/CompileD.cs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,12 @@ protected override Encoding ResponseFileEncoding
327327
if (Compiler == "LDC")
328328
return new UTF8Encoding(false);
329329
else
330-
return System.Text.Encoding.GetEncoding(GetACP());
330+
{
331+
int cp = GetACP();
332+
if (cp == 65001)
333+
return new UTF8Encoding(false); // no BOM
334+
return System.Text.Encoding.GetEncoding(cp);
335+
}
331336
}
332337
}
333338

nsis/Extensions_vs15/extension.vsixmanifest

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@
88
<Description xml:space="preserve">Extension to provide support for the D programming language</Description>
99
</Metadata>
1010
<Installation InstalledByMsi="true" AllUsers="true" SystemComponent="false">
11-
<InstallationTarget Version="[12.0,17.0)" Id="Microsoft.VisualStudio.VSWinExpress" />
12-
<InstallationTarget Version="[12.0,17.0)" Id="Microsoft.VisualStudio.Premium" />
13-
<InstallationTarget Version="[12.0,17.0)" Id="Microsoft.VisualStudio.Ultimate" />
14-
<InstallationTarget Version="[12.0,17.0)" Id="Microsoft.VisualStudio.Pro" />
15-
<InstallationTarget Version="[12.0,17.0)" Id="Microsoft.VisualStudio.IntegratedShell" />
16-
<InstallationTarget Version="[12.0,17.0)" Id="Microsoft.VisualStudio.Enterprise" />
17-
<InstallationTarget Version="[12.0,17.0)" Id="Microsoft.VisualStudio.Community" />
11+
<InstallationTarget Version="[12.0,18.0)" Id="Microsoft.VisualStudio.VSWinExpress" />
12+
<InstallationTarget Version="[12.0,18.0)" Id="Microsoft.VisualStudio.Premium" />
13+
<InstallationTarget Version="[12.0,18.0)" Id="Microsoft.VisualStudio.Ultimate" />
14+
<InstallationTarget Version="[12.0,18.0)" Id="Microsoft.VisualStudio.Pro" />
15+
<InstallationTarget Version="[12.0,18.0)" Id="Microsoft.VisualStudio.IntegratedShell" />
16+
<InstallationTarget Version="[12.0,18.0)" Id="Microsoft.VisualStudio.Enterprise" />
17+
<InstallationTarget Version="[12.0,18.0)" Id="Microsoft.VisualStudio.Community" />
1818
</Installation>
1919
<Assets>
2020
<Asset Type="Microsoft.VisualStudio.VsPackage" Path="visuald.pkgdef" />

nsis/visuald.nsi

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,12 @@
2929

3030
; define DMD source path to include dmd installation
3131
; !define DMD
32-
!define DMD_VERSION "2.106.0"
32+
!define DMD_VERSION "2.107.0"
3333
!define DMD_SRC c:\d\dmd-${DMD_VERSION}
3434

3535
; define LDC to include ldc installation
3636
; !define LDC
37-
!define LDC_VERSION "1.35.0"
37+
!define LDC_VERSION "1.36.0"
3838
!define LDC_SRC c:\d\ldc2-${LDC_VERSION}-windows-multilib
3939

4040
; define VS2019 to include VS2019 support
@@ -80,7 +80,12 @@
8080
!define VERSION "${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_REVISION}${VERSION_BETA}${VERSION_BUILD}"
8181
!endif
8282

83-
!echo "VERSION = ${VERSION}"
83+
; !define MUI_ICON "Extensions\vdlogo.ico"
84+
!define MUI_HEADERIMAGE
85+
!define MUI_HEADERIMAGE_BITMAP "Extensions\vdlogo.bmp"
86+
!define MUI_HEADERIMAGE_RIGHT
87+
!define MUI_HEADERIMAGE_BITMAP_STRETCH AspectFitHeight
88+
8489
!define AUTHOR "Rainer Schuetze"
8590
!define APPNAME "VisualD"
8691
!define LONG_APPNAME "Visual D"
@@ -690,7 +695,7 @@ ${MementoSection} "Install in VS 2022" SecVS2022
690695

691696
GetFullPathName $0 $INSTDIR
692697
!insertmacro ReplaceInFile "$1${EXTENSION_DIR}\extension.vsixmanifest" "VDINSTALLPATH" "$0" NoBackup
693-
!insertmacro ReplaceInFile "$1${EXTENSION_DIR}\extension.vsixmanifest" "VSVERSION" "16" NoBackup
698+
!insertmacro ReplaceInFile "$1${EXTENSION_DIR}\extension.vsixmanifest" "VSVERSION" "17" NoBackup
694699
!insertmacro ReplaceInFile "$1${EXTENSION_DIR}\extension.vsixmanifest" "VDVERSION" "${VERSION_MAJOR}.${VERSION_MINOR}" NoBackup
695700

696701
!ifdef MAGO

sdk/vsi.visualdproj

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2223,6 +2223,16 @@
22232223
<File path="vsi\msdbg168.d" />
22242224
<File path="vsi\msdbg169.d" />
22252225
<File path="vsi\msdbg16a.d" />
2226+
<File path="vsi\msdbg170.d" />
2227+
<File path="vsi\msdbg171.d" />
2228+
<File path="vsi\msdbg172.d" />
2229+
<File path="vsi\msdbg173.d" />
2230+
<File path="vsi\msdbg174.d" />
2231+
<File path="vsi\msdbg175.d" />
2232+
<File path="vsi\msdbg176.d" />
2233+
<File path="vsi\msdbg177.d" />
2234+
<File path="vsi\msdbg178.d" />
2235+
<File path="vsi\msdbg179.d" />
22262236
<File path="vsi\msdbg90.d" />
22272237
<File path="vsi\objext.d" />
22282238
<File path="vsi\ocdesign.d" />
@@ -2294,6 +2304,14 @@
22942304
<File path="vsi\vsshell166.d" />
22952305
<File path="vsi\vsshell167.d" />
22962306
<File path="vsi\vsshell169.d" />
2307+
<File path="vsi\vsshell171.d" />
2308+
<File path="vsi\vsshell172.d" />
2309+
<File path="vsi\vsshell174.d" />
2310+
<File path="vsi\vsshell175.d" />
2311+
<File path="vsi\vsshell176.d" />
2312+
<File path="vsi\vsshell177.d" />
2313+
<File path="vsi\vsshell178.d" />
2314+
<File path="vsi\vsshell179.d" />
22972315
<File path="vsi\vsshell2.d" />
22982316
<File path="vsi\vsshell80.d" />
22992317
<File path="vsi\vsshell90.d" />

vdc/dmdserver/dmd

Submodule dmd updated 533 files

vdc/dmdserver/dmdserver.visualdproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1771,7 +1771,7 @@
17711771
<File path="dmd\compiler\src\dmd\common\file.d" />
17721772
<File path="dmd\compiler\src\dmd\common\int128.d" />
17731773
<File path="dmd\compiler\src\dmd\common\outbuffer.d" />
1774-
<File path="dmd\compiler\src\dmd\common\string.d" />
1774+
<File path="dmd\compiler\src\dmd\common\smallbuffer.d" />
17751775
</Folder>
17761776
<Folder name="root">
17771777
<File path="dmd\compiler\src\dmd\root\aav.d" />

vdc/dmdserver/semanalysis.d

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -422,7 +422,7 @@ void do_unittests()
422422
import dmd.hdrgen;
423423
auto buf = OutBuffer();
424424
buf.doindent = 1;
425-
moduleToBuffer(buf, mod);
425+
moduleToBuffer(buf, false, mod);
426426

427427
OutputDebugStringA(buf.peekChars);
428428
}

0 commit comments

Comments
 (0)