question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Syntax parsing leads to hang of IDEA

See original GitHub issue

This part of code immediately leads to hang of IDEA(when there is trailing } ). It is not possible to do something after it, so I can’t attach exception message and stacktrace.

use std::Vec;

mod BlockArchiver;
    pub fn compute_frequency_table(data : &Vec) -> [u64; 256] {
        let mut byte_frequencies : [u64; 256] = [0; 256];
        for byte in data {
            byte_frequencies[byte as usize] += 1;
        }
        return byte_frequencies;
    }

}

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:8 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
sirglcommented, Jun 22, 2016

It is my first day with rust, don’t be strict 😃 But I think, IDE should resist such kind of strange behavior of some users

0reactions
matkladcommented, Jun 22, 2016

I am trying to be helpful 😃 It took me a lot of time to wrap my head around Rust module and crate system, they are indeed complicated.

And of course the IDE should resist this, working on the fix right now 😉

Read more comments on GitHub >

github_iconTop Results From Across the Web

Parsing Expressions - Crafting Interpreters
Recursive descent is considered a top-down parser because it starts from the top or outermost grammar rule (here expression ) and works its...
Read more >
Leveling Up One's Parsing Game With ASTs | by Vaidehi Joshi
The work of turning tokens into a parse tree is also called parsing, and is known as the syntax analysis phase. The syntax...
Read more >
Parsing expression grammar - Wikipedia
In computer science, a parsing expression grammar (PEG) is a type of analytic formal grammar, i.e. it describes a formal language in terms...
Read more >
Antlr Preview Freezes Intellij but no crash · Issue #393 - GitHub
Hi, usually this is because the grammar is very inefficient at parsing the input, which causes the IDE to freeze because parsing is...
Read more >
Parsing Expressions by Recursive Descent
The idea of recursive-descent parsing is to transform each nonterminal of a grammar into a subroutine that will recognize exactly that nonterminal in...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found