Author Topic: Serious v2.0.1.3 bug keeps files from being saved.  (Read 2646 times)

DanW

  • Community Member
  • Posts: 28
  • Hero Points: 2
Serious v2.0.1.3 bug keeps files from being saved.
« on: February 11, 2016, 07:19:14 pm »
I had just compiled the code and a bug was shown in the build window.
The bug was in a header (.H file) at line 37.

Here's what the build window showed:
 In file included from ../../src/startup/File.cpp:37:
f:\\workspace\\sw\\product\\platform\\common\\system_scheduler\\CSystemSchedulerIc.h:51: ANSI C++ forbids declaration `foo' with no type
*** Errors occurred during this build ***

Then if I click on the error line      "In file included from ../../src/startup/File.cpp:37:"    in the build window
It opens the file but the filename has f:\\ on the start so it can't be saved.


Lee

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 1234
  • Hero Points: 124
Re: Serious v2.0.1.3 bug keeps files from being saved.
« Reply #1 on: February 11, 2016, 07:47:13 pm »
Is the F:\ drive an actual drive or network/mapped drive?  Is that the actual location of the file?

EDIT:  Nevermind, I can replicate this, I will try to figure out what exactly is going on. 
« Last Edit: February 11, 2016, 08:15:04 pm by Lee »

DanW

  • Community Member
  • Posts: 28
  • Hero Points: 2
Re: Serious v2.0.1.3 bug keeps files from being saved.
« Reply #2 on: February 11, 2016, 08:36:47 pm »
Thanks!   :)

Lee

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 1234
  • Hero Points: 124
Re: Serious v2.0.1.3 bug keeps files from being saved.
« Reply #3 on: February 12, 2016, 03:54:07 pm »
I was able determine the cause for this issue and have a fix in mind for this.  The bad news is that it doesn't appear hotfixable at this time and will have to go into the next release.  It is an annoyance, but you can remove the extra backslash after the drive letter in the Save as... prompt and you are able to at least save the file in the correct location.

DanW

  • Community Member
  • Posts: 28
  • Hero Points: 2
Re: Serious v2.0.1.3 bug keeps files from being saved.
« Reply #4 on: February 17, 2016, 08:19:37 pm »
When I tried "save as", I got the message:
You already have a buffer with the name:   ....

It gets opened when I click the error as \\filepath\filename.h. 
\filepath\filename.h  was already open and double clicking the error just opens a new window starting with \\
 :(

DanW

  • Community Member
  • Posts: 28
  • Hero Points: 2
Re: Serious v2.0.1.3 bug keeps files from being saved.
« Reply #5 on: February 26, 2016, 07:06:39 pm »
Any news ? 
Is there a script I can edit in my install to fix this ?


Thanks
Dan.

Lee

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 1234
  • Hero Points: 124
Re: Serious v2.0.1.3 bug keeps files from being saved.
« Reply #6 on: February 26, 2016, 07:14:00 pm »
Yes, there is a workaround available in the latest hotfix.  The link to the download is here:

https://customer.slickedit.com/index.php?option=com_content&view=article&id=316.

Please download and give it a try.

DanW

  • Community Member
  • Posts: 28
  • Hero Points: 2
Re: Serious v2.0.1.3 bug keeps files from being saved.
« Reply #7 on: February 26, 2016, 10:28:46 pm »
That fixed the \\ filename bug.....  Buuuut......   
(and don't ya just hate when they say buuuut)

It broke the references.
Now clicking on a class member in the header does not show the cpp references.  :(

If I click a data member in the class function, it correctly shows the declaration in the header.
If I then click the same member variable in the header it will not show the references in the cpp. 

« Last Edit: February 29, 2016, 03:27:31 pm by DanW »

DanW

  • Community Member
  • Posts: 28
  • Hero Points: 2
Re: Serious v2.0.1.3 bug keeps files from being saved.
« Reply #8 on: March 02, 2016, 07:07:44 pm »
Any news on the bug in the hotfix. 
Very disappointed.  References were fixed and now they are broken again. ::)

Dennis

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 2605
  • Hero Points: 396
Re: Serious v2.0.1.3 bug keeps files from being saved.
« Reply #9 on: March 02, 2016, 11:51:54 pm »
I doubt that Lee's fix has anything to do with the problem you are having with references.  There are some other fixes in the hot fix for references, maybe that broke your use-case, but without an example I really can't track down what is happening vs. what you expect to happen.  I tested a case similar to what you describe and saw no problems.  What do you have the "Look in:" set to for references?

DanW

  • Community Member
  • Posts: 28
  • Hero Points: 2
Re: Serious v2.0.1.3 bug keeps files from being saved.
« Reply #10 on: March 23, 2016, 09:13:57 pm »
Attached is a sample program.
Right click on the data member in the .H file and search for references.  You will only find the one in the header.
Next, go to the cpp and right mouse click the variable in the constructor. 
Oh look... you find both! (one in .H and one in .CPP)

So why doesn't references work from the header?
This broke with the hot fix listed below.


SlickEdit Pro 2015 (v20.0.1.3 64-bit)
Build Date: February 24, 2016
Emulation: Visual C++ 6

OS: Windows 8 x64
OS Version: 6.02.9200 
Memory: 75% Load, 9284MB/12271MB Physical, 7630MB/24559MB Page File, 387MB/134217727MB Virtual
Shell Information: C:\WINDOWS\system32\cmd.exe /q
Screen Size: 1920 x 1080, 1920 x 1080

Project Type: Gnuc
Language: .cpp (C/C++)
Encoding: Automatic

Installation Directory: C:\Program Files\SlickEdit Pro 20.0.1\ (non-removable drive,NTFS,49593MB free)
Configuration Directory: C:\My Stuff\dwinsor\Documents\My SlickEdit Config\20.0.1\ (non-removable drive,NTFS,49593MB free)
Migrated from: C:\My Stuff\dwinsor\Documents\My SlickEdit Config\20.0.0\

Hotfixes:
C:\My Stuff\dwinsor\Documents\My SlickEdit Config\20.0.1\hotfixes\hotfix_se2001_5_cumulative.zip (Revision: 5)



« Last Edit: March 23, 2016, 10:00:42 pm by DanW »

DanW

  • Community Member
  • Posts: 28
  • Hero Points: 2
Re: Serious v2.0.1.3 bug keeps files from being saved.
« Reply #11 on: March 23, 2016, 09:22:01 pm »
tried hotfix 6 and it does the same thing  :(

Mike

  • SlickEdit Team Member
  • Community Member
  • *
  • Posts: 99
  • Hero Points: 20
Re: Serious v2.0.1.3 bug keeps files from being saved.
« Reply #12 on: March 24, 2016, 02:05:30 pm »
This update is in case anyone else runs across this latter issue, where the references seem broken.

There is a "Look In:" field in the References tool window which prior to the hot fix had inconsistent behavior when <Current File> was the value.

After loading the hot fix, make sure that the "Look in:" field of the References tool window is set to <All Tag Files> or <Workspace>, if you want to see a greater scope of tags than the current file.
« Last Edit: March 24, 2016, 02:07:12 pm by Mike »