Skip to content

Bugfix/emcb 106 bugfixes and improvements#79

Merged
betzrhodes merged 1 commit intoelectricimp:developfrom
etn-corp:bugfix/EMCB-106-bugfixes-and-improvements
Mar 18, 2020
Merged

Bugfix/emcb 106 bugfixes and improvements#79
betzrhodes merged 1 commit intoelectricimp:developfrom
etn-corp:bugfix/EMCB-106-bugfixes-and-improvements

Conversation

@vadim-galeev
Copy link
Contributor

@vadim-galeev vadim-galeev commented Mar 7, 2020

Fixed bug in FileCache related to context variable. includePathParsed variable was getting a wrong value while reading a cached file, now it's fixed.

includePathParsed variable was taking a wrong value if the readable file was cached, because the string what had been moved to another place was after this place (in this place includePath is changing).
It is related to context, because fileCache.read() returns includePathParsed together with the context, and includePathParsed then becomes a part of context. See here.
The bug was fixed by moving the string to another place.

A test is added into context.spec.js to check this issue. Some log messages changed.

@vadim-galeev vadim-galeev force-pushed the bugfix/EMCB-106-bugfixes-and-improvements branch from e6fa716 to b672ce1 Compare March 12, 2020 11:07
@betzrhodes betzrhodes merged commit 2080a0f into electricimp:develop Mar 18, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants