Comments (10)
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.
@krzysztofzablocki I can confirm that it solved the issue for me. I think you should remove the double quotes
from playgrounds.
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.
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.
each time you install xcode you need to install dyci again, check out their github for all instructions.
from playgrounds.
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.
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.
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.
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.
@inetfuture @trzeciak can you guys confirm it works for you?
from playgrounds.
Related Issues (9)
- Kicker recipe will fail if any of directories contain space character. HOT 1
- KZP storyboard clashes with the "Main" storyboard of the actual app HOT 2
- Example playground doesn't dynamically refresh in Xcode 6.3/iOS 8.3? HOT 2
- Injection attempting connection to: 127.0.0.1:31442 HOT 1
- Rename project to non-offensive name HOT 1
- Swift support HOT 1
- macOS support HOT 2
- Couldn't load index file Error HOT 6
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 playgrounds.