Comments (2)
This is along the lines of what I wanted to do initially, but one reason I switched was that there was a desire to not load/ execute user code in the LSP.
This seems like a good idea if we can deal with that.
Alternatively, the extension could just take the descend call you wanted to run, e.g. Cthulhu.descend(foo, ([1, 2, 3],))
and run it in the REPL in the background. I think this should work and achieve a similar result.
The other reason I switched to using the REPL was so we could use variables and redefined function from the REPL but with the alternative approach maybe we could continue to support that. Or at worst we don't but you can just run 'descend
like we do currently.
Another concern would be if Cthulhu would be fast enough, iirc the main reasons why it's slow is pretty printing types and compilation. Presumably if we're rerunning Cthulhu a lot we could ensure it's caching things appropriately so that it is able to be fast.
Also, I'm not sure a comment in a file is the best place for this to be in the long term but we can of course change it at some point. Whilst Cthulhu only supports descending in a single file for now, if it did support multiple files it could get tricky to know which descend to run if there are multiple or to know where which file the descend comment is in.
from julia-vscode.
Good points!
I moved this post to discourse btw: https://discourse.julialang.org/t/how-can-we-get-rust-level-feedback-on-type-stability/113497, maybe copy your comment there so others can see it?
from julia-vscode.
Related Issues (20)
- stdin interaction is weird after "Execute code in REPL" HOT 1
- [FR] Adapt to the new testing API of VSCode
- Launch configuration fails to cwd HOT 1
- errors in REPL are broken on 1.12 due to linetable changes
- Error while formatting with `.JuliaFormatter.toml` HOT 1
- add some support for julia v1.11 HOT 1
- Extra stacktrace for macro `MethodError` that only occurs in the VS Code REPL
- VS Code REPL strips out the `LoadError` when a macro throws
- VSCode Julia linter bug in Dict's HOT 1
- Stuck indexing packages (and random startup)
- Switching to an environment works differently in different situations HOT 1
- vscode doesn't discover or run tests HOT 1
- wrong: cannot declare constant: already have a value: clear cache? HOT 3
- 2 uncaught errors HOT 1
- `Base.isinteractive()` outputs `false` in Jupyter notebooks when `Julia release channel` is selected HOT 1
- Go to definition doesn't work when `dev`ing a local path
- `Could not start the Julia language server. Make sure the configuration setting julia.executablePath points to the Julia binary.` HOT 1
- crashed when input '\0'
- The Julia extension still does a bunch of background indexing when opening a Jupyter notebook that only uses Python 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 julia-vscode.