Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when erasing two consecutive 'fn' tokens. #31

Closed
DanielRosenwasser opened this issue Sep 13, 2014 · 1 comment · Fixed by #33
Closed

Error when erasing two consecutive 'fn' tokens. #31

DanielRosenwasser opened this issue Sep 13, 2014 · 1 comment · Fixed by #33

Comments

@DanielRosenwasser
Copy link

Take the following code:

fn main() {
    println!("Hello world!");
}

fn fn 

Now erase the last line and an error should pop up in VS asking to check [MyVSPath]/ActivityLog.xml, which contains the following entry occurring last:

  <entry>
    <record>840</record>
    <time>2014/09/12 21:28:51.934</time>
    <type>Error</type>
    <source>Editor or Editor Extension</source>
    <description>System.ArgumentOutOfRangeException: Specified argument was out of the range of valid values.&#x000D;&#x000A;Parameter name: index&#x000D;&#x000A;   at Microsoft.VisualStudio.Text.Implementation.SimpleStringRebuilder.get_Item(Int32 index)&#x000D;&#x000A;   at Microsoft.VisualStudio.Text.Implementation.TextSnapshot.get_Item(Int32 position)&#x000D;&#x000A;   at ArkeIndustries.VisualRust.RustBraceMatcher.&lt;GetTags&gt;d__6.MoveNext()&#x000D;&#x000A;   at Microsoft.VisualStudio.Text.Tagging.Implementation.TagAggregator`1.&lt;GetTagsForBuffer&gt;d__5.MoveNext()</description>
  </entry>
vosen added a commit to vosen/VisualRust that referenced this issue Sep 13, 2014
@vosen vosen closed this as completed in #33 Sep 13, 2014
@vosen
Copy link
Member

vosen commented Sep 13, 2014

Thanks, should be fixed in the repo now. If you are using VS Gallery, it'll take some time until new version will land there.

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 a pull request may close this issue.

2 participants