-
Notifications
You must be signed in to change notification settings - Fork 97
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
Support await keyword #48
Comments
Could anyone explain what needs to be done to support this? I'd be willing to give it a go |
Hey sorry about the delay. In the current release this works:
We've switched in the latest dev branch to the Roslyn scripting engine. Which solve quite a few other problems, BUT it break the async capability. See: http://stackoverflow.com/questions/15312892/could-roslyn-compile-await-keyword Which version are you using? |
Hrmpf, I'd swear I had problems doing One a different note - are there points for extensibility? e.g. ways to add windows or interact with the shell? Also, how does one deal with referencing assemblies that may need recompilation? I mean, I wanted to use CShell for testing but every time I need to modify the source, I need to close CShell so that VStudio can overwrite the DLL - is there any solution to this? |
Ah yes - await is accepted as a keyword but doesn't seem to be awaited:
|
Strangely enough, the I guess no way to support await in dev branch until Roslyn is released... |
Ok, so - I was able to make this work by patching the ScriptCs MonoScriptEngine as shown in the patch in the link above and then replacing the RoslynScriptEngine with the MonoScriptEngine in CShell. I guess this brings up the desire to allow the user to decide where to pick the IScriptEngine from since ScriptCs supports several. Do you know how you'd like that to be configurable? Through the UI, config file or command args? Perhaps I can send a PR. |
Yep, over the last few days I've come to the conclusion that we need to support both scripting engines in CShell. At first I decided to go Roslyn all the way... but as we see in this thread this has it's own problems. So yes, I agree we should support both engines. I think it will be a startup argument. We do NOT support ScriptCS modules and have to implement some kind of switch ourselves. |
Well hopefully the roslyn release will be soon and it should support await... Sent from a device with a small keyboard
|
I have studied a bit Roslyn and in my opinion Micro$oft could provide the same but they are too eager to promote the 4.5 thing to force people to abandon NT5x The same problem occours with SQL Server 2014... needs net 4.5.. so no updates Couriously,,, even the new M$ Office works on XP... or M$ will loose a lot of I completely diagree on this way... of evolution... ;-) From: Lukas Buhler [mailto:[email protected]] Yep, over the last few days I've come to the conclusion that we need to support So yes, I agree we should support both engines. I think it will be a startup Reply to this email directly or view |
will close since #68 will solve this. |
Any chance to support awaiting for tasks?
The text was updated successfully, but these errors were encountered: