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
Interactive Design Meeting Notes - 2/25/15 #907
Comments
We're very excited about this collaboration, thanks for reaching out! |
If you remove the variable of what is feasible, and focus solely on end-user experience, the workflow that's ideal is something like this: I see a .csx file on the disk. I can edit it. Run it from the command line., etc. Just like scriptcs does today. However, in addition to that, I want to be able to pen the .csx file from within Visual Studio and image it behaving as if I just opened a solution. That is, I can do all the things I'm can do with Visual Studio in a console application, including:
I took some liberties above -- "what does it mean to open a .csx file a solution? it's not a solution. it's a file". True, but what I mean is, when I open it, everything else falls into place. My "references" are there in the Solution Explorer. I don't have to set up the debugger to execute scriptcs.exe manually, with -debug flag, etc. It does all that for me. Even, somehow, it knows where to go for Unit Tests. Today, I can simulate some of this, with some manual steps. As follows:
I haven't done of this so I really haven't vetted this out. I'm really only posting this to get a discussion going and to get further feedback. Ref: https://groups.google.com/forum/#!topic/scriptcs/jl5h9tUQ9XA |
@kasajian we also have this approach which works for debugging in VS: https://github.com/scriptcs/scriptcs/wiki/Debugging-a-script. Have you tried it? Today it doesn't get full intellisense etc, but it "could". It would also be nice as WebMatrix has to just be able to point to a folder and open it without needing any sln or anything. |
Thank you. I did reference that. Debugging in the way you describe works good. But it isn't just debugging. It's really a hybrid that I'm looking for. I want all the benefits of scriptcs but with the option of not giving up any if the benefits for visual studio. I'll set it up. I was more curious if anyone else has attempted to share source between scriptcs and visual studio. Kenneth Kasajian -- Mobile call or text: 949-288-3717, Skype: kkasajian
|
Well you can edit the scripts in VS as well, which is why I mentioned it. I I am not aware of anyone doing this, but does not mean they are not. The On Thu, Feb 26, 2015 at 5:16 PM Kenneth Kasajian notifications@github.com
|
glenn, thanks. Now that you mention it, I remember reading about that. You're right. Namespaces will need to be avoided. If anything else comes to mind, let me know. |
We talked a lot about namespaces in the meeting described by Issue #122. As mentioned in the NOTE under We didn't feel that it was something we needed on day one, but it was definitely attractive for the reasons you mention. |
@glennblock well I definitely want full IDE support for scripts. Why wouldn't you? |
Kevin, thanks for the response. "Asking for" isn't how I would put it. I was describing what I believed Thanks again. On Thu, Feb 26, 2015 at 7:46 PM, Glenn Block notifications@github.com
|
👍 |
@Pilchie I want that without a doubt! :-) |
@Pilchie on the editor front and overall authoring experience, we are also involved in the omnisharp-roslyn effort to introduce scriptcs support there - as a 3rd project system (MSBuild, ASP.NET 5, scriptcs) |
I'm also very interested in this as I use cake-build/cake, and I know they'd benefit from a powerful IDE experience for scripts, as well as an exstensible model for script context and directives. |
👍 @filipw! |
Ah yes, VB, awesome. |
we now have a dedicated repo for the new scriptcs engine based on Microsoft.CodeAnalysis libraries. https://github.com/scriptcs/scriptcs-csharp |
awesome! On Sat, Mar 7, 2015 at 1:45 AM, Filip W notifications@github.com wrote:
|
Good work Filip! |
hi all, I have added support for Visual Basic using But - this is a reality now 😄 |
it's remarkable how easy it was - the csharp and visual basic engines differ by 4 or 5 lines of code only (!) everything else is shared |
Love it! |
I have reorganized the original C# specific repo into this https://github.com/scriptcs/scriptcs-engines/tree/master/src It now hosts both C# and VB engines. |
Cscript allows an engine to be specified. Is this how scriptcs will support multiple engines? |
@paulomorgado we support multiple engines now. Engines are registered as part of a module. Modules can either load automatically based on extension, OR they can load explicitly by passing the module name as a parameter. For example, the FSharp module loads automatically if you have it installed and have an |
Actually we also support modules which will load all the time no matter what, but I am just saying that for completeness. It doesn't affect this thread. |
the scriptcs omnisharp has made it into omnisharp and can now be used with different omnisharp-friendly editors. Here is a short clip showing me using it in Visual Studio Code http://recordit.co/hcmdrE43Dj |
Fabulous Filip!
|
Closing out. Meeting notes don't need issues tracking them keeping them open in our issue tracker. |
Interactive Meeting Notes - 2/25/2015
We met with scriptcs team this morning.
We discussed our milestones
We discussed our vision
Imagine: a script written in scriptcs can be opened and edited in VS and in the Interactive Window. Likewise, a script written in VS can be run in the scriptcs command-line and built in the ScriptCS command-line REPL. It should be a friction-less experience to shift between the environments and the scripting experience itself should be the same.
In this vision, the IntEx team would be responsible for the Interactive Window (IW) experience in-the-box in Visual Studio. This includes the window itself as well as the C# and VB REPL. The IW should be able to load script files created in scriptcs command-line. Script files can be executed using scriptcs in a command-line or in the VS IW. We will use scriptcs's equivalent of csi.exe that can run scripts from the command-line.
The scriptcs team would be responsible for maintaining their command-line REPL and scripting experience.
Together, our teams would have to solve our NuGet handling, scripting semantics, and directives disparities.
What we learned
scriptcs has an extensible model, meaning that all engines are “pluggable.” This would mean we can plug a Visual Basic Engine into their platform as well as our cross-platform engine without too many issues. They are open to this integration with VB the only question is who will maintain this.
We also learned that the value-prop of scriptcs lies primarily in its layered “wrapping,” surfacing convention-based experiences to developers to make loading packages, binaries, dlls easy and letting the developer solely worry about writing code.
Packages.conf file
While the scriptcs team liked our solution (aka Fowler’s shared library API), they already have customers who rely on the packages.conf workflow. They are open to discussing deprecating the packages.conf over time.
Their biggest worry
Is that we will destroy their freedom. We need to show them that Microsoft won’t slow them down or inhibit their success and transparency.
The text was updated successfully, but these errors were encountered: