Wrong version of .cs file

Questions about MultiCharts .NET and user contributed studies.
drolles
Posts: 50
Joined: 03 Dec 2012
Has thanked: 4 times

Wrong version of .cs file

Postby drolles » 25 Dec 2012

Hi,

The PowerLanaguge editor appears to be picking up the wrong version of an edited file.

I’m playing with getting this working: viewtopic.php?f=19&t=11586

And I’ve been editing the file in VS2008. When I compile in VS2008 I get a build successful.

I then open the PowerLanaguge Editor and it is showing a cross and saying that the file is not compiled (see screen shot).
edited file not current.JPG
(118.32 KiB) Downloaded 1203 times
If I open the file in the PowerLanguage Editor is shows the old version of the file (i.e. with no changes).

Something happening with the MC Editor caching the file then not compiling it properly...

Thanks and regards,

drolles

drolles
Posts: 50
Joined: 03 Dec 2012
Has thanked: 4 times

futher tests

Postby drolles » 25 Dec 2012

Hi,

I just did some additional tests here.

I created a new Signal (called testsig), it seem to compile fine.

I think edited in VS2008, the edits were not picked up.

I then closed all instances of MC (PowerEditor, Main, QuoteManager, Backtester), then reopened the file. It showed up the edits.

Again, I think MC is caching the old version somewhere.

drolles

drolles
Posts: 50
Joined: 03 Dec 2012
Has thanked: 4 times

more suspicious behaviour

Postby drolles » 25 Dec 2012

Hi,

I’ve not seen this notification before in VS.

Just FYI as it might be related.

drolles
Attachments
edited file not current - other errors.JPG
(29.01 KiB) Downloaded 1200 times

User avatar
Henry MultiСharts
Posts: 9165
Joined: 25 Aug 2011
Has thanked: 1264 times
Been thanked: 2957 times

Re: Wrong version of .cs file

Postby Henry MultiСharts » 27 Dec 2012

Hello Drolles,

Please come to our live chat tomorrow 6.30am-10am EST to investigate this behavior with our .Net specialist.

User avatar
Henry MultiСharts
Posts: 9165
Joined: 25 Aug 2011
Has thanked: 1264 times
Been thanked: 2957 times

Re: Wrong version of .cs file

Postby Henry MultiСharts » 28 Dec 2012

The problem has been analyzed during the live chat session.
It was suggested to update to MultiCharts .Net 8.1 beta 1 to fix the issue.

drolles
Posts: 50
Joined: 03 Dec 2012
Has thanked: 4 times

Re: Wrong version of .cs file

Postby drolles » 30 Dec 2012

Henry,

Thanks for your continued help on this.

To provide you an update from my end...

I’m now tested this on my Dev PC. It is running MC 8.0 and VS 2010. It appears to be working with the MC PB. However, the main MC window, I’m not sure of the expected behaviour here.

Should it force an update if the signal is applied to a chart? If not, is there a short cut to reload from source?

Thanks,

drolles

User avatar
Henry MultiСharts
Posts: 9165
Joined: 25 Aug 2011
Has thanked: 1264 times
Been thanked: 2957 times

Re: Wrong version of .cs file

Postby Henry MultiСharts » 09 Jan 2013

Should it force an update if the signal is applied to a chart? If not, is there a short cut to reload from source?
That is correct, the study would be updated, recompiled and recalculated on the chart.
The PowerLanaguge editor appears to be picking up the wrong version of an edited file.
We have reproduced this behaviour in our environment. Our developers are analyzing this situation.

User avatar
Henry MultiСharts
Posts: 9165
Joined: 25 Aug 2011
Has thanked: 1264 times
Been thanked: 2957 times

Re: Wrong version of .cs file

Postby Henry MultiСharts » 31 Jan 2013

This issue will be fixed in MultiCharts .NET 8.5 Release.


Return to “MultiCharts .NET”