Coder Social home page Coder Social logo

msharp.docs's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

msharp.docs's Issues

MSharp.F7 Performance

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?

MSharp.Intellisense - Performance

I tried out the intellisense extension on one of geeks pretty big application and the dialog box never opened. Was stuck on loading forever. Shown below!

loadingforever

MSharp.AddNew - Adding entities issues

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.

MSharp.CodePreview

Currently, I have MSharp.CodePreview installed, but I cannot see any "Preview generated code..." button at all?

Am I being blind?

MSharp.GoTo - Expanding functionality

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

MSharp.AddNew - CRUD Generating wrong

Currently adding a crud creates the wrong setup.

  1. Has a duplicate customer form (screenshot) int he page and module, the form should only be in the module and the page should just be the page.

  2. Spaces in the file name - this is a big no, no spaces, please!

Thanks

2018-10-30 09_39_51-testproject - microsoft visual studio administrator

MSharp.AddNew - No option for Crud

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.

MSharp.exe produced an error in Intellisense VSIX.

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)

Could not convert "Error: File not found: C:\Geeks\OneClick\M#\lib#Model.dll


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.

Cache - Array dimensions exceeded supported range

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)

MSharp.AddNew - Error on creation of project

When I create a new M# project using the extension I get this error (the project does still get created, you just have to manually navigate to it after). See screenshot below.

2018-10-24 15_31_46-start page - microsoft visual studio administrator

MSharp.Colorize - Load up error

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.

  1. There's no documentation as to what colours have changed and what they now look like. The only noticeable change I found was a red tinted background on MC# projects.

M# Generation Naming strategies

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 :

capture

=> 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

MSharp.GoTo

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.

MSharp.GoTo - File not found errors in Olive projects

Using MSharp.GoTo V3.6.1219 (post merge), F7 extension uninstalled.

Getting File not found errors in various form, this only seems to affect olive projects.

This is from clicking the M# entity button in a generated entities file:
using f7 to m file

This is from pressing F7 from the same file:
duplicate filename

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.