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

[LS] Reported errors on caps #284

Open
bjartek opened this issue Feb 6, 2024 · 1 comment
Open

[LS] Reported errors on caps #284

bjartek opened this issue Feb 6, 2024 · 1 comment
Labels
Bug The issue represents a bug, malfunction, regression Feedback

Comments

@bjartek
Copy link

bjartek commented Feb 6, 2024

Current Behavior

│  mismatched types. expected `Capability<&{A.ee82856bf20e2aa6.FungibleToken.Receiver}>`, got `Capability<&{S.FungibleToken.FungibleToken.Receiver}>` [51, 52] //when using import "FungibleToken"

│  mismatched types. expected `Capability<&{A.ee82856bf20e2aa6.FungibleToken.Receiver}>`, got `Capability<&{S./my/local/path/contracts/standard/FungibleToken.cdc.FungibleToken.Receiver}>` [147, 48] when using file based import import FungibleToken from "../bla/bla/FungibleToken.cdc"

Expected Behavior

This is not an error

Steps To Reproduce

Open this file with new ls via flow-cli in feature/stable-cadence. I have setup cadence-lsp in Nvim with https://github.com/findonflow/find/tree/feat/stable-cadence

 
 Language client log: /Users/bjartek/.local/state/lazyvim/lsp.log
 Detected filetype:   cdc
 
 1 client(s) attached to this buffer: 
 
 Client: cadence (id: 1, bufnr: [16])
 	filetypes:       cdc
 	autostart:       true
 	root directory:  /Users/bjartek/dev/find
 	cmd:             /Users/bjartek/bin/flow cadence language-server
 
 Configured servers list: gopls, cadence, jsonls, yamlls, lua_ls, tsserver

the flow binary here is a self built one from HEAD of feature/stable-cadence

Environment

- Cadence version: latest stable cadence
- Network: emulator
@bjartek bjartek added Bug The issue represents a bug, malfunction, regression Feedback labels Feb 6, 2024
@bjartek
Copy link
Author

bjartek commented Feb 6, 2024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug The issue represents a bug, malfunction, regression Feedback
Projects
None yet
Development

No branches or pull requests

1 participant