Skip to content

[Bug]: Formula Environments are Not Distinguished by slicer #2030

@emstruong

Description

@emstruong

What happened?

Using the VS Code version of flowr for slicing, the slicer does not show that bill_len in lm() refers to a variable in penguins and not the 'fake' bill_len just before it.

penguins

bill_len <- "Fake bill_len"

lm(bill_len ~ bill_dep , data = penguins)

Perhaps this is related to #2005 ?

What version of R do you have installed?

4.5.1

What version of flowR did you use?

v2.6.0 (Oct 13, 2025)

Relevant log output

flowR version: 2.6.0  
Extension version: 0.6.3 (Production mode)  
VS Code version: 1.105.0 (web false)  
Session: internal (active)  
OS: linux  
Extension config:  

{
  "server": {
    "host": "localhost",
    "port": 1042,
    "autoConnect": false,
    "connectionType": "auto"
  },
  "r": {
    "executable": "",
    "engine": "tree-sitter"
  },
  "style": {
    "sliceOpacity": 0.25,
    "sliceDisplay": "text",
    "tokenBackgroundColor": "rgba(0, 127, 0, 0.5)",
    "onlyHighlightActiveSelection": false,
    "mermaidMaxTextLength": 500000
  },
  "tree-sitter": {
    "timeout": 60000,
    "lax": true
  },
  "slice": {
    "automaticReconstruct": true,
    "revisitThreshold": 12
  },
  "dependencyView": {
    "autoReveal": 10,
    "updateType": "adaptive",
    "updateInterval": 10,
    "adaptiveCharacterLimit": 5000,
    "cacheLimit": 5,
    "keepOnError": true,
    "query": {
      "ignoreDefaults": false,
      "overrides": {
        "libraryFunctions": [],
        "sourceFunctions": [],
        "readFunctions": [],
        "writeFunctions": []
      },
      "enabledCategories": [
        "library",
        "read",
        "source",
        "write",
        "visualize"
      ]
    }
  },
  "verboseLog": false,
  "debug": {
    "flowrLogLevel": "Error"
  },
  "errorMessage": {
    "Timer": 5000
  },
  "config": {
    "ignoreSourceCalls": false,
    "solver": {
      "variableHandling": "alias",
      "pointerTracking": false,
      "resolveSource": {
        "ignoreCapitalization": true,
        "inferWorkingDirectory": "active-script",
        "searchPath": [],
        "dropPaths": "once"
      }
    },
    "overwriteBuiltIns": {
      "loadDefaults": true,
      "definitions": []
    }
  },
  "linter": {
    "enabledRules": [
      "deprecated-functions",
      "file-path-validity",
      "seeded-randomness",
      "absolute-file-paths",
      "unused-definitions",
      "dataframe-access-validation",
      "dead-code",
      "useless-loop"
    ],
    "ruleConfigs": {},
    "updateType": "adaptive",
    "updateInterval": 10,
    "adaptiveCharacterLimit": 5000
  }
}

Meta Information

  • The issue is urgent
  • I used flowR as a docker image

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions