Comments (7)
I have confirmed the bug. Now considering how to fix the code.
from curv.
Seems to work now. Let me know if there is a problem.
from curv.
Hmm, still not working for me with 6bdaadc93b553545e3c925358ea673b58011925d
.
$ curvc /dev/null
{"error":{"message":"boost::filesystem::canonical: No such file or directory: \"/home/sebastien/Workspace/curved/bin/../lib/std.curv\""}}
I did a make clean
just to be sure.
from curv.
Also, in general it might be good to have a $CURV_PATH
, but that might be a separate ticket. Another suggestion is that instead of using lib/std.curv
to use lib/curv/std.curv
so that every curv lib nicely fits into a curv
directory. Right now, curved lib
dir has the following entries: components css fonts glsl images js pages pcss py sjs xsl
so I could just put a curv
directory in there.
from curv.
When I tested this bug fix on Ubuntu, using bash, I had a weird problem. When invoking curvc
via the shell command $PATH, I kept getting the old version of the program. I think bash was caching the path to the old version of the executable. When I started a new bash shell, then without any other change, the curvc
command from the bash prompt was now using my symlink and running the correct version of the program, and then I verified that the bug fix worked.
I can add the environment variable $CURV_LIBDIR
to curvc
.
That is the directory that currently contains std.curv
, plus curv/*.curv
(the library files accessed using lib
). This directory normally resolves to /usr/local/lib
in a Curv installation.
I agree that a different directory structure would make more sense. How about this:
$CURV_LIBDIR
, which normally resolves to/usr/local/lib/curv
, is a directory containsstd.curv
andlib/*.curv
(the latter are collectively thelib
files).
from curv.
I'd probably recommend $CURV_PATH
instead. In Python, it's $PYTHONPATH
, in Go it's $GOPATH
, in Ruby it's $GEM_PATH
, etc. Later, you might want to have more than one path to resolve the libraries.
And BTW it works now, I think I had another version in my $PATH when I tested. Thanks for the quick fix!
from curv.
$PYTHONPATH is a search path. It is a colon-separated list of directories, similar to $PATH.
$GOPATH is also a search path.
$GEM_PATH is also a search path.
Search paths are one possible design for how a package manager finds a named package. I do not want to use that design for package management in Curv. I don't want a CURV_PATH.
I will close this bug, since the problem is resolved. Open another issue if you later want an environment variable.
from curv.
Related Issues (20)
- Compiler error when compare parametric value to null HOT 2
- Curv can't find boost include file during build (M1 Mac with macOS 11.4) HOT 7
- Please upload AppImage to GitHub Releases HOT 1
- Request: Splines? HOT 12
- lib.builder: '}' doesn't pop the origin stack HOT 1
- `curv -le` stops reloading the file after a change, on Windows
- union seams during mesh export HOT 7
- rewrite Curv to use WebGPU HOT 2
- GLTF export produces bad output HOT 1
- Typo in Makefile HOT 1
- Broken link in documentation HOT 1
- 2D "slider" in parameters panel HOT 2
- Bad baground color after two rotation transformations HOT 3
- Error building Curv on Windows 10 with MSYS2 HOT 5
- Build Error on Win 10 HOT 9
- Error on Ubuntu (22.04 LTS) HOT 5
- libfive backend? HOT 10
- Give me access to curv3d/libfive HOT 2
- Something evaluating to incorrect number type
- Don't run GitHub actions on draft PRs
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 curv.