-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enable codeintel in the IDE #98
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -57,6 +57,7 @@ RUN __LLVM_VERSION__="5.0" \ | |
valgrind \ | ||
x11vnc \ | ||
xvfb \ | ||
python-dev \ | ||
&& mkdir /var/run/sshd \ | ||
&& pip install --upgrade pip \ | ||
&& pip install --upgrade virtualenv \ | ||
|
@@ -201,6 +202,18 @@ RUN git clone https://github.com/kanaka/noVNC /home/user/.novnc/ \ | |
&& cd /home/user/.novnc \ | ||
&& npm install \ | ||
&& node ./utils/use_require.js --as commonjs --with-app | ||
|
||
# Install dependencies to enable codeintel (https://github.com/c9/c9.ide.language.codeintel) | ||
RUN virtualenv --python=python2 $HOME/.c9/python2 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Nit: Please hardcode There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Nit: All these lines need to be terminated by a |
||
&& source $HOME/.c9/python2/bin/activate | ||
&& mkdir /tmp/codeintel | ||
&& pip download -d /tmp/codeintel codeintel==0.9.3 | ||
&& cd /tmp/codeintel | ||
&& tar xf CodeIntel-0.9.3.tar.gz | ||
&& mv CodeIntel-0.9.3/SilverCity CodeIntel-0.9.3/silvercity | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Interesting, why are you renaming There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I don't know much, I have to check https://github.com/c9/c9.ide.language.codeintel, that's what they advocate to do |
||
&& tar czf CodeIntel-0.9.3.tar.gz CodeIntel-0.9.3 | ||
&& pip install -U --no-index --find-links=/tmp/codeintel codeintel | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Nit: Please delete the temporary There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. They advocate to work under /tmp/ for this part, I assume pip does all the work, and nothing is necessary afterwards. done There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. All these steps look like a very complicated way to do |
||
&& rm -rf /tmp/codeintel | ||
|
||
# Install the latest Cloud9 SDK with some useful IDE plugins. | ||
RUN git clone https://github.com/c9/core.git /home/user/.c9sdk \ | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -71,6 +71,21 @@ module.exports = function (options) { | |
|
||
// Use a longer scrollback for the Terminal. | ||
p.settings.user.terminal['@scrollback'] = 10000; | ||
|
||
if (!p.settings.project) { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Nit: Please add a comment similar to "Tweak the default user settings" above (ideally with a link to a file or list of every available project setting). |
||
p.settings.project = {}; | ||
} | ||
|
||
if (typeof p.settings.project === 'string') { | ||
p.settings.project = JSON.parse(p.settings.project); | ||
} | ||
|
||
if (!p.settings.project.codeintel) { | ||
p.settings.project.codeintel = {}; | ||
} | ||
|
||
// Dismiss the codeintel popup because it's installed | ||
p.settings.project.codeintel['@dismiss_installer'] = true; | ||
} | ||
break; | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: Please try to keep the list of packages in alphabetical order.