I installed atom-build-clickable but I'm not seeing it in Atom
-
@MarkG_108 Did you check the preferences and the code available for the plugin ?
And do you see the "Clickable" menu on the far right of the menu bar (should appears when a clickable project is open) ?[Edit]
Also, do you have had to select a target ? If you type F7 it should ask to select a target.
If you don't have a working target, you may want to consider checking the code of the plugin to define one that suits you -
@AppLee There's no clickable menu that shows up, and F7 simply says, "No targets found." I glanced at the preferences, which led to the code available for the plugin, but I wasn't sure what to do.
-
Here is my settings function:
settings() { const errorHelper = require('./check_errors'); return [{ name: 'Clickable: Build and run [Home]', exec: 'clickable', args: [ '--ssh', '192.168.YY.YY'], sh: false, functionMatch: function (terminal_output) { return errorHelper.checkBuildError(terminal_output) } }, { name: 'Clickable: Build and run [Solenne]', exec: 'clickable', args: [ '--ssh', '192.168.XX.XX'], sh: false, functionMatch: function (terminal_output) { return errorHelper.checkBuildError(terminal_output) } }, { name: 'Clickable: Build and run [desktop]', exec: 'clickable', args: [ 'desktop' ], sh: false, functionMatch: function (terminal_output) { return errorHelper.checkBuildError(terminal_output) } }, { name: 'Clickable: Build and run [phone (vivid 15.04)]', exec: 'clickable', args: [ '--vivid' ], sh: false, functionMatch: function (terminal_output) { return errorHelper.checkBuildError(terminal_output) } }]; }
What do you have in yours ?
The minimum should be something like that:settings() { const errorHelper = require('./check_errors'); return [{ name: 'Clickable: Simple build and run', exec: 'clickable', args: [], sh: false, functionMatch: function (terminal_output) { return errorHelper.checkBuildError(terminal_output) } }]; }
Let me know if that helps
-
@AppLee What file is this from?
-
@MarkG_108 clickable.js when you view the code from the plugin
-
@AppLee
Okay, here is what I found.settings() { const errorHelper = require('./check_errors'); return [{ name: 'Clickable: Build and run [phone]', exec: 'clickable', args: [ ], sh: false, functionMatch: function (terminal_output) { return errorHelper.checkBuildError(terminal_output) } }, { name: 'Clickable: Build and run [desktop]', exec: 'clickable', args: [ 'desktop' ], sh: false, functionMatch: function (terminal_output) { return errorHelper.checkBuildError(terminal_output) } }, { name: 'Clickable: Build and run [phone (vivid 15.04)]', exec: 'clickable', args: [ '--vivid' ], sh: false, functionMatch: function (terminal_output) { return errorHelper.checkBuildError(terminal_output) } }]; } } }
-
@MarkG_108 Humm that should work.
What's bothering me is that you don't have the Clickable menu.
Do you see the "Project" window on the left ?
Do you have your project inside ?In order to have this you should:
- File > Add Project Folder ...
- Browse to the main folder of your app
On the left border, in the middle of the view, you may find an arrow hidden there if the "Project" view is hidden...
Now it becomes hard for me to help without being on your computer... -
Hmm. I tried on a newer created clickable program, that I made from a tutorial online. This actually showed the "Clickable" menu item. This item gave me the option "Open shell [phone]". So, I tried this, but a window opened up, saying, failed to execute child process "clickable" (no such file or directory).
On my computer clickable is a local install, at /home/mark/.local/bin/clickable, rather than a system wide install at /usr/bin. /home/mark/.local/bin is in my path, but seems it's not found. I'll try creating a link. [..] Well, it's complained of too many symbolic links. Anyway, seems something is wrong with the clickable install on my system.
-
Okay. I eliminated a few $PATHS on my computer (from the .profile and/or .bashrc files) and rebooted. It seems to have helped, since I have had luck getting some of the newer clickable programs going in Atom (those being ones I got from @CiberSheep's tutorials) but the older ones from the Ubuntu Touch clickable tutorials (like the calculator.mimecar) are not recognized as clickable programs in Atom (though via the commandline, as I've written previously, they will compile). The version of clickable that I have is 6.4.0.
Anyway, I have gotten it working, which is good. But, even though it runs on these newer programs, it never successfully compiles them, whereas using the commandline in a terminal (rather than in Atom) will successfully compile them.
An error I get on Atom is this: "the input device is not a TTY".
[edit]
To add, I did finally successfully compile, using Atom, a clickable program on the phone. The option to either compile on the desktop or the phone was given in the Atom program (lower left corner). However, on the desktop, it states "the input device is not a TTY", when it fails. -
@MarkG_108
Hi, I'm glad you found how to build your apps.
The difference between "old" and "new" projects lies probably in clickable configuration.
For this I am a mere user.And regarding the "desktop" mode, I never used it.
Congratulation with setting up atom with clickable. Good luck now learning about clickable.