Author Topic: Message box keeps popping up with 21.0.3  (Read 296 times)

bengle

  • Senior Community Member
  • Posts: 120
  • Hero Points: 4
Message box keeps popping up with 21.0.3
« on: June 13, 2017, 05:53:27 pm »
After upgrading to SlickEdit 21.0.3, the following message box pops up over and over, when I open my Visual Studio 2017 solution:

Unable to determine Visual Studio year from version=15.0

It is very annoying.  I think it pops up once for each project in the solution, which would be 30 times.

Any help in resolving this would be greatly appreciated.

Clark

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 3664
  • Hero Points: 238
Re: Message box keeps popping up with 21.0.3
« Reply #1 on: June 15, 2017, 08:01:43 pm »
Please post a sample solution and project. No source files needed.

Mike

  • SlickEdit Team Member
  • Community Member
  • *
  • Posts: 89
  • Hero Points: 19
Re: Message box keeps popping up with 21.0.3
« Reply #2 on: June 16, 2017, 02:28:02 pm »
Unfortunately, SlickEdit 2016 does not support Visual Studio 2017 solutions.

SlickEdit 2017 (v22) will support the latest Visual Studio release and will be released later this year.

erik

  • Junior Community Member
  • Posts: 3
  • Hero Points: 0
Re: Message box keeps popping up with 21.0.3
« Reply #3 on: July 14, 2017, 11:28:01 pm »
Is there a hotfix or anything that will suppress the popups? I'm accumulating more 2017 solutions as time goes on and the repeated messages are getting more than a little annoying. "later this year" seems like a lot of popups between now and then ::) thanks!

Graeme

  • Senior Community Member
  • Posts: 1921
  • Hero Points: 221
Re: Message box keeps popping up with 21.0.3
« Reply #4 on: July 15, 2017, 12:00:04 am »
Load the following code in a macro file of your own but comment out the call to message box.
If you don't have a macro file, record a trivial macro then open vusrmac.e from your config folder.  To load it use the load command on the macro menu.  In wkspace.e in the installation macros folder there is GetCompilerPackage() that also has message boxes.  To fix that you need to modify wkspace.e and reload it.

Code: [Select]
_str _visualStudioVersionToYear(_str Version) {
   if (Version>=15) {
      _message_box('Unable to determine Visual Studio year from version='Version);
      return '2015';
   } else if (Version >=14) {
      return '2015';
   } else if (Version >=12) {
      return '2013';
   } else if (Version == 11) {
      return '2012';
   } else if (Version == 10) {
      return '2010';
   } else if (Version >= 9) {
      return '2008';
   } else if (Version >=8) {
      return '2005';
   } else if (Version >=7) {
      return '2003';
   } else {
      _message_box('Unable to determine Visual Studio year from version='Version);
      return '2003';
   }
}

erik

  • Junior Community Member
  • Posts: 3
  • Hero Points: 0
Re: Message box keeps popping up with 21.0.3
« Reply #5 on: July 15, 2017, 02:15:50 am »
Thank you Graeme! That worked perfectly.