Comments (2)
As workaround for this problem declare
could be used.
(declare myvar)
(defstate myvar
...
from calva.
You are running into a limitation of the Joker linter. It doesn't do a full scan of all files and does not recognize defstate
(in your case) as a macro. But all is not lost! To get rid of the error messages, add defstate
to Joker's list of known macros. Create a .joker
file somewhere in the path from the root of your project to where you are using the macro (I prefer to have it in the project root), and add:
{:known-macros [some-ns/defstate]}
Replace some-ns
with whatever namespace you are requiring the macro from. Read more about Joker's linter mode here: https://github.com/candid82/joker#linter-mode
Please let me know if this solves your issue, and close the issue if so.
from calva.
Related Issues (20)
- REPL History commands do not work in a cleared window
- Calva fails to set the focus on the output repl windown, when toggling using the ```@command:calva.showResultOutputDestination```. HOT 2
- [Windows] Jack-in sometimes fails from quoting issues
- Jump to files are read-only HOT 2
- Jack-in process exited on main-opts "-e" option HOT 4
- Doc string from "dynamic interned vars" is not shown in completion details HOT 4
- Error: "spawn EINVAL" on vscode with shadow-cljs - CVE-2024-27980 related? HOT 1
- calva evaluate current file - surprise HOT 1
- help strings not formatted as expected HOT 1
- Extend "Refresh Changed Namespaces" to accept optional parameters exposed by cider-nrepl HOT 7
- clojureLspPath only read at opening of the window
- Verify Clojure-LSP download using a checksum HOT 1
- jack-in support for the Basilisp programming language
- HTML->Hiccup fails on style attribute strings where the entries do not have whitespace
- bad calva.autoEvaluateCode settings causes errors during activation HOT 1
- Incorrect squiggle with macro quotes HOT 2
- Start Getting Started/Quick Start REPLs in a proper VS Code foldered window
- Write clj-kondo and lsp folders to clojure project workspaces **exclusively** HOT 5
- Add command for create a minimal Clojure project
- Getting Started REPL fails when there is no folder open HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from calva.