www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.announce - Mono-D 1.8 - Conditional code highlighting

reply "Alexander Bothe" <info alexanderbothe.com> writes:
Hi everyone,

just messed around with the MonoDevelop APIs and got some nice 
editing-related feature working.

http://mono-d.alexanderbothe.com/conditional-highlighting-v1-8/

Hopefully it won't crash immediately or obstruct the displayed 
code in any other wise..but let's see. :-P



Cheers,
Alex
Mar 30 2014
next sibling parent "Alexander Bothe" <info alexanderbothe.com> writes:
Just couldn't let these primary issues pass by that easily..

http://mono-d.alexanderbothe.com/improved-conditional-highlighting-completion-v1-8-1/



Cheers everyone
Mar 31 2014
prev sibling next sibling parent reply =?UTF-8?B?IlRow6lv?= Bueno" <munrek gmx.com> writes:
As usual, thank you for bringing more awesomeness to D :)

Mono-D seems pretty complete to me now, I was wondering if you 
are thinking about new major features ?
Mar 31 2014
next sibling parent "Alexander Bothe" <info alexanderbothe.com> writes:
On Monday, 31 March 2014 at 21:41:26 UTC, Théo Bueno wrote:
 As usual, thank you for bringing more awesomeness to D :)

 Mono-D seems pretty complete to me now, I was wondering if you 
 are thinking about new major features ?
Thanks :) Well, atm there are too many smaller bugs to fix and little things to improve. Perhaps some more refactorings or better semantic highlighting, perhaps some better way to cache completion results to make everything even faster..dunno, for now.
Mar 31 2014
prev sibling parent reply "Alexander Bothe" <info alexanderbothe.com> writes:
On Monday, 31 March 2014 at 21:41:26 UTC, Théo Bueno wrote:
 Mono-D seems pretty complete to me now, I was wondering if you 
 are thinking about new major features ?
http://mono-d.alexanderbothe.com/mono-d-v1-9-opindexopslice-overload-recognition-completion/ :-)
Apr 04 2014
next sibling parent reply "Adam Wilson" <flyboynw gmail.com> writes:
On Fri, 04 Apr 2014 07:35:18 -0700, Alexander Bothe  =

<info alexanderbothe.com> wrote:

 On Monday, 31 March 2014 at 21:41:26 UTC, Th=E9o Bueno wrote:
 Mono-D seems pretty complete to me now, I was wondering if you are  =
 thinking about new major features ?
http://mono-d.alexanderbothe.com/mono-d-v1-9-opindexopslice-overload-r=
ecognition-completion/
 :-)
I updated from 1.7.3 to 1.9 and I get the following: Could not load project with unknown item type = '{3947E667-4C90-4C3A-BEB9-7148D6FE0D7C}' I use Xamarin Studio for work, Version 4.2.3 -- = Adam Wilson GitHub/IRC: LightBender Aurora Project Coordinator
Apr 04 2014
parent "Adam Wilson" <flyboynw gmail.com> writes:
On Fri, 04 Apr 2014 10:21:28 -0700, Adam Wilson <flyboynw gmail.com> wro=
te:

 On Fri, 04 Apr 2014 07:35:18 -0700, Alexander Bothe  =
 <info alexanderbothe.com> wrote:

 On Monday, 31 March 2014 at 21:41:26 UTC, Th=E9o Bueno wrote:
 Mono-D seems pretty complete to me now, I was wondering if you are  =
 thinking about new major features ?
http://mono-d.alexanderbothe.com/mono-d-v1-9-opindexopslice-overload-=
recognition-completion/
 :-)
I updated from 1.7.3 to 1.9 and I get the following: Could not load project with unknown item type =
 '{3947E667-4C90-4C3A-BEB9-7148D6FE0D7C}'

 I use Xamarin Studio for work, Version 4.2.3
I fixed it. I had to manually enable to plugin. -- = Adam Wilson GitHub/IRC: LightBender Aurora Project Coordinator
Apr 04 2014
prev sibling next sibling parent reply "Adam Wilson" <flyboynw gmail.com> writes:
On Fri, 04 Apr 2014 07:35:18 -0700, Alexander Bothe  =

<info alexanderbothe.com> wrote:

 On Monday, 31 March 2014 at 21:41:26 UTC, Th=E9o Bueno wrote:
 Mono-D seems pretty complete to me now, I was wondering if you are  =
 thinking about new major features ?
http://mono-d.alexanderbothe.com/mono-d-v1-9-opindexopslice-overload-r=
ecognition-completion/
 :-)
I think I have a syntax highlighting regression. The following code from= = module core.sys.windows.windows used to be highlighted when used in my o= wn = modules in 1.7.3 but is now regular black text: alias LONG HRESULT; -- = Adam Wilson GitHub/IRC: LightBender Aurora Project Coordinator
Apr 04 2014
parent reply "Alexander Bothe" <info alexanderbothe.com> writes:
On Friday, 4 April 2014 at 17:32:52 UTC, Adam Wilson wrote:
 I think I have a syntax highlighting regression. The following 
 code from module core.sys.windows.windows used to be 
 highlighted when used in my own modules in 1.7.3 but is now 
 regular black text:

     alias LONG HRESULT;
Well, since your previous version was 1.7.3, I think that I've made this change knowingly. Anyway I surely can get aliases highlighted again.
Apr 04 2014
parent reply "Adam Wilson" <flyboynw gmail.com> writes:
On Fri, 04 Apr 2014 11:44:44 -0700, Alexander Bothe  
<info alexanderbothe.com> wrote:

 On Friday, 4 April 2014 at 17:32:52 UTC, Adam Wilson wrote:
 I think I have a syntax highlighting regression. The following code  
 from module core.sys.windows.windows used to be highlighted when used  
 in my own modules in 1.7.3 but is now regular black text:

     alias LONG HRESULT;
Well, since your previous version was 1.7.3, I think that I've made this change knowingly. Anyway I surely can get aliases highlighted again.
If possible it would be nice for aliases to be highlighted per their underlying type, so struct aliases highlight differently than primitive aliases? It would be an interesting way to provide semantic information to the user about what the underlying type actually is... If that's not possible then it's still nice to know that I am working with a type and not an identifier. -- Adam Wilson GitHub/IRC: LightBender Aurora Project Coordinator
Apr 04 2014
parent reply "Alexander Bothe" <info alexanderbothe.com> writes:
On Friday, 4 April 2014 at 19:20:18 UTC, Adam Wilson wrote:
 If possible it would be nice for aliases to be highlighted per 
 their underlying type, so struct aliases highlight differently 
 than primitive aliases? It would be an interesting way to 
 provide semantic information to the user about what the 
 underlying type actually is...
Probably would take too much time to resolve & deduce each alias' base type.
 If that's not possible then it's still nice to know that I am 
 working with a type and not an identifier.
Sure.
Apr 04 2014
parent "Alexander Bothe" <info alexanderbothe.com> writes:
 On Friday, 4 April 2014 at 19:20:18 UTC, Adam Wilson wrote:
 If that's not possible then it's still nice to know that I am 
 working with a type and not an identifier.
I furthermore fixed some reference finding + highlighting bugs, some NREs, an SO regression and some further bugs, they're all part of v1.9.2
Apr 05 2014
prev sibling parent reply "Adam Wilson" <flyboynw gmail.com> writes:
On Fri, 04 Apr 2014 07:35:18 -0700, Alexander Bothe  =

<info alexanderbothe.com> wrote:

 On Monday, 31 March 2014 at 21:41:26 UTC, Th=E9o Bueno wrote:
 Mono-D seems pretty complete to me now, I was wondering if you are  =
 thinking about new major features ?
http://mono-d.alexanderbothe.com/mono-d-v1-9-opindexopslice-overload-r=
ecognition-completion/
 :-)
I am getting a "Completion Timeout" and Xamarin Studio is lagging hard = when the completion window pops up... I didn't think my files were that = = big or complex... -- = Adam Wilson GitHub/IRC: LightBender Aurora Project Coordinator
Apr 16 2014
parent reply "Kapps" <opantm2+spam gmail.com> writes:
On Wednesday, 16 April 2014 at 22:45:45 UTC, Adam Wilson wrote:
 On Fri, 04 Apr 2014 07:35:18 -0700, Alexander Bothe 
 <info alexanderbothe.com> wrote:

 On Monday, 31 March 2014 at 21:41:26 UTC, Théo Bueno wrote:
 Mono-D seems pretty complete to me now, I was wondering if 
 you are thinking about new major features ?
http://mono-d.alexanderbothe.com/mono-d-v1-9-opindexopslice-overload-recognition-completion/ :-)
I am getting a "Completion Timeout" and Xamarin Studio is lagging hard when the completion window pops up... I didn't think my files were that big or complex...
I had a similar issue until I disabled mixin and template analysis. It seems to have been getting into an infinite loop somewhere in my code (though I'm not sure where).
Apr 16 2014
parent reply "Adam Wilson" <flyboynw gmail.com> writes:
On Wed, 16 Apr 2014 20:15:21 -0700, Kapps <opantm2+spam gmail.com> wrote=
:

 On Wednesday, 16 April 2014 at 22:45:45 UTC, Adam Wilson wrote:
 On Fri, 04 Apr 2014 07:35:18 -0700, Alexander Bothe  =
 <info alexanderbothe.com> wrote:

 On Monday, 31 March 2014 at 21:41:26 UTC, Th=E9o Bueno wrote:
 Mono-D seems pretty complete to me now, I was wondering if you are =
=
 thinking about new major features ?
http://mono-d.alexanderbothe.com/mono-d-v1-9-opindexopslice-overload=
-recognition-completion/
 :-)
I am getting a "Completion Timeout" and Xamarin Studio is lagging har=
d =
 when the completion window pops up... I didn't think my files were th=
at =
 big or complex...
I had a similar issue until I disabled mixin and template analysis. It seems to have been getting into an infinite loop somewhere in my code (though I'm not sure where).
Interesting, I'll have to try that, the project has a LOT of the same = mixin template, and it worked for a while, but as the project has gotten= = bigger it's timed out... -- = Adam Wilson IRC: LightBender Project Coordinator The Horizon Project http://www.thehorizonproject.org/
Apr 17 2014
parent "Adam Wilson" <flyboynw gmail.com> writes:
On Thu, 17 Apr 2014 09:56:32 -0700, Adam Wilson <flyboynw gmail.com> wro=
te:

 On Wed, 16 Apr 2014 20:15:21 -0700, Kapps <opantm2+spam gmail.com> wro=
te:
 On Wednesday, 16 April 2014 at 22:45:45 UTC, Adam Wilson wrote:
 On Fri, 04 Apr 2014 07:35:18 -0700, Alexander Bothe  =
 <info alexanderbothe.com> wrote:

 On Monday, 31 March 2014 at 21:41:26 UTC, Th=E9o Bueno wrote:
 Mono-D seems pretty complete to me now, I was wondering if you are=
=
 thinking about new major features ?
http://mono-d.alexanderbothe.com/mono-d-v1-9-opindexopslice-overloa=
d-recognition-completion/
 :-)
I am getting a "Completion Timeout" and Xamarin Studio is lagging ha=
rd =
 when the completion window pops up... I didn't think my files were  =
 that big or complex...
I had a similar issue until I disabled mixin and template analysis. It seems to have been getting into an infinite loop somewhere in my code (though I'm not sure where).
Interesting, I'll have to try that, the project has a LOT of the same =
=
 mixin template, and it worked for a while, but as the project has gott=
en =
 bigger it's timed out...
I just checked my settings and it was already off. -- = Adam Wilson GitHub/IRC: LightBender Aurora Project Coordinator
Apr 17 2014
prev sibling parent reply "Tofu Ninja" <emmons0 purdue.edu> writes:
On Sunday, 30 March 2014 at 18:59:51 UTC, Alexander Bothe wrote:
 Hi everyone,

 just messed around with the MonoDevelop APIs and got some nice 
 editing-related feature working.

 http://mono-d.alexanderbothe.com/conditional-highlighting-v1-8/

 Hopefully it won't crash immediately or obstruct the displayed 
 code in any other wise..but let's see. :-P



 Cheers,
 Alex
Am i the only one who has never been able to get your website to load, i haven't been able to for months.
Apr 01 2014
parent reply "Alexander Bothe" <info alexanderbothe.com> writes:
On Tuesday, 1 April 2014 at 13:13:12 UTC, Tofu Ninja wrote:
 Am i the only one who has never been able to get your website to
 load, i haven't been able to for months.
I can do - and several others, too. http://www.downforeveryoneorjustme.com/mono-d.alexanderbothe.com *cough* Try a proxy like hidemyass or openthis.eu :P
Apr 01 2014
parent reply "#Coder" <dcoder outlook.com> writes:
I am getting following error when debugging a simple program and 
try to see a variable value in watch or immediate or locals 
window (OpenSuse Linux latest, latest MonoDevelop and latest 
Mono-D plug-in)


System.Reflection.TargetInvocationException: Exception has been 
thrown by the target of an invocation. ---> 
System.MissingMethodException: Method not found: 
'D_Parser.Resolver.ExpressionSemantics.ExpressionTypeEvaluation.EvaluateType'.
   at MonoDevelop.Debugger.Gdb.D.DGdbBacktrace.CreateVarObject 
(System.String exp) [0x00000] in <filename unknown>:0
   at MonoDevelop.Debugger.Gdb.GdbBacktrace.GetParameters (Int32 
frameIndex, Mono.Debugging.Client.EvaluationOptions options) 
[0x00000] in <filename unknown>:0
   at MonoDevelop.Debugger.Gdb.D.DGdbBacktrace.GetParameters 
(Int32 frameIndex, Mono.Debugging.Client.EvaluationOptions 
options) [0x00000] in <filename unknown>:0
   at MonoDevelop.Debugger.Gdb.GdbBacktrace.GetAllLocals (Int32 
frameIndex, Mono.Debugging.Client.EvaluationOptions options) 
[0x00000] in <filename unknown>:0
   at Mono.Debugging.Client.StackFrame.GetAllLocals 
(Mono.Debugging.Client.EvaluationOptions options) [0x00025] in 
/home/lx/Dokumente/Projects/monodevelop/main/external/debugger-libs/Mono.Debugging/Mono.Debugging.Client/StackFrame.cs:165
   at Mono.Debugging.Client.StackFrame.GetAllLocals () [0x00044] 
in 
/home/lx/Dokumente/Projects/monodevelop/main/external/debugger-libs/Mono.Debugging/Mono.Debugging.Client/StackFrame.cs:157
   at MonoDevelop.Debugger.LocalsPad.OnUpdateList () [0x0004b] in 
/home/lx/Dokumente/Projects/monodevelop/main/src/addins/MonoDevelop.Debugger/MonoDevelop.Debugger/LocalsPad.cs:61
   at MonoDevelop.Debugger.ObjectValuePad.<Initialize>m__0 
(System.Object , System.EventArgs ) [0x0000d] in 
/home/lx/Dokumente/Projects/monodevelop/main/src/addins/MonoDevelop.Debugger/MonoDevelop.Debugger/ObjectValuePad.cs:97
   at MonoDevelop.Ide.Gui.PadWindow.NotifyContentShown () 
[0x0003c] in 
/home/lx/Dokumente/Projects/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui/IPadContainer.cs:305
   at 
MonoDevelop.Ide.Gui.DefaultWorkbench+<AddPad>c__AnonStorey0.<>m__2 
(System.Object , System.EventArgs ) [0x00017] in 
/home/lx/Dokumente/Projects/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui/DefaultWorkbench.cs:1343
   at 
MonoDevelop.Components.Docking.DockItem.UpdateContentVisibleStatus 
() [0x00033] in 
/home/lx/Dokumente/Projects/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Components.Docking/DockItem.cs:384
   at MonoDevelop.Components.Docking.DockItem.SetupContent 
(System.Object ob, System.EventArgs args) [0x0009f] in 
/home/lx/Dokumente/Projects/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Components.Docking/DockItem.cs:211
   at (wrapper managed-to-native) 
System.Reflection.MonoMethod:InternalInvoke 
(System.Reflection.MonoMethod,object,object[],System.Exception&)
   at System.Reflection.MonoMethod.Invoke (System.Object obj, 
BindingFlags invokeAttr, System.Reflection.Binder binder, 
System.Object[] parameters, System.Globalization.CultureInfo 
culture) [0x00000] in <filename unknown>:0
   --- End of inner exception stack trace ---
   at System.Reflection.MonoMethod.Invoke (System.Object obj, 
BindingFlags invokeAttr, System.Reflection.Binder binder, 
System.Object[] parameters, System.Globalization.CultureInfo 
culture) [0x00000] in <filename unknown>:0
   at System.Reflection.MethodBase.Invoke (System.Object obj, 
System.Object[] parameters) [0x00000] in <filename unknown>:0
   at System.Delegate.DynamicInvokeImpl (System.Object[] args) 
[0x00000] in <filename unknown>:0
   at System.MulticastDelegate.DynamicInvokeImpl (System.Object[] 
args) [0x00000] in <filename unknown>:0
   at System.Delegate.DynamicInvoke (System.Object[] args) 
[0x00000] in <filename unknown>:0
   at GLib.Signal.ClosureInvokedCB (System.Object o, 
GLib.ClosureInvokedArgs args) [0x00000] in <filename unknown>:0
   at GLib.SignalClosure.Invoke (GLib.ClosureInvokedArgs args) 
[0x00000] in <filename unknown>:0
   at GLib.SignalClosure.MarshalCallback (IntPtr raw_closure, 
IntPtr return_val, UInt32 n_param_vals, IntPtr param_values, 
IntPtr invocation_hint, IntPtr marshal_data) [0x00000] in 
<filename unknown>:0
Apr 01 2014
parent reply "Alexander Bothe" <info alexanderbothe.com> writes:
On Wednesday, 2 April 2014 at 05:06:31 UTC, #Coder wrote:
 I am getting following error when debugging a simple program 
 and try to see a variable value in watch or immediate or locals 
 window (OpenSuse Linux latest, latest MonoDevelop and latest 
 Mono-D plug-in)


 System.Reflection.TargetInvocationException: Exception has been 
 thrown by the target of an invocation. ---> 
 System.MissingMethodException: Method not found:
k I've fixed it in v0.2.7
Apr 01 2014
parent "#coder" <coder outlook.com> writes:
On Wednesday, 2 April 2014 at 05:26:21 UTC, Alexander Bothe wrote:
 On Wednesday, 2 April 2014 at 05:06:31 UTC, #Coder wrote:
 I am getting following error when debugging a simple program 
 and try to see a variable value in watch or immediate or 
 locals window (OpenSuse Linux latest, latest MonoDevelop and 
 latest Mono-D plug-in)


 System.Reflection.TargetInvocationException: Exception has 
 been thrown by the target of an invocation. ---> 
 System.MissingMethodException: Method not found:
k I've fixed it in v0.2.7
Works now. Thanks!!!
Apr 02 2014