IDE selecting wrong includes
Posted: Thu Mar 17, 2016 12:01 pm
There appears to be a bug in the IDE relating to includes.
I've been trying to fix a bug in some code and was mystified why a change I was making wasn't making any difference.
I'd opened an include by clicking on the entry in the Code Explorer. I made some changes to that file, went back to the main code and compiled it. Took me a while to realise the changes I was making in the included file weren't being applied. I looked closer and found that the include that Swordfish had opened from the Code Explorer wasn't the one which the compiler was using which of course explained the problem. Opening the include manually and making the changes there fixed the issue.
I wonder if this is related to the changes made a while back to the search order for includes?
In my case I've copied my Swordfish folder (including the UserLibrary folder) to my desktop as the 'My Documents' folder is actually networked and due to the speed of the network compilation was taking forever. The compiler is correctly using the UserLibrary folder in the Swordfish folder on the desktop but the IDE opens the file from the UserLibrary folder in My Documents.
I've been trying to fix a bug in some code and was mystified why a change I was making wasn't making any difference.
I'd opened an include by clicking on the entry in the Code Explorer. I made some changes to that file, went back to the main code and compiled it. Took me a while to realise the changes I was making in the included file weren't being applied. I looked closer and found that the include that Swordfish had opened from the Code Explorer wasn't the one which the compiler was using which of course explained the problem. Opening the include manually and making the changes there fixed the issue.
I wonder if this is related to the changes made a while back to the search order for includes?
In my case I've copied my Swordfish folder (including the UserLibrary folder) to my desktop as the 'My Documents' folder is actually networked and due to the speed of the network compilation was taking forever. The compiler is correctly using the UserLibrary folder in the Swordfish folder on the desktop but the IDE opens the file from the UserLibrary folder in My Documents.