ligershark / Kulture

Sublime extension for ASP.NET vNext
Other
236 stars 30 forks source link

Build fails #4

Closed shirhatti closed 10 years ago

shirhatti commented 10 years ago

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

sayedihashimi commented 10 years ago

Using the design time host will help for these situations.

shirhatti commented 10 years ago

Fixed issue on Mac 6236d5361d0010a79c41ace99ce6e111157855df

Investigating windows

schotime commented 10 years ago

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.

jchannon commented 10 years ago

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

shirhatti commented 10 years ago

Has already been fixed in 377067d08625c9840fa92be058b51a5e13aaff4f Moving to release soon

jchannon commented 10 years ago

:thumbsup:

shirhatti commented 10 years ago

Just pushed the changes to release ec0b64f7a3ea8434f916bae17289b05e7271e9d0

jchannon commented 10 years ago

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

shirhatti commented 10 years ago

Oops. I only checked in the fix for mac. Fixed in eb049e160ae741f823d20a405cfcd7b4c2a6e876

jchannon commented 10 years ago

Thats the same commit as before so I dont think it is fixed in Windows?

shirhatti commented 10 years ago

I pasted the wrong SHA. I edited my comment above eb049e160ae741f823d20a405cfcd7b4c2a6e876

jchannon commented 10 years ago

Cool, let us know when its pushed to sublime repo and i'll retest.

Great work by the way! :balloon:

shirhatti commented 10 years ago

Live in Sublime https://sublime.wbond.net/packages/Kulture

schotime commented 10 years ago

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

jchannon commented 10 years ago

Seems to work on Windows for me

schotime commented 10 years ago

image

ashutoshraina commented 10 years ago

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()
shirhatti commented 10 years ago

@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

ashutoshraina commented 10 years ago

Yup, that worked. The read me had listed a specific version, may be the kvm upgrade instruction should be there as well. :+1:

shirhatti commented 10 years ago

@schotime @ashutoshraina I have pushed out a temporary fix in cdf77070d5e1221f9451f161c5ab06925576c189

capture6

Still investigating the best way to solve this

sayedihashimi commented 10 years ago

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.