Error visual studio + tpl + smarty
Posted: March 22nd, 2018, 9:51 am
Hello Devsense,
I am writing to enquire about a problem with the PHP extension for Visual studio.
I'm using Visual Studio Community 2017, updated to the latest version with Smarty, PHP Template Engine. I'm using the templates with extension .tpl
My problem is when a.tpl file is very big, we are talking about 800 lines in the same file. Editing is tremendously slow, every change or command that I write takes a long of time to be completed. When it detects the opening bracket "{", stop and I must wait around 2 or 3 seconds. If I want to write a word, for example: console(), it takes about 15 seconds to write the whole word.
I Can't Work Like This.
On the other hand, editing small .tpl files, I have no problem with that. Not even with huge .php files, or any another extension.
I don't have any Smarty extension installed in Visual Studio. Can I fix this problem? With any change in the extension or in Visual Studio?
Thank you in advance,
VĂctor.
error vs:
I am writing to enquire about a problem with the PHP extension for Visual studio.
I'm using Visual Studio Community 2017, updated to the latest version with Smarty, PHP Template Engine. I'm using the templates with extension .tpl
My problem is when a.tpl file is very big, we are talking about 800 lines in the same file. Editing is tremendously slow, every change or command that I write takes a long of time to be completed. When it detects the opening bracket "{", stop and I must wait around 2 or 3 seconds. If I want to write a word, for example: console(), it takes about 15 seconds to write the whole word.
I Can't Work Like This.
On the other hand, editing small .tpl files, I have no problem with that. Not even with huge .php files, or any another extension.
I don't have any Smarty extension installed in Visual Studio. Can I fix this problem? With any change in the extension or in Visual Studio?
Thank you in advance,
VĂctor.
error vs:
- Code: Select all
<entry>
<record>2143</record>
<time>2018/03/22 09:36:39.179</time>
<type>Error</type>
<source>Editor or Editor Extension</source>
<description>System.ArgumentException: The specified SnapshotPoint or SnapshotSpan is on a different ITextSnapshot than this SnapshotSpan.
 en Microsoft.VisualStudio.Text.SnapshotSpan.EnsureSnapshot(ITextSnapshot requestedSnapshot)
 en Microsoft.VisualStudio.Text.SnapshotSpan.IntersectsWith(SnapshotSpan snapshotSpan)
 en Devsense.VisualStudio.Smarty.Errors.SmartySyntaxReporter.<>c__DisplayClass0_0.<GetErrors>b__0(ITagSpan`1 e)
 en System.Linq.Enumerable.WhereListIterator`1.MoveNext()
 en System.Collections.Generic.List`1.InsertRange(Int32 index, IEnumerable`1 collection)
 en Devsense.VisualStudio.Smarty.Errors.SmartySyntaxReporter.GetTags(NormalizedSnapshotSpanCollection spans)
 en Microsoft.VisualStudio.Text.Tagging.Implementation.TagAggregator`1.<GetTagsForBuffer>d__39.MoveNext()
--- Fin del seguimiento de la pila de la ubicación anterior donde se produjo la excepción ---
 en Microsoft.VisualStudio.Telemetry.WindowsErrorReporting.WatsonReport.GetClrWatsonExceptionInfo(Exception exceptionObject)</description>
</entry>