Comments (3)
Hi. Sorry for not coming back to you earlier. It now works again as expected. Thanks!
from hotpot.nvim.
Thanks for the report. I'm pretty sure I have already fixed this in an upcoming release which I just need some time to tidy up.
For now you could use this global function to unrequire a module, which also clears the cache.
(fn _G.__unrequire [...]
(let [hotpot (require :hotpot)]
(hotpot.api.cache.clear-cache))
(each [module _ (pairs package.loaded)]
(for [i 1 (select :# ...)]
(let [unreq (select i ...)]
(if (string.match module unreq)
(do
(print :unreq module)
(tset package.loaded module nil)))))))
:=__unrequire("my.mod") -- unrequires my.mod my.mod.x my.mod.y etc etc
It will ask for confirmation to clear the cache and it clears the whole cache so its a pretty blunt instrument, but I will add an option in the upcoming to skip the prompt too.
from hotpot.nvim.
Should be fixed in 87d2c34 with according regression test in ebc9bfc.
from hotpot.nvim.
Related Issues (20)
- Problems for using api.make to build ~/.config/nvim/init.fnl HOT 5
- Broken on Windows because `vim.fs.normalize` converts all path separators to forward slash (`\` -> `/`) HOT 4
- lazy.nvim conflicts with fnl ftplugins HOT 5
- Diagnostics autocommand cant be deleted when a buffer is renamed
- Improve clearing Fennels `macro-loaded` table when needed. HOT 2
- Windows RUNNER~1 paths HOT 2
- Automatically load `plugin/*.fnl` files HOT 1
- attempt to call local 'glob_search' (a nil value) HOT 3
- "The hotpot.api.make usage has changed" on v0.9.7 HOT 4
- How to reduce startup time besides using `vim.loader.enable()`? HOT 2
- Diagnosing slow api.make.build() performance HOT 3
- `(include mod)` depends on CWD / fennel.path value HOT 1
- Error loading `init.fnl` looking in `.config/fnlm/fnl` instead of `.config/nvim/fnl` HOT 4
- Compiler environment for plugins HOT 2
- Usage of a source directory other than `fnl/` HOT 2
- Pass relative path to .hotpot.lua build/clean functions
- How to configure fennel-ls HOT 3
- Macro path configuration HOT 6
- `vim.health.report_{start,info,ok}()` is deprecated HOT 1
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 hotpot.nvim.