Can someone confirm/disconfirm this?
- Start Mathematica 11, blank notebook, blank init.m
- Start the Debugger/make sure it is running. It doesn't seem to matter whether you have the Stack and Breakpoints window open too or not. The "Break at ... []" checkboxes can also be checked or not. But uncheck them for now.
Enter
a::b
Place the cursor at any of the locations indicated with | in the following:
a|:|:|b
Press shift enter.
The message
Message::name: Message name MessageName[a,b] is not of the form symbol::name or symbol::name::language.
will be displayed.
This seems to have other ways of triggering that seem pretty much random, but this method seems reliable.
Do I maybe have some state left from version 10.4 that causes this or does this happen for other people too?
$Version
"11.0.0 for Microsoft Windows (64-bit) (July 28, 2016)"
According to the documentation, there are two ways to define a message, which I implement as:
ClearAll["sym*"];
(*1*) sym1::name1 = "Message 1.";
(*2*) MessageName[sym2, "name2"] = "Message 2.";
When I evaluate these with debugger OFF, no errors or messages occur.
When I turn debugger ON, restart the kernel, and then evaluate these, the first approach generates an error
"Message name MessageName[sym1,name1] is not of the form symbol::name or symbol::name::language"
but the second approach does not. I'm running
$Version
(*"11.1.0 for Microsoft Windows (64-bit) (March 13, 2017)"*)
Can anyone confirm this? Can anyone see anything incorrect with what I'm doing here? Is this a bug in the debugger?
Maddeningly, the error has been elusively inconsistent. The kernel restart is often NOT necessary to generate the error, but sometimes it has been.