diff --git a/.github/workflows/rake.yml b/.github/workflows/rake.yml index 6263de92..a179d670 100644 --- a/.github/workflows/rake.yml +++ b/.github/workflows/rake.yml @@ -68,7 +68,13 @@ jobs: with: ruby-version: ${{ matrix.ruby }} bundler: ${{ env.BUNDLER_VER }} - bundler-cache: true + # Rice gem has issues with bundler cache + # more info https://github.com/lutaml/expressir/runs/2097658383?check_suite_focus=true#step:7:2126 + # but it is not the only issue + bundler-cache: false + + - name: Bundle + run: bundle install --jobs 4 --retry 3 - name: Process cache uses: actions/cache@v3 @@ -98,10 +104,9 @@ jobs: - name: Setup Ruby uses: ruby/setup-ruby@master with: - ruby-version: '3.0' - # bundler-cache: true important to not use cache because it leads to "cannot find -lrice" - # more info https://github.com/lutaml/expressir/runs/2097658383?check_suite_focus=true#step:7:2126 + ruby-version: '3.1' bundler: ${{ env.BUNDLER_VER }} + bundler-cache: false - name: Bundle run: bundle install --jobs 4 --retry 3 @@ -130,9 +135,8 @@ jobs: - name: Setup Ruby uses: ruby/setup-ruby@master with: - ruby-version: '3.0' - # bundler-cache: true important to not use cache because it leads to "cannot find -lrice" - # more info https://github.com/lutaml/expressir/runs/2097658383?check_suite_focus=true#step:7:2126 + ruby-version: '3.1' + bundler-cache: false bundler: ${{ env.BUNDLER_VER }} - name: Bundle diff --git a/lib/expressir/express/parser.rb b/lib/expressir/express/parser.rb index 54911885..bc1f7a2d 100644 --- a/lib/expressir/express/parser.rb +++ b/lib/expressir/express/parser.rb @@ -39,7 +39,6 @@ def self.from_file(file, skip_references: nil, include_source: nil) # so in this class we keep those C++ structure marked for GC so they are not freed @parser = ::ExpressParser::ParserExt.new(file.to_s) @parse_tree = @parser.syntax() - @visitor = Visitor.new(@parser.tokens, include_source: include_source) @repository = @visitor.visit(@parse_tree)