Closed shirhatti closed 10 years ago
Using the design time host will help for these situations.
Fixed issue on Mac 6236d5361d0010a79c41ace99ce6e111157855df
Investigating windows
Also, for windows in the ASP.NET.sublime-build file you have k.cmd build
. I believe this should be kpm .cmd build
. Same in the .py file.
Using this on a Windows box (the Visual Studio 14 CTP2 VM) and running Build from ST it errors with Unable to load application or execute command 'build'
I think @schotime is correct as it builds fine in the cmd line using kpm build
Has already been fixed in 377067d08625c9840fa92be058b51a5e13aaff4f Moving to release soon
:thumbsup:
Just pushed the changes to release ec0b64f7a3ea8434f916bae17289b05e7271e9d0
Updated the package in Sublime but it still looks like its trying to run k build
not kpm build
via Ctrl+B
however the Run K command Build option works
Oops. I only checked in the fix for mac. Fixed in eb049e160ae741f823d20a405cfcd7b4c2a6e876
Thats the same commit as before so I dont think it is fixed in Windows?
I pasted the wrong SHA. I edited my comment above eb049e160ae741f823d20a405cfcd7b4c2a6e876
Cool, let us know when its pushed to sublime repo and i'll retest.
Great work by the way! :balloon:
Live in Sublime https://sublime.wbond.net/packages/Kulture
You still have to push build when at the level of the project.json file otherwise it complains that you don't have a project.json
Seems to work on Windows for me
Running K Web from sublime on Windows gives the following
An unhandled exception occurred while processing the request.
MissingMethodException: Method not found: 'Microsoft.Framework.Runtime.ILibraryExport Microsoft.Framework.Runtime.ILibraryManager.GetAllExports(System.String)'.
Microsoft.AspNet.Mvc.Razor.Compilation.RoslynCompilationService.GetApplicationReferences()
Stack Query Cookies Headers Environment
MissingMethodException: Method not found: 'Microsoft.Framework.Runtime.ILibraryExport Microsoft.Framework.Runtime.ILibraryManager.GetAllExports(System.String)'.
Microsoft.AspNet.Mvc.Razor.Compilation.RoslynCompilationService.GetApplicationReferences()
Microsoft.AspNet.Mvc.Razor.Compilation.RoslynCompilationService.Compile(String content)
Microsoft.AspNet.Mvc.Razor.RazorCompilationService.CompileCore(IFileInfo file)
Microsoft.AspNet.Mvc.Razor.RazorCompilationService.<>c__DisplayClass0.<Compile>b__2()
Microsoft.AspNet.Mvc.Razor.CompilerCache.GetOrAdd(IFileInfo file, Func`1 compile)
Microsoft.AspNet.Mvc.Razor.RazorCompilationService.Compile(IFileInfo file)
Microsoft.AspNet.Mvc.Razor.VirtualPathRazorPageFactory.CreateInstance(String path)
Microsoft.AspNet.Mvc.Razor.RazorViewEngine.CreateViewEngineResult(ActionContext context, String viewName, Boolean partial)
Microsoft.AspNet.Mvc.Razor.RazorViewEngine.FindView(ActionContext context, String viewName)
Microsoft.AspNet.Mvc.Rendering.CompositeViewEngine.FindView(ActionContext context, String viewName, Boolean partial)
Microsoft.AspNet.Mvc.Rendering.CompositeViewEngine.FindView(ActionContext context, String viewName)
Microsoft.AspNet.Mvc.ViewResult.FindView(IViewEngine viewEngine, ActionContext context, String viewName)
Microsoft.AspNet.Mvc.ViewResult.<ExecuteResultAsync>d__1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
Microsoft.AspNet.Mvc.ReflectedActionInvoker.<InvokeActionResult>d__1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
Microsoft.AspNet.Mvc.ReflectedActionInvoker.<InvokeActionResultFilter>d__1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
Microsoft.AspNet.Mvc.ReflectedActionInvoker.<InvokeActionResultWithFilters>d__1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
Microsoft.AspNet.Mvc.ReflectedActionInvoker.<InvokeActionAsync>d__1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task)
Microsoft.AspNet.Mvc.MvcRouteHandler.<RouteAsync>d__1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
Microsoft.AspNet.Routing.Template.TemplateRoute.<RouteAsync>d__1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
Microsoft.AspNet.Routing.RouteCollection.<RouteAsync>d__1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
Microsoft.AspNet.Builder.RouterMiddleware.<Invoke>d__1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
Microsoft.AspNet.RequestContainer.ContainerMiddleware.<Invoke>d__1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
Microsoft.AspNet.Diagnostics.ErrorPageMiddleware.<Invoke>d__1.MoveNext()
@ashutoshraina Looks like the version of the runtime you are using is well out-of-date. There have been some API changes since then.
Try running a kvm upgrade
. That should fix your error
Yup, that worked. The read me had listed a specific version, may be the kvm upgrade instruction should be there as well. :+1:
@schotime @ashutoshraina I have pushed out a temporary fix in cdf77070d5e1221f9451f161c5ab06925576c189
Still investigating the best way to solve this
I made some changes that should fix this. More info in comments at #22. Could you please verify on your platform? I tried on Mac + Windows and it looks to be working good.
I will close this item. Let's continue further discussion at #22.
Build fails when no file is selected OR when selected file is nested deep in the folder structure.
Build only works when selected file is in the same directory as project.json