GithubHelp home page GithubHelp logo

Comments (11)

skovhus avatar skovhus commented on August 25, 2024

Thanks for creating this issue. We are working on better error highlighting based on an improved version of the grammar.

We can actually improve this a lot by looking if a node isMissing or hasError.

from bash-language-server.

skovhus avatar skovhus commented on August 25, 2024

@achekulaev can you do a:
bash-language-server --version

The latest version is 1.5.2 where I don't see the mentioned syntax error.

from bash-language-server.

achekulaev avatar achekulaev commented on August 25, 2024
ยง bash-language-server --version
Version is 1.5.2

ยง uname -a
Darwin EPUSPRIW1129 17.6.0 Darwin Kernel Version 17.6.0: Tue May  8 15:22:16 PDT 2018; root:xnu-4570.61.1~1/RELEASE_X86_64 x86_64

VisualStudio Code Version 1.26.1 (1.26.1)

Bash IDE 1.3.2

from bash-language-server.

achekulaev avatar achekulaev commented on August 25, 2024

Please tell if there is anything else that will help to resolve the issue.

from bash-language-server.

skovhus avatar skovhus commented on August 25, 2024

Until we improve the parser you disable the error from showing up by setting the config parameter: bashIde.highlightParsingErrors.

With the latest version you still see the two errors reported above?

from bash-language-server.

achekulaev avatar achekulaev commented on August 25, 2024

Yes for me the error is still there.

from bash-language-server.

Yanpas avatar Yanpas commented on August 25, 2024

Same issue applies to

if ((${#aaa[@]} == 0)); then
fi

from bash-language-server.

Yanpas avatar Yanpas commented on August 25, 2024

There are seem to be updates to grammar
tree-sitter/tree-sitter-bash#32

from bash-language-server.

skovhus avatar skovhus commented on August 25, 2024

@Yanpas ๐Ÿ‘

Just added the upgrade of the grammar to #78

from bash-language-server.

skovhus avatar skovhus commented on August 25, 2024

@achekulaev Please reopen if this still is a problem after upgrading the bash-language-server

from bash-language-server.

Yanpas avatar Yanpas commented on August 25, 2024

I face the same issues still because of complex bash grammar
(Function body range is parsed incorrectly) tree-sitter/tree-sitter-bash#35
(Error while parsing stream redirection inside dollar-parentheses) tree-sitter/tree-sitter-bash#34

from bash-language-server.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.