forked from Komodo/KomodoEdit
-
Notifications
You must be signed in to change notification settings - Fork 0
Home
Stephen Sigwart edited this page Dec 4, 2020
·
17 revisions
- You can enable CodeIntel logging in
/Applications/Komodo Edit 12.app/Contents/Resources/components/koCodeIntel.py
:
cmd = [koDirSvc.pythonExe, "-O",
join(koDirSvc.supportDir, "codeintel", "oop-driver.py"),
# Warning
#"--log-level", "30",
# Info
#"--log-level", "20",
# Debug: WAY TOO VERBOSE
#"--log-level", "10",
"--import-path", koDirSvc.komodoPythonLibDir,
"--database-dir", join(koDirSvc.userDataDir, "codeintel")]
# Most Files
rsync -urlcv --exclude pythoncile2.py --exclude '*.cix' src/codeintel/lib/codeintel2/ /Applications/Komodo\ Edit\ 12.app/Contents/Resources/python/komodo/codeintel2/
# PHP
rsync -urlcv src/udl/skel/PHP/pylib/ /Applications/Komodo\ Edit\ 12.app/Contents/Resources/distribution/bundles/php_language\@ActiveState.com/pylib/
# Common Files I Work On
cp src/codeintel/lib/codeintel2/tree_php.py /Applications/Komodo\ Edit\ 12.app/Contents/Resources/python/komodo/codeintel2/tree_php.py
cp src/udl/skel/PHP/pylib/lang_php.py /Applications/Komodo\ Edit\ 12.app/Contents/Resources/distribution/bundles/php_language\@ActiveState.com/pylib/lang_php.py
cp src/codeintel/lib/codeintel2/stdlibs/php-7.0.cix /Applications/Komodo\ Edit\ 12.app/Contents/Resources/python/komodo/codeintel2/stdlibs/php-7.0.cix
cp src/codeintel/lib/codeintel2/database/langlib.py /Applications/Komodo\ Edit\ 12.app/Contents/Resources/python/komodo/codeintel2/database/langlib.py
cp src/udl/skel/Smarty/pylib/lang_smarty.py /Applications/Komodo\ Edit\ 12.app/Contents/Resources/distribution/bundles/smarty_language\@ActiveState.com/pylib/lang_smarty.py
# src/chrome/komodo files
# These get compressed into /Applications/Komodo\ Edit\ 12.app/Contents/Resources/chrome/komodo.jar
mkdir ~/Downloads/tmpjar
cp /Applications/Komodo\ Edit\ 12.app/Contents/Resources/chrome/komodo.jar ~/Downloads/tmpjar/
cd ~/Downloads/tmpjar
jar -x -f komodo.jar
rm -f komodo.jar
# Edit files
rm /Applications/Komodo\ Edit\ 12.app/Contents/Resources/chrome/komodo.jar && jar -f /Applications/Komodo\ Edit\ 12.app/Contents/Resources/chrome/komodo.jar -c .
- Use 10.12 SDK because it supports
CLOCK_MONOTONIC
- Find the other
-Wno
blocks inbuild/moz3500-ko12.10/mozilla/configure.in
and add these lines.
_WARNINGS_CFLAGS="${_WARNINGS_CFLAGS} -Wno-tautological-unsigned-enum-zero-compare"
_WARNINGS_CXXFLAGS="${_WARNINGS_CXXFLAGS} -Wno-tautological-unsigned-enum-zero-compare"
- To solve
nspr-config
not found forpython build.py pyxpcom
cp ./build/moz3500-ko12.10/mozilla/ko-rel/nsprpub/config/nspr-config ./build/moz3500-ko12.10/mozilla/ko-rel/dist/sdk/bin/
- Not sure how to solve this:
make[3]: *** No rule to make target `/Users/ssigwart/Documents/KomodoEdit/mozilla/build/moz3500-ko12.10/mozilla/ko-rel/dist/lib/libxpcomglue_s.a', needed by `libpyxpcom.dylib'. Stop.
export HOMEBREW_NO_AUTO_UPDATE=1
brew install [email protected]
brew install yasm ccache mercurial subversion
# Update MinimumSDKVersion
defaults read /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Info.plist
sudo defaults write /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Info.plist MinimumSDKVersion -string "10.9"
sudo chmod 644 /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Info.plist
Download Xcode 6.4 from https://developer.apple.com/download/more/. Open, but don't install.
sudo rsync -urlt /Volumes/Xcode/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/
sudo rsync -urlt ~/Downloads/MacOSX10.9.sdk/ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/
cd mozilla
export MACOSX_DEPLOYMENT_TARGET="10.9"
# Change 12.10 to correct version number (.10 is used for development builds)
python build.py configure -k 12.10 --with-crashreport-symbols --options=disable-webrtc --options='with-macos-sdk=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk'
python build.py all
-
build.py
might fail intarget_mozilla
at https://github.com/ssigwart/KomodoEdit/blob/2a5e363428b1777ba2cc45c08e708bd2534c6d5a/mozilla/build.py#L2375-L2377 with an error like below:If so, the process completed, but https://bugzilla.mozilla.org/show_bug.cgi?id=1384062 is an issue. Just comment out theFile "/path/to/mozilla/build/moz3500-ko12.10/mozilla/testing/mozbase/mozsystemmonitor/mozsystemmonitor/resourcemonitor.py", line 249, in stop swap_mem = self._pipe.recv()
_run_in_dir
line and rerunpython build.py mozilla
. Then call other remaining build targets. - If the build fails, find the part if failed at in
target_all
ofbuild.py
and run the individual build steps for the failed steps and those after it.
export MACOSX_DEPLOYMENT_TARGET="10.9"
export PATH=`pwd`/util/black:$PATH # Komodo's "bk" build tool
git submodule update --init
git submodule update --remote
bk configure -V 12.10.1-devel --with-crashreport-symbols
bk build
# Optional: Build crash symbols
bk build crashreportsymbols
- Make sure
mozilla/prebuilt/python2.7/macosx/Python.framework/Versions/2.7/lib/python2.7/config/Makefile
has-isysroot
set toMacOSX10.9.sdk
.- Might need to run
bk reconfigure -V 12.10.1-devel
after
- Might need to run
- Change
watchdog_fsevents.c
from#include <Python/Python.h>
to#include <Python.h>
- Make sure
contrib/Conscript
has-mmacosx-version-min=10.9
export PATH=`pwd`/util/black:$PATH # Komodo's "bk" build tool
bk run
˜
# Quick rebuild and run
bk build quick && bk run
-
bk build quick
doesn't copy some PHP files
cp src/udl/skel/PHP/pylib/lang_php.py mozilla/build/moz3500-ko12.10/mozilla/ko-rel/dist/Komodo.app/Contents/MacOS/distribution/bundles/php_language\@ActiveState.com/pylib/lang_php.py && bk run
- See https://github.com/Komodo/KomodoEdit/wiki/150:-Crash-Reports (has typos)
- Build breakpad (https://chromium.googlesource.com/breakpad/breakpad)
- To debug which crash reporter is open:
./src/processor/minidump_stackwalk ~/Library/Application\ Support/Komodo\ Edit/Crash\ Reports/pending/XXXXXXX.dmp ~/Documents/Programming/KomodoEdit/mozilla/build/moz3500-ko12.10/mozilla/ko-rel/dist/crashreporter-symbols/
cd ~/Library/ApplicationSupport/KomodoEdit/12.10 # Change version as needed
tail -f pystderr.log
git fetch upstream
git merge upstream/master