Giter VIP home page Giter VIP logo

Comments (10)

bioshrek avatar bioshrek commented on May 27, 2024 2

I think I found the solution.

In the handler file .kick, we should remove double quotes when passing arguments to dyci-recompile.py.
With the double quotes, we will get a wrong md5, which can't match the index under folder ~/.dyci/index/.
That is changing following code
execute("/usr/bin/python #{File.expand_path("~/.dyci/scripts/dyci-recompile.py")} '#{"\"%s\"" % File.expand_path(file)}'")
to
execute("/usr/bin/python #{File.expand_path("~/.dyci/scripts/dyci-recompile.py")} '#{"%s" % File.expand_path(file)}'")

I've tried it. It worked.

from playgrounds.

bQvle avatar bQvle commented on May 27, 2024 1

@krzysztofzablocki I can confirm that it solved the issue for me. I think you should remove the double quotes

from playgrounds.

krzysztofzablocki avatar krzysztofzablocki commented on May 27, 2024

looks like a dyci error, make sure you have newest version installed and xcode-select path matches the one you are using in your IDE, look at #4 for more info

from playgrounds.

inetfuture avatar inetfuture commented on May 27, 2024

Same problem here, just installed, so it's newest.

My xcode-select -p showing: /Applications/Xcode.app/Contents/Developer

But how do check which one is my Xcode using?

from playgrounds.

krzysztofzablocki avatar krzysztofzablocki commented on May 27, 2024

each time you install xcode you need to install dyci again, check out their github for all instructions.

from playgrounds.

inetfuture avatar inetfuture commented on May 27, 2024

Actually dyci broke my Xcode on the first installation by following their instruction, it stuck on indexing forever, then I replaced my old Xcode.app with a newly downloaded Xcode6.4.dmg, then reinstall dyci, it works again, but I don't know what was wrong, it's like a black box to me.

I do read all the docs or issue discussion available, still, frustrated. Must be something wrong with my environment, I have a fuzzy memory about how I get Xcode installed at the beginning.

from playgrounds.

trzeciak avatar trzeciak commented on May 27, 2024

Hey Aaron,
after you again reinstall all :-),
try install dyci with sudo, like:

git clone https://github.com/DyCI/dyci-main.git
cd dyci-main/Install/
sudo ./install.sh

Because i think you no have permission to change clang in:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang

Before, you make backup part of XCode:

cp -r /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr usr

(Restore:)

sudo cp -r usr /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr

from playgrounds.

inetfuture avatar inetfuture commented on May 27, 2024

@trzeciak

I didn't use sudo at the first try, maybe that's why it broke Xcode. And I didn't have any backup, so I have to reinstall Xcode, which is done by download a dmg and replace Xcode.app, without root permission used. So I don't think sudo is required after the installation, the output of ./install.sh says everything is ok.

Let me clear the story:

  • I installed Xcode somehow months ago, most probably by App Store
  • Found this awesome KZPlayground, try to play with it
  • Clone dyci-main, cd /Install, run ./install.sh as it documented, it complains about permission denied, run it again with sudo
  • Go back to Xcode, can't compile, neither normal project nor KZPlayground project, restart, hang on indexing forever, clear derived data, didn't work
  • Don't know what ./install.sh did, and don't have to investigate it, try to reinstall Xcode
  • All references say something about call uninstall-devtools, but I can not find it, even with a global search, decided to ignore it, downloaded a dmg, delete old Xcode.app, replace with the new one.
  • Xcode works again, try ./install.sh again, without sudo, normal project works, KZPlayground can be used by Ctrl + X, no luck with kicker monitoring

😞

from playgrounds.

trzeciak avatar trzeciak commented on May 27, 2024

Xcode works again, try ./install.sh again, without sudo, normal project works, KZPlayground can be used by Ctrl + X, no luck with kicker monitoring
Well, ok.

For correct operation of kicker you need:

  • kicker (sudo gem install kicker)
  • File: .kick in your project root directory (like: .kick)
  • run kicker in your project root directory:
    kicker -sql 0.05 ./

NOTE: To validate the installation dyci you can run:

@:~/> file /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang.backup
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang.backup: Mach-O 64-bit executable x86_64
@:~/> 

from playgrounds.

krzysztofzablocki avatar krzysztofzablocki commented on May 27, 2024

@inetfuture @trzeciak can you guys confirm it works for you?

from playgrounds.

Related Issues (9)

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.