Skip to content

Integrate visualfsharp master #609

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 133 commits into from
Jul 17, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
133 commits
Select commit Hold shift + click to select a range
6e0923a
FsharpResult type with a few tests
wallymathieu Feb 12, 2016
af39ca8
Using instance method string.Contains instead of Seq.contains
wallymathieu Feb 12, 2016
1a7f21d
Removed redundant declaration
wallymathieu Feb 14, 2016
e862e75
Revert of vs changes to file
wallymathieu Feb 14, 2016
12734f7
Fix for comment about what the file tests
wallymathieu Feb 17, 2016
c8bb32c
Separated SDK localized/core packages
Jun 20, 2016
1be26ef
Moved locales properties to msbuild
Jun 20, 2016
be0e744
Removed Compiler_OtherResources
Jun 20, 2016
7548234
Localized VS Insertion
Jun 21, 2016
e4cc128
Fix vsix signing
Jun 21, 2016
3d324d1
Added comments and change 'Success' to 'Ok' in Result type
wallymathieu Jun 26, 2016
008465a
Compilation error and surface area tests
wallymathieu Jun 26, 2016
9e0d0da
null change
KevinRansom Jun 28, 2016
6105902
Merge remote-tracking branch 'Microsoft/master' into fsharp_core_result
wallymathieu Jun 28, 2016
4abfbdb
Compilation error
wallymathieu Jun 28, 2016
83748d1
Using MSBuild 15.0 binaries from nuget
Jun 29, 2016
2cd7f7c
Fix indent in TypeChecker.fs
forki Jun 28, 2016
fd22b7e
Merge pull request #1292 from forki/cleanup-tc
dsyme Jun 29, 2016
ba337ae
remove semicolns
dsyme Jun 29, 2016
714ad7f
Merge pull request #1299 from dsyme/semis-1
dsyme Jun 29, 2016
ffe7246
Fixed template imports in VSIX
Jun 23, 2016
bac253f
Add note for Visual Studio SDK as prerequisite for building Visual F#…
Jun 30, 2016
e368e31
Merge https://github.com/Microsoft/visualfsharp
KevinRansom Jun 30, 2016
5400076
Converted back to v2 vsix
Jun 30, 2016
8edd521
Merge branch 'master' of https://github.com/Microsoft/visualfsharp in…
Jun 30, 2016
673fe42
Fix build errors
Jun 30, 2016
9d037c0
Fix swix dependencies
Jun 30, 2016
e47d536
fixes typo in #1129
Jul 1, 2016
0247247
Merge pull request #1305 from toburger/fix-byte-literal
dsyme Jul 1, 2016
de6c709
Add compipler perf scripts
dsyme Jul 1, 2016
9931f8d
Merge pull request #1307 from dsyme/compiler-perf-scripts
dsyme Jul 1, 2016
158b3df
updates to perf scripts
dsyme Jul 1, 2016
9c588af
Merge pull request #1309 from dsyme/perf-updates
dsyme Jul 1, 2016
1ce06f8
perf script updates
dsyme Jul 1, 2016
93b54c8
Make language packs optional
Jul 1, 2016
9c29786
Fixed selectable package dependencies
Jul 1, 2016
af5e7b0
Remove unused function.
gusty Jul 2, 2016
6639a3d
Merge branch 'master' of https://github.com/Microsoft/visualfsharp
KevinRansom Jul 2, 2016
a4c3d40
Merge pull request #1312 from gmpl/patch-1
dsyme Jul 3, 2016
78a8f52
Fix comment in build.bat and make build ci work
KevinRansom Jul 4, 2016
ab1c252
cosmetic cleanup
dsyme Jul 4, 2016
18d4acf
updates to perf results
dsyme Jul 4, 2016
3ca9f2d
resolve merge conflict
dsyme Jul 4, 2016
308d7ee
resolve merge conflict
dsyme Jul 4, 2016
8cc1081
fix build
dsyme Jul 4, 2016
69ecc0f
fix build
dsyme Jul 4, 2016
f9c5bd5
Merge pull request #1314 from KevinRansom/master
KevinRansom Jul 4, 2016
d1837c8
Merge pull request #1302 from eriawan/Add_VSSDK_notes_DEVGUIDE
KevinRansom Jul 4, 2016
ffc504e
Merge branch 'master' of http://github.com/Microsoft/visualfsharp int…
dsyme Jul 4, 2016
19d592d
fix build
dsyme Jul 4, 2016
c625a8f
fix build
dsyme Jul 4, 2016
2025060
Fix 1265
dsyme Jul 4, 2016
49941f3
fix build
dsyme Jul 4, 2016
56b82d8
add testing
dsyme Jul 4, 2016
e9265d8
Merge pull request #1315 from dsyme/semis-2
dsyme Jul 4, 2016
1257b3e
Merged LangPack to Vsix swixproj
Jul 5, 2016
7c9b3af
add testing
dsyme Jul 5, 2016
f835b5f
add more tests
dsyme Jul 5, 2016
7ee01f1
add testing
dsyme Jul 5, 2016
a5a4c5a
add testing
dsyme Jul 5, 2016
a197cd0
add testing
dsyme Jul 5, 2016
f97dcf6
Update DEVGUIDE.md
dsyme Jul 5, 2016
c2aae82
Removing duplicate dependencies
Jul 5, 2016
f08fb92
Update TypeChecker.fs
dsyme Jul 6, 2016
c6e03f4
Update TypeChecker.fs
dsyme Jul 6, 2016
15aac08
Update TypeChecker.fs
dsyme Jul 6, 2016
e3cf4ec
Update TypeChecker.fs
dsyme Jul 6, 2016
0174061
remove semis 3
dsyme Jul 6, 2016
01d7566
Merge pull request #1322 from dsyme/semis-3
dsyme Jul 6, 2016
6c1ffbb
cleanup
dsyme Jul 6, 2016
9b81e87
Merge pull request #1324 from dsyme/cosmetic-4
dsyme Jul 6, 2016
7b131d6
Renamed TOk to T
wallymathieu Jul 6, 2016
1ec7d74
improve error message related to 1293
dsyme Jul 7, 2016
1f5f3bb
try to fix build
dsyme Jul 7, 2016
de6d264
fix help text
dsyme Jul 7, 2016
05fde28
fix build 2
dsyme Jul 7, 2016
d0f355e
try to fix build
dsyme Jul 7, 2016
967fa9d
fix deps, use .net core 1.0 rtm
enricosada Jul 7, 2016
41039af
fix `Microsoft.NETCore.ConsoleHost` is replaced by `Microsoft.NETCore…
enricosada Jul 7, 2016
d20d21d
fix `Microsoft.NETCore.ConsoleHost` is replaced by `Microsoft.NETCore…
enricosada Jul 7, 2016
5f2f4b6
Merge pull request #5 from enricosada/update_rest_of_visualfsharp_to_…
dsyme Jul 7, 2016
9a15a5b
Merge pull request #1329 from dsyme/fix-build-6
dsyme Jul 7, 2016
4114238
Merge branch 'master' of https://github.com/Microsoft/visualfsharp in…
dsyme Jul 7, 2016
fd09549
Merge branch 'master' of https://github.com/Microsoft/visualfsharp in…
dsyme Jul 7, 2016
aae9904
Merge pull request #964 from wallymathieu/fsharp_core_result
Jul 7, 2016
663b097
Fix for 1332
dsyme Jul 8, 2016
6a43fa1
more semis bite the dust
dsyme Jul 8, 2016
47dd515
Merge pull request #1338 from dsyme/semis-5
dsyme Jul 8, 2016
e93d7f5
Merge branch 'master' of https://github.com/Microsoft/visualfsharp in…
dsyme Jul 8, 2016
461009b
integrate master
dsyme Jul 8, 2016
c146209
Merge branch 'master' of https://github.com/Microsoft/visualfsharp in…
dsyme Jul 8, 2016
d59c82f
Merge branch 'master' of https://github.com/Microsoft/visualfsharp in…
dsyme Jul 8, 2016
6a18c0c
Merge branch 'master' of https://github.com/Microsoft/visualfsharp in…
dsyme Jul 8, 2016
a7ba7c2
fix integration
dsyme Jul 9, 2016
8efd7f7
Merge pull request #1328 from dsyme/improve-1293
KevinRansom Jul 10, 2016
74fbe72
Merge pull request #1317 from dsyme/fix-1265
KevinRansom Jul 10, 2016
e2eb573
Merge pull request #1333 from dsyme/fix-1332
KevinRansom Jul 10, 2016
c9847c1
Merge pull request #1330 from dsyme/fix-311
KevinRansom Jul 10, 2016
1c22fe3
Merge pull request #1319 from dsyme/fix-126
KevinRansom Jul 10, 2016
cc5b395
Remove SQM usage
jaredpar Jul 11, 2016
aab86c2
Get latest from master
Jul 11, 2016
aab0002
Reverse dependencies order to work around vsix v2/v3 mismatch
Jul 11, 2016
7f2b687
Merge pull request #1340 from jaredpar/sqm
jaredpar Jul 11, 2016
3b4119f
Remove OPEN_BUILD build flag
Jul 12, 2016
688c26b
Merge pull request #1342 from otawfik-ms/setuploc
Jul 12, 2016
d7ac39b
integrate visualfsharp\master
dsyme Jul 16, 2016
5321e48
fixe to integration
dsyme Jul 16, 2016
ceaad58
fixe to integration
dsyme Jul 16, 2016
d9f3790
fixes to path search for facades and API
dsyme Jul 16, 2016
b5be9ac
fixes
dsyme Jul 16, 2016
4671b4f
fixes
dsyme Jul 16, 2016
85752c4
fixes
dsyme Jul 16, 2016
1722f2e
Merge pull request #585 from dsyme/integrate-82
dsyme Jul 16, 2016
8d6db34
remove files
dsyme Jul 16, 2016
99c7c4c
fix references
dsyme Jul 16, 2016
1b22024
Merge pull request #587 from dsyme/fix-pack-1
dsyme Jul 16, 2016
48c6a86
merge fsharp master
dsyme Jul 16, 2016
5ce18c7
Merge branch 'master' of https://github.com/fsharp/FSharp.Compiler.Se…
dsyme Jul 16, 2016
62f520e
Merge branch 'master' of https://github.com/fsharp/FSharp.Compiler.Se…
dsyme Jul 16, 2016
a570ea2
release notes
dsyme Jul 16, 2016
9c4e81c
update release notes
dsyme Jul 16, 2016
1845975
fix project file
dsyme Jul 16, 2016
ee01069
fix spelling
dsyme Jul 16, 2016
aa5168f
use 4.5 framework by default
dsyme Jul 16, 2016
f90db7f
use 4.5 framework by default
dsyme Jul 16, 2016
7d794b3
skip faiures
dsyme Jul 16, 2016
4369fa2
Add Facades on Windows
dsyme Jul 17, 2016
5e66118
try using ToolHeper
dsyme Jul 17, 2016
d7033ef
try using ToolHeper
dsyme Jul 17, 2016
b1b570c
use GetPathToStandardLibrary
dsyme Jul 17, 2016
3f8b9b0
use GetPathToStandardLibrary
dsyme Jul 17, 2016
b70ae8e
allow failures, no longer compiles on Mono 4.0.5
dsyme Jul 17, 2016
a354e8d
only fails on OSX
dsyme Jul 17, 2016
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,12 @@ install:
script:
- ./build.sh NuGet

# See bug "https://bugzilla.xamarin.com/show_bug.cgi?id=41914"
# peverify failing on Mono latest with "condition `res != EINVAL' not met", on OSX

matrix:
allow_failures:
- os: osx
mono: latest


6 changes: 6 additions & 0 deletions RELEASE_NOTES.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
#### 6.0.0
* Switch to new major version on assumption integrated F# compiler changes induce API change

#### 5.0.2
* Integrate Microsoft\visualfsharp to 688c26bdbbfc766326fc45e4d918f87fcba1e7ba. F# 4.1 work

#### 5.0.1
* [Fixed dependencies in nuget package](https://github.com/fsharp/FSharp.Compiler.Service/pull/608)

Expand Down
4 changes: 4 additions & 0 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ environment:
- BUILD_TARGET: DotnetCliTests
- BUILD_TARGET: NuGet

matrix:
allow_failures:
- BUILD_TARGET: DotnetCliTests

build_script:
- ps: dotnet --info
- cmd: build.cmd %BUILD_TARGET%
Expand Down
4 changes: 0 additions & 4 deletions samples/FscExe/FscMain.fs
Original file line number Diff line number Diff line change
Expand Up @@ -87,12 +87,8 @@ module FSharpResidentCompiler =
for error in errors do eprintfn "%s" (error.ToString())
if !progress then printfn "server: finished compilation request, argv = %A" argv
let output = outputCollector.GetTextAndClear()
if !progress then printfn "ouput: %A" output
if !progress then printfn "sending reply..."
reply.Reply(output, exitCode)
if !progress then printfn "collecting..."
GC.Collect(3)
if !progress then printfn "considering exit..."
// Exit the server if there are no outstanding requests and the
// current memory usage after collection is over 200MB
if inbox.CurrentQueueLength = 0 && GC.GetTotalMemory(true) > 200L * 1024L * 1024L then
Expand Down
4 changes: 3 additions & 1 deletion src/absil/ildiag.fs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ module internal Microsoft.FSharp.Compiler.AbstractIL.Diagnostics
open Internal.Utilities

let diagnosticsLog = ref (Some stdout)

let setDiagnosticsChannel s = diagnosticsLog := s

let dflushn () = match !diagnosticsLog with None -> () | Some d -> d.WriteLine(); d.Flush()
let dflush () = match !diagnosticsLog with None -> () | Some d -> d.Flush()
let dprintn (s:string) =
Expand All @@ -18,4 +21,3 @@ let dprintf (fmt: Format<_,_,_,_>) =
let dprintfn (fmt: Format<_,_,_,_>) =
Printf.kfprintf dflushn (match !diagnosticsLog with None -> System.IO.TextWriter.Null | Some d -> d) fmt

let setDiagnosticsChannel s = diagnosticsLog := s
3 changes: 1 addition & 2 deletions src/absil/ildiag.fsi
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,8 @@ module internal Microsoft.FSharp.Compiler.AbstractIL.Diagnostics
open System.IO
open Microsoft.FSharp.Core.Printf

val public setDiagnosticsChannel: TextWriter option -> unit
val public setDiagnosticsChannel: TextWriter option -> unit

val public dprintfn: TextWriterFormat<'a> -> 'a
val public dprintf: TextWriterFormat<'a> -> 'a

val public dprintn: string -> unit
1,583 changes: 784 additions & 799 deletions src/absil/ilread.fs

Large diffs are not rendered by default.

9 changes: 8 additions & 1 deletion src/fsharp/AccessibilityLogic.fs
Original file line number Diff line number Diff line change
Expand Up @@ -70,21 +70,28 @@ let private IsILMemberAccessible g amap m (tcrefOfViewedItem : TyconRef) ad acce
match ad with
| AccessibleFromEverywhere ->
access = ILMemberAccess.Public

| AccessibleFromSomeFSharpCode ->
(access = ILMemberAccess.Public ||
access = ILMemberAccess.Family ||
access = ILMemberAccess.FamilyOrAssembly)

| AccessibleFrom (cpaths,tcrefViewedFromOption) ->

let accessibleByFamily =
((access = ILMemberAccess.Family ||
access = ILMemberAccess.FamilyOrAssembly) &&
match tcrefViewedFromOption with
| None -> false
| Some tcrefViewedFrom ->
ExistsHeadTypeInEntireHierarchy g amap m (generalizedTyconRef tcrefViewedFrom) tcrefOfViewedItem)

let accessibleByInternalsVisibleTo =
(access = ILMemberAccess.Assembly && canAccessFromOneOf cpaths tcrefOfViewedItem.CompilationPath)
(access = ILMemberAccess.Assembly || access = ILMemberAccess.FamilyOrAssembly) &&
canAccessFromOneOf cpaths tcrefOfViewedItem.CompilationPath

(access = ILMemberAccess.Public) || accessibleByFamily || accessibleByInternalsVisibleTo

| AccessibleFromSomewhere ->
true

Expand Down
38 changes: 19 additions & 19 deletions src/fsharp/AugmentWithHashCompare.fs
Original file line number Diff line number Diff line change
Expand Up @@ -850,24 +850,24 @@ let TyconIsCandidateForAugmentationWithHash g tycon = TyconIsCandidateForAugment
//-------------------------------------------------------------------------

let slotImplMethod (final,c,slotsig) : ValMemberInfo =
{ ImplementedSlotSigs=[slotsig];
{ ImplementedSlotSigs=[slotsig]
MemberFlags=
{ IsInstance=true;
IsDispatchSlot=false;
IsFinal=final;
IsOverrideOrExplicitImpl=true;
MemberKind=MemberKind.Member};
IsImplemented=false;
{ IsInstance=true
IsDispatchSlot=false
IsFinal=final
IsOverrideOrExplicitImpl=true
MemberKind=MemberKind.Member}
IsImplemented=false
ApparentParent=c}

let nonVirtualMethod c : ValMemberInfo =
{ ImplementedSlotSigs=[];
MemberFlags={ IsInstance=true;
IsDispatchSlot=false;
IsFinal=false;
IsOverrideOrExplicitImpl=false;
MemberKind=MemberKind.Member};
IsImplemented=false;
{ ImplementedSlotSigs=[]
MemberFlags={ IsInstance=true
IsDispatchSlot=false
IsFinal=false
IsOverrideOrExplicitImpl=false
MemberKind=MemberKind.Member}
IsImplemented=false
ApparentParent=c}

let unitArg = ValReprInfo.unitArgData
Expand Down Expand Up @@ -945,7 +945,7 @@ let MakeBindingsForCompareAugmentation g (tycon:Tycon) =
let thisv,thatv,comparee = comparef g tcref tycon
mkLambdas m tps [thisv;thatv] (comparee,g.int_ty)
[ // This one must come first because it may be inlined into the second
mkCompGenBind vspec2 rhs2;
mkCompGenBind vspec2 rhs2
mkCompGenBind vspec1 rhs1; ]
if tycon.IsUnionTycon then mkCompare mkUnionCompare
elif tycon.IsRecordTycon || tycon.IsStructOrEnumTycon then mkCompare mkRecdCompare
Expand Down Expand Up @@ -1016,8 +1016,8 @@ let MakeBindingsForEqualityWithComparerAugmentation g (tycon:Tycon) =

mkLambdas m tps [thisv; unitv] (hashe,g.int_ty)

[(mkCompGenBind withcGetHashCodeVal.Deref withcGetHashCodeExpr) ;
(mkCompGenBind objGetHashCodeVal.Deref objGetHashCodeExpr) ;
[(mkCompGenBind withcGetHashCodeVal.Deref withcGetHashCodeExpr)
(mkCompGenBind objGetHashCodeVal.Deref objGetHashCodeExpr)
(mkCompGenBind withcEqualsVal.Deref withcEqualsExpr)]
if tycon.IsUnionTycon then mkStructuralEquatable mkUnionHashWithComparer mkUnionEqualityWithComparer
elif (tycon.IsRecordTycon || tycon.IsStructOrEnumTycon) then mkStructuralEquatable mkRecdHashWithComparer mkRecdEqualityWithComparer
Expand Down Expand Up @@ -1054,8 +1054,8 @@ let MakeBindingsForEqualsAugmentation g (tycon:Tycon) =
mkLambdas m tps [thisv;thatobjv] (equalse,g.bool_ty)


[ mkCompGenBind nocEqualsVal.Deref nocEqualsExpr;
mkCompGenBind objEqualsVal.Deref objEqualsExpr; ]
[ mkCompGenBind nocEqualsVal.Deref nocEqualsExpr
mkCompGenBind objEqualsVal.Deref objEqualsExpr ]
if tycon.IsExceptionDecl then mkEquals mkExnEquality
elif tycon.IsUnionTycon then mkEquals mkUnionEquality
elif tycon.IsRecordTycon || tycon.IsStructOrEnumTycon then mkEquals mkRecdEquality
Expand Down
Loading