Giter Club home page Giter Club logo

Comments (10)

davidlattimore avatar davidlattimore commented on June 2, 2024 1

Thanks for the additional report. I'll change the default for macos to disable dynamic linking (i.e. set :allow_static_linking).

from evcxr.

davidlattimore avatar davidlattimore commented on June 2, 2024

Evcxr itself doesn't write any logs, but possibly the vscode jupyter extension does. If you look through the logs available via the UI is there one for the jupyter extension?

from evcxr.

naijim avatar naijim commented on June 2, 2024

found the log, but no specific information for debugging:

14:45:25.520 [warn] StdErr from Kernel Process Compiling libc v0.2.149
   Compiling autocfg v1.1.0
14:45:25.520 [warn] StdErr from Kernel Process Compiling memchr v2.6.4
   Compiling serde v1.0.190
14:45:26.051 [warn] StdErr from Kernel Process Compiling bytes v1.5.0
14:45:26.053 [warn] StdErr from Kernel Process Compiling version_check v0.9.4
   Compiling typenum v1.17.0
14:45:26.055 [warn] StdErr from Kernel Process Compiling itoa v1.0.9
14:45:26.172 [warn] StdErr from Kernel Process Compiling bitflags v1.3.2
14:45:26.331 [warn] StdErr from Kernel Process Compiling slab v0.4.9
14:45:27.466 [warn] StdErr from Kernel Process Compiling jobserver v0.1.27
14:45:27.709 [warn] StdErr from Kernel Process Compiling cc v1.0.83
14:45:28.191 [warn] StdErr from Kernel Process Compiling quote v1.0.33
14:45:28.377 [warn] StdErr from Kernel Process Compiling syn v2.0.38
14:45:28.490 [warn] StdErr from Kernel Process Compiling getrandom v0.2.10
...

many warns, but no errors.

The crate in the upper dir can be compiled without error.

from evcxr.

davidlattimore avatar davidlattimore commented on June 2, 2024

If you can reproduce the problem with a public crate, I can take a look and see if I can determine what's wrong

from evcxr.

naijim avatar naijim commented on June 2, 2024

I can reproduce it with evcxr.

  1. clone evcxr
  2. cd evcxr
  3. mkdir notebook
  4. touch test.ipynb inside dir notebook
  5. select rust kernel
  6. :dep evcxr_repl = { path = "../evcxr_repl" } and run
  7. get the same kind of error

from evcxr.

davidlattimore avatar davidlattimore commented on June 2, 2024

Thanks for the detailed steps. I tried this and unfortunately didn't see any error, so I guess it's probably something specific to the environment you're running in. Assuming that the same crate(s) build normally for you outside of evcxr, perhaps try :allow_static_linking 1. That will disable the new dynamic linking mode that was introduced in the most recent version of evcxr.

from evcxr.

naijim avatar naijim commented on June 2, 2024

Thanks. It seems that the issue can be resolved with :allow_static_linking 1.

from evcxr.

davidlattimore avatar davidlattimore commented on June 2, 2024

Glad we've got a workaround. What OS are you on? It's likely that the dynamic linking needs more work on that platform.

from evcxr.

naijim avatar naijim commented on June 2, 2024

I am using Macbook M1 with Ventura 13.3.

from evcxr.

KristijanZic avatar KristijanZic commented on June 2, 2024

I can confirm the same issue on:

OS: macOS 14.0 23A344 arm64
Host: MacBookPro18,3
Kernel: 23.0.0
Uptime: 7 days, 17 hours, 29 mins
Packages: 277 (brew)
Shell: zsh 5.9
Resolution: 1512x982
DE: Aqua
WM: Rectangle
Terminal: /dev/ttys010
CPU: Apple M1 Pro
GPU: Apple M1 Pro
Memory: 3115MiB / 16384MiB

The workaround seems to be working but this should be fixed nonetheless.

from evcxr.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.