geeksltd / msharp.docs Goto Github PK
View Code? Open in Web Editor NEWDocumentation for M# programming
Home Page: https://www.msharp.co.uk
Documentation for M# programming
Home Page: https://www.msharp.co.uk
See the "Customers" sketch of this toturial.
As you can see, Company names and Logos do not match.
This is far from instant: takes between 3-5 seconds to open the files (depending on the size of the file), and even when all 3 tabs are already open swapping between them takes 2-3 seconds to swap between the tabs.
At the moment this makes the extension unusable, as its faster to just go the file manually.
Is there anyway we can allocate some time to look for possible ways to improve this?
Some issues with adding entities on AddNew extension:
If I right click on a CMS folder and add a new entity and name it "Customer" it will create a folder called "CMS`" and put the customer entity in there? This is wrong.
If I right click on the #Model solution and do add new -> entity - nothing happens or gets creating.
What I believe should happen:
If you right-click a folder and add an entity, just add the file into that folder as its the user's decision to right click that folder.
If you right-click the #Model solution and add new from there - just add it in the base of the solution.
Currently, I have MSharp.CodePreview installed, but I cannot see any "Preview generated code..." button at all?
Am I being blind?
Hey!
At the moment the GoTo is just used in #MODEL to go to an entities property.
Can we expand on this? Can we investigate the possibility of using it in M# solutions and being taken to the actual implementation of that, so for example in #UI it will go to the generated code?
We can even expand this further by taking you to M#s implementation of something!
Thanks
Hey,
At the moment the AddNew their is no option to create a crud page, like on he old MSharp chrome IDE.
It should have the option to add a crud which will create the view/form/list pages.
It seems there is a problem when calling msharp.exe with this parameters from Msharp.Intellisense VSIX:
msharp.exe /intellisense /ExpectsCSharpStatement /file:"C:\Geeks\OneClick\M#\UI\Modules-Custom\Header.cs" /setting:Code /line:39 /text:"public MvcHtmlString GetApplicableMenu(User user, HtmlHelper Html){\r\n if (user is VendorManager)\r\n return \r\nHtml.Action<Controllers.VendorMenuController>();\r\n return null;\r\n }"
Error message returned by Msharp.exe :
External command failed: 'C:\Geeks\OneClick\M#\lib\msharp.exe':
Running > msharp /intellisense /ExpectsCSharpStatement /file:C:\Geeks\OneClick\M#\UI\Modules-Custom\Header.cs /setting:Code /line:39 /text:public MvcHtmlString GetApplicableMenu(User user, HtmlHelper Html){
if (user is VendorManager)
return Html.Action<Controllers.VendorMenuController>();
return null;
}C:\Geeks\OneClick
Loading project...-------------------
at System.MSharpExtensions.To(String text, Type targetType)
at System.MSharpExtensions.To[T](String text)
at MSharp.MCSharpLoader.LoadXml()
at MSharp.MCSharpLoader..ctor(DirectoryInfo solutionFolder)
at MSharp.Program.LoadProject()
at MSharp.Program.Process()
at MSharp.Program.Main(String[] args)
at MSharp.Program.GetAssembly(String name)
at MSharp.Program.Main(String[] args)
" to type System.Xml.Linq.XElement.
Base issue: Data at the root level is invalid. Line 1, position 1.
We have a project that uses MSharp originally created by Geeks Ltd. We have found that in recent months our production site is crashing periodically due to the size of the MSharp Database Cache exceeding the array dimensions set by C#.
I have recently upgraded MSharp to the latest version in the hope this would resolve the issue, unfortunately the issue remains. At present the only way we are able to resolve the issue is to restart IIS. This seemingly clears the cache and starts fresh, then in a few days the same will happen again. I cannot find any specific information regarding the cache in the documentation or any hints on how we can control what caches and what doesn't, it seems every database object is cached and as the project and database grow we are hitting the array limits of the cache sooner and sooner.
Can you clarify if this is expected behaviour and whether there are mechanisms available in the framework to allow us to control which database objects are cached.
MSharp Version: 4.0.201
Stack Trace from a crash when the cache exceeds the arrays dimensions:
Error: Array dimensions exceeded supported range.
STACK TRACE:
at System.MulticastDelegate.CombineImpl(Delegate follow)
at MSharp.Framework.Database.add_CacheRefreshed(EventHandler value)
at Domain.Role.get_DeptAdmin() in D:\a\1\s\Source\Domain\Entities\Role.cs:line 195
at Domain.StaffMember.CanManageDepartments() in D:\a\1\s\Source\Domain\-Logic\Users\StaffMember.Permission.cs:line 361
at Controllers.SiteController.Index(SelectDepartment info) in D:\a\1\s\Source\Website\Controllers\Pages\SiteController.cs:line 44
at lambda_method(Closure , ControllerBase , Object[] )
at System.Web.Mvc.ReflectedActionDescriptor.Execute(ControllerContext controllerContext, IDictionary`2 parameters)
at System.Web.Mvc.ControllerActionInvoker.InvokeActionMethod(ControllerContext controllerContext, ActionDescriptor actionDescriptor, IDictionary`2 parameters)
at System.Web.Mvc.Async.AsyncControllerActionInvoker. b__39(IAsyncResult asyncResult, ActionInvocation innerInvokeState)
at System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncResult`2.CallEndDelegate(IAsyncResult asyncResult)
at System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeActionMethod(IAsyncResult asyncResult)
at System.Web.Mvc.Async.AsyncControllerActionInvoker.AsyncInvocationWithFilters. b__3d()
at System.Web.Mvc.Async.AsyncControllerActionInvoker.AsyncInvocationWithFilters. c__DisplayClass46. b__3f()
at System.Web.Mvc.Async.AsyncControllerActionInvoker.AsyncInvocationWithFilters. c__DisplayClass46. b__3f()
at System.Web.Mvc.Async.AsyncControllerActionInvoker.AsyncInvocationWithFilters. c__DisplayClass46. b__3f()
at System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeActionMethodWithFilters(IAsyncResult asyncResult)
at System.Web.Mvc.Async.AsyncControllerActionInvoker. c__DisplayClass21. c__DisplayClass2b. b__1c()
at System.Web.Mvc.Async.AsyncControllerActionInvoker. c__DisplayClass21. b__1e(IAsyncResult asyncResult)
at System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeAction(IAsyncResult asyncResult)
at System.Web.Mvc.Controller. b__1d(IAsyncResult asyncResult, ExecuteCoreState innerState)
at System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncVoid`1.CallEndDelegate(IAsyncResult asyncResult)
at System.Web.Mvc.Controller.EndExecuteCore(IAsyncResult asyncResult)
at System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncVoid`1.CallEndDelegate(IAsyncResult asyncResult)
at System.Web.Mvc.Controller.EndExecute(IAsyncResult asyncResult)
at System.Web.Mvc.MvcHandler. b__5(IAsyncResult asyncResult, ProcessRequestState innerState)
at System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncVoid`1.CallEndDelegate(IAsyncResult asyncResult)
at System.Web.Mvc.MvcHandler.EndProcessRequest(IAsyncResult asyncResult)
at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step)
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
After installing MSharp.Colorize, and trying to open a default M# project, I get an error that reads:
"Not implemented (Exception from HRESULT: 0x0004001 (E_NOTIMPL))"
This then crashed my project.
Loading up standard M# and MC# projects is fine, the only projects that seem to be effected by the crash are projects created from the MSharp.AddNew addon.
An annoyance with the extension:
You have to first finish the quotations then add your semi-colon before the alt - I actually opens.
Would it be possible to have this work without this requirement?
Hey,
Our QA on opening visual studio got two errors simultaneously pointing to the same log file.
Error log attached.
Hey Paymon. Message from Farzad:
In order to implement the F7 Page file switching by Roslyn, I should create a proper class name from available information such as namespace and class name.
For example when we want to switch to sister file in the "TAndCsAuditPage" page class, then we need the populated controller full class name generated by MSharp, (in the "Controllers" namespace).
So the F7 gets the namespace of current class in addition to the class name plus "Controller" suffix. So the document we should switch has fullClassName something like this :
=> AdminContractorsSelectedContractorDetailsTAndCsAuditController
This is not related to File name or Path , So we get it from Roslyn Workspace inside running Visual Studio without new creation.
So if possible please obtain the approval of the naming strategies for the generated Container files.
Another message:
Another thing if you can check it is, if we can switch to the controller classes by their name (file path in website project) then it will be so faster than we use Roslyn symbol finder , so if Msharp team can grantee that their generated page controller and module controller class file names are same as containing class name , then we can pass a heavy searching easily
Point 5 here - https://marketplace.visualstudio.com/items?itemName=Paymon.MSharp-Intellisense#overview states the window should automatically close on save, it does not
Also because the popup does not automatically hide, the code is not automatically changed either. This only occurs on closing the popup manually by clicking the X button.
I don't seem to be able to get the context menu to appear on pressing CTRL + .
The menu appears, but none of the installed extension features are present.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.