You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Yes, it's helped. BTW, the snippets are too colorful for my taste. Patterns are too bright and I don't think we need to highlight operators now. My idea was to mimic Visual Studio C# editor colors + add a new color for F# DUs/active patterns. Don't get me wrong, I naturally love new coloring :) but the following snippet is a bit too much
Maybe removing patterns colorization or choosing a different color for them would make better results?
(However, I don't understand dark themes in general, so maybe it's ok as is).
I suppose IL merge would make sense - @vasily-kirichenko do you have any thoughts on that? Can I get one of you guys to send a PR for this :-)?
As for the too bright colours - I agree. I experimented a bit with a version that had orange keywords and various yellow-ish tones for strings/formatters/escaped and various blue-ish tones for modules/types/DUs. I think it looked better because similar things had similar colours. I'll send a PR with that.
Just an idea/alternative to IL merge:
Is the #r really required? If not just bundling the dll in the nuget package would be enough (like RazorEngine)?
If yes we could just bundle a simple .fsx script, which loads all required references in the FSharp.Formatting nuget package. Users would just #load this script (which gets updated with the package). This would break users one time though.
This would solve similar issues like this in the future (as this is not the first issue with references in FSharp.Formatting).
I think ILRepack (the version 1.22.2 which works) would be good.
We don't want to merge FSharp.Core.dll into F# Formatting, because the public API exposes F#-specific types like options - so using --standalone would break things.
Using ILRepack seems like a good idea, but it fails on Mono (see Travis log) - I had unspecified issues with it on Mono previously too (when trying to use it in R provider), so I just think it isn't ready yet.
--standalone isn't going to work either, because we do not want to inline FSharp.Core.dll.
I'll add the load script as a more reliable and future proof alternative though.
Activity
tpetricek commentedon Feb 3, 2015
You need to add
#rto reference the VS PowerTools dependency. With this change it should work.forki commentedon Feb 3, 2015
That will break a lot of consumers, right? Can't you ilmerge?
vasily-kirichenko commentedon Feb 3, 2015
Yes, it's helped. BTW, the snippets are too colorful for my taste. Patterns are too bright and I don't think we need to highlight operators now. My idea was to mimic Visual Studio C# editor colors + add a new color for F# DUs/active patterns. Don't get me wrong, I naturally love new coloring :) but the following snippet is a bit too much
Maybe removing patterns colorization or choosing a different color for them would make better results?
(However, I don't understand dark themes in general, so maybe it's ok as is).
tpetricek commentedon Feb 3, 2015
I suppose IL merge would make sense - @vasily-kirichenko do you have any thoughts on that? Can I get one of you guys to send a PR for this :-)?
As for the too bright colours - I agree. I experimented a bit with a version that had orange keywords and various yellow-ish tones for strings/formatters/escaped and various blue-ish tones for modules/types/DUs. I think it looked better because similar things had similar colours. I'll send a PR with that.
tpetricek commentedon Feb 3, 2015
How about this:
It uses yellow-ish colours for strings etc. and aqua-ish colours for identifiers etc.; I made comments gray to make it a bit less colourful.
matthid commentedon Feb 3, 2015
Just an idea/alternative to IL merge:
Is the
#rreally required? If not just bundling the dll in the nuget package would be enough (like RazorEngine)?If yes we could just bundle a simple
.fsxscript, which loads all required references in the FSharp.Formatting nuget package. Users would just#loadthis script (which gets updated with the package). This would break users one time though.This would solve similar issues like this in the future (as this is not the first issue with references in FSharp.Formatting).
tpetricek commentedon Feb 3, 2015
Using
#loadwould be a reasonable alternative, I think (that's what Deedle, R provider and FsLab do...).@forki Do you have an opinion on this?
tpetricek commentedon Feb 3, 2015
Given that the change also breaks Deedle tests on Travis, I think that ILMerge would probably be nice....
vasily-kirichenko commentedon Feb 4, 2015
@tpetricek Yes, your new colors is much better. Great.
About merging. @forki uses ILRepack in Paket: https://github.com/fsprojects/Paket/blob/master/build.fsx#L135-L150. @forki do you recommend this approach? Maybe we could go with
--standalone?forki commentedon Feb 4, 2015
As soon as gluck/il-repack#72 gets fixed I'll always recommend ilrepack. At the moment the latest doesn't work for me.
tpetricek commentedon Feb 4, 2015
I think ILRepack (the version 1.22.2 which works) would be good.
We don't want to merge
FSharp.Core.dllinto F# Formatting, because the public API exposes F#-specific types like options - so using--standalonewould break things.Revert IL Repack - breaks build on mono (#261)
tpetricek commentedon Feb 5, 2015
Hmm, I'm giving up on this.
Using ILRepack seems like a good idea, but it fails on Mono (see Travis log) - I had unspecified issues with it on Mono previously too (when trying to use it in R provider), so I just think it isn't ready yet.
--standaloneisn't going to work either, because we do not want to inlineFSharp.Core.dll.I'll add the load script as a more reliable and future proof alternative though.