mpf

How do I subscribe to solution and project events from a VSPackage

徘徊边缘 提交于 2019-12-18 11:47:54
问题 I'm developing a language service for Visual Studio through a VSPackage. I need to update my parse data whenever files get added/removed from the solution's projects. I want to subscribe to solution and project events. I tried as follows, but none of these events get fired when I add/remove projects to the solution or add/remove items to projects. DTE dte = (DTE)languageService.GetService(typeof(DTE)); if (dte == null) return; ((Events2)dte.Events).SolutionEvents.ProjectAdded +=

How to mpf an array?

时光毁灭记忆、已成空白 提交于 2019-12-18 02:50:56
问题 I have: import numpy as np from mpmath import * mpf(np.array(range(0,600))) But it won't let me do it: TypeError: cannot create mpf from array So what should I be doing? Essentially I'm going to have use this array and multiply element-wise with an incredibly large or incredible small number depending on circumstance (eg 1.35626567e1084 or 6.2345252e-2732 ) hence the need for mpf. More specifically I'll be using the besseli and besselk function which create the incredible large and incredible

Implementing a Language Service By Using the Managed Package Framework

╄→гoц情女王★ 提交于 2019-12-12 17:05:31
问题 I've followed the steps listed in the walk through (http://msdn.microsoft.com/en-us/library/bb166360.aspx) for implementing and registering a LanguageService and I simply can't get it to work. My package loads correctly, I can add functioning menu items and option pages, but I cannot open files registered to my service. When I attach a debugger, I can see my VSPackage being constructed, loaded, and having its FDoIdle method called twice. After that, experimental Visual Studio session goes off

Visual Studio 2010 Extensibility, MPF and language services

主宰稳场 提交于 2019-12-07 00:13:25
问题 I am trying to extend Visual Studio 2010 RC to be able to use a custom programming language. The first two things I've tried to do is a syntax highlight/Intellisense feature (easily done, thanks to "Ook!" sample from PDC09) and a possibility to create new project templates (i.e. be able to open *.myproj files). For this second task, I can't find any easy tutorials or samples. Most samples are for Visual Studio 2008 (as for IronPython integration) or even VS2003. The few samples available for

Visual Studio 2010 Extensibility, MPF and language services

匆匆过客 提交于 2019-12-05 03:08:34
I am trying to extend Visual Studio 2010 RC to be able to use a custom programming language. The first two things I've tried to do is a syntax highlight/Intellisense feature (easily done, thanks to "Ook!" sample from PDC09) and a possibility to create new project templates (i.e. be able to open *.myproj files). For this second task, I can't find any easy tutorials or samples. Most samples are for Visual Studio 2008 (as for IronPython integration) or even VS2003. The few samples available for VS2010 do not work (including MPFProj) or do not compile, and are too hard to understand. Is there any

How to mpf an array?

廉价感情. 提交于 2019-11-28 23:49:45
I have: import numpy as np from mpmath import * mpf(np.array(range(0,600))) But it won't let me do it: TypeError: cannot create mpf from array So what should I be doing? Essentially I'm going to have use this array and multiply element-wise with an incredibly large or incredible small number depending on circumstance (eg 1.35626567e1084 or 6.2345252e-2732 ) hence the need for mpf. More specifically I'll be using the besseli and besselk function which create the incredible large and incredible small values. How do I get an mpf array to hold these numbers? Multiplying an array by a mpf number