I am trying to run Intellij Idea 14 on my Macbook which I have loaded with Arch Linux. I have installed both Idea and the Oracle JDK8 installed from AUR.
When I run idea.sh, the splashscreen shows up and after it finishes loading it opens to this screen.
Here is idea.log:
2015-10-29 17:02:33,298 [ 0] INFO - #com.intellij.idea.Main - ------------------------------------------------------ IDE STARTED ------------------------------------------------------
2015-10-29 17:02:33,312 [ 14] INFO - #com.intellij.idea.Main - IDE: IntelliJ IDEA (build #IC-141.2735.5, 22 Sep 2015 00:00)
2015-10-29 17:02:33,312 [ 14] INFO - #com.intellij.idea.Main - OS: Linux (4.2.3-1-arch, amd64)
2015-10-29 17:02:33,312 [ 14] INFO - #com.intellij.idea.Main - JRE: 1.8.0_66-b17 (Oracle Corporation)
2015-10-29 17:02:33,312 [ 14] INFO - #com.intellij.idea.Main - JVM: 25.66-b17 (Java HotSpot(TM) 64-Bit Server VM)
2015-10-29 17:02:33,314 [ 16] INFO - #com.intellij.idea.Main - JVM Args: -Xbootclasspath/a:./../lib/boot.jar -Xms128m -Xmx750m -XX:MaxPermSize=350m -XX:ReservedCodeCacheSize=225m -XX:+UseConcMarkSweepGC -XX:SoftRefLRUPolicyMSPerMB=50 -ea -Dsun.io.useCanonCaches=false -Djava.net.preferIPv4Stack=true -Dawt.useSystemAAFontSettings=on -Djb.vmOptionsFile=./idea64.vmoptions -XX:ErrorFile=/home/noah/java_error_in_IDEA_%p.log -Djb.restart.code=88 -Didea.paths.selector=IdeaIC14 -Dawt.useSystemAAFontSettings=on -Dswing.aatext=true -Dswing.defaultlaf=com.sun.java.swing.plaf.gtk.GTKLookAndFeel
2015-10-29 17:02:33,341 [ 43] INFO - #com.intellij.idea.Main - JNA library loaded (64-bit) in 27 ms
2015-10-29 17:02:33,424 [ 126] INFO - .intellij.idea.IdeaApplication - WM detected: bspwm
2015-10-29 17:02:34,174 [ 876] INFO - llij.ide.plugins.PluginManager - 29 plugins initialized in 612 ms
2015-10-29 17:02:34,174 [ 876] INFO - llij.ide.plugins.PluginManager - Loaded bundled plugins: Android Support (10.1.1.0), Ant Support (1.0), Bytecode Viewer (0.1), CVS Integration (11), Copyright (8.1), Coverage, Eclipse Integration (3.0), EditorConfig (1.0), Git Integration (8.1), GitHub, Gradle, Groovy (9.0), I18n for Java, IDEA CORE, IntelliLang (8.0), JUnit (1.0), Java Bytecode Decompiler (0.1), JavaFX (1.0), Maven Integration, Plugin DevKit (1.0), Properties Support, Subversion Integration (1.1), Task Management (1.0), Terminal (0.1), TestNG-J (8.0), UI Designer, XPathView + XSLT Support (4), XSLT-Debugger (1.4), hg4idea (10.0)
2015-10-29 17:02:34,790 [ 1492] INFO - ellij.util.io.PagedFileStorage - lower=100; upper=200; buffer=10; max=739246080
2015-10-29 17:02:34,814 [ 1516] INFO - api.vfs.impl.local.FileWatcher - Starting file watcher: /usr/share/intellijidea-ce/bin/fsnotifier64
2015-10-29 17:02:34,822 [ 1524] INFO - api.vfs.impl.local.FileWatcher - Native file watcher is operational.
2015-10-29 17:02:35,539 [ 2241] INFO - lij.diagnostic.DebugLogManager - Set DEBUG for the following categories: []
2015-10-29 17:02:35,977 [ 2679] INFO - rains.ide.BuiltInServerManager - built-in server started, port 63342
2015-10-29 17:02:36,557 [ 3259] INFO - TestNG Runner - Create TestNG Template Configuration
2015-10-29 17:02:36,622 [ 3324] INFO - ellij.project.impl.ProjectImpl - 20 project components initialized in 409 ms
2015-10-29 17:02:36,622 [ 3324] INFO - le.impl.ModuleManagerComponent - 0 module(s) loaded in 0 ms
2015-10-29 17:02:36,865 [ 3567] INFO - pl.stores.ApplicationStoreImpl - 83 application components initialized in 2621 ms
2015-10-29 17:02:36,870 [ 3572] INFO - .intellij.idea.IdeaApplication - App initialization took 4204 ms
2015-10-29 17:06:05,892 [ 212594] INFO - org.jetbrains.io.BuiltInServer - web server stopped
2015-10-29 17:06:05,893 [ 212595] INFO - Types.impl.FileTypeManagerImpl - FileTypeManager: 0 auto-detected files
Elapsed time on auto-detect: 0 ms
2015-10-29 17:06:05,907 [ 212609] INFO - dea.ddms.adb.AdbService$Ddmlib - DDMLib terminated
2015-10-29 17:06:05,907 [ 212609] INFO - il.indexing.FileBasedIndexImpl - START INDEX SHUTDOWN
2015-10-29 17:06:05,927 [ 212629] INFO - il.indexing.FileBasedIndexImpl - END INDEX SHUTDOWN
2015-10-29 17:06:05,927 [ 212629] INFO - stubs.SerializationManagerImpl - START StubSerializationManager SHUTDOWN
2015-10-29 17:06:05,927 [ 212629] INFO - stubs.SerializationManagerImpl - END StubSerializationManager SHUTDOWN
2015-10-29 17:06:06,002 [ 212704] WARN - api.vfs.impl.local.FileWatcher - Watcher terminated with exit code 0
2015-10-29 17:06:06,003 [ 212705] INFO - newvfs.persistent.PersistentFS - VFS dispose started
2015-10-29 17:06:06,003 [ 212705] INFO - newvfs.persistent.PersistentFS - VFS dispose completed
2015-10-29 17:06:06,007 [ 212709] INFO - #com.intellij.idea.Main - ------------------------------------------------------ IDE SHUTDOWN ------------------------------------------------------
Any help would be greatly appreciated.
This is most likely due to your window manager, bspwm. If you set the following environment variable before starting IntelliJ, it should work.
_JAVA_AWT_WM_NONREPARENTING=1
As #thomas pointed out, the missing environment variable is causing this issue
Here're the steps to do that.
Copy this -> _JAVA_AWT_WM_NONREPARENTING=1
If you have nano installed:
Run sudo nano /etc/environment on terminal and enter the password if prompted
Scroll to the bottom
Paste by pressing Shift + Insert
Save by pressing Ctrl + O and confirm the path with Enter
Quit by pressing Ctrl + X
If you have vim installed:
Run sudo vim /etc/environment on terminal and enter the password if prompted
Scroll to the bottom
Enter insert mode by pressing i
Paste by pressing Shift + Insert
Exit the insert mode by pressing Esc
Save and exit by typing :wq and Enter
The error should be resolved. This is apparently documented along with Android Studio on the wiki
Related
I'm using KDE Neon Linux Distro (based on Ubuntu).
When i right-click on a file in Project view the Show In Explorer menu is there (although the text is Show In Dolphin because i'm using Dolphin File Explorer). When I clicked it, file explorer loading indicator appeared but the file explorer never opened.
I've checked idea.log in /home/<username>/.AndroidStudio3.6/system/log/ but can't find anything about the file explorer.
Here is latest lines of the log. The entire file contains 39,000 lines.
ms
2020-05-06 17:02:21,947 [ 722495] INFO - mponents.impl.stores.StoreUtil - saveProjectsAndApp took 121 ms
2020-05-06 17:03:35,512 [ 796060] INFO - rationStore.ComponentStoreImpl - Saving appEditorColorsManagerImpl took 15 ms
2020-05-06 17:03:35,586 [ 796134] INFO - rationStore.ComponentStoreImpl - Saving Project '/home/risal/AndroidStudioProjects/BukaKata' BukaKatalibraryTable took 37 ms
2020-05-06 17:03:35,587 [ 796135] INFO - mponents.impl.stores.StoreUtil - saveProjectsAndApp took 143 ms
2020-05-06 17:04:50,155 [ 870703] INFO - tellij.openapi.util.IconLoader - replace '/vcs/patch.svg' with '/icons/vcs/patch.svg'
2020-05-06 17:04:50,182 [ 870730] INFO - tellij.openapi.util.IconLoader - replace '/vcs/Shelve.svg' with '/icons/vcs/Shelve.svg'
2020-05-06 17:05:02,460 [ 883008] INFO - rationStore.ComponentStoreImpl - Saving Project '/home/risal/AndroidStudioProjects/BukaKata' BukaKatalibraryTable took 20 ms
2020-05-06 17:05:53,897 [ 934445] INFO - tellij.openapi.util.IconLoader - replace '/modules/testRoot.svg' with '/icons/modules/testRoot.svg'
2020-05-06 17:06:09,811 [ 950359] INFO - rationStore.ComponentStoreImpl - Saving appFindSettings took 24 ms
2020-05-06 17:06:09,834 [ 950382] INFO - rationStore.ComponentStoreImpl - Saving Module: 'app'FacetManager took 12 ms
2020-05-06 17:06:09,913 [ 950461] INFO - rationStore.ComponentStoreImpl - Saving Project '/home/risal/AndroidStudioProjects/BukaKata' BukaKatalibraryTable took 36 ms
2020-05-06 17:06:09,923 [ 950471] INFO - mponents.impl.stores.StoreUtil - saveProjectsAndApp took 167 ms
2020-05-06 17:06:17,948 [ 958496] INFO - rationStore.ComponentStoreImpl - Saving Project '/home/risal/AndroidStudioProjects/BukaKata' BukaKatalibraryTable took 23 ms
2020-05-06 17:06:29,987 [ 970535] INFO - tellij.openapi.util.IconLoader - replace '/modules/testResourcesRoot.svg' with '/icons/modules/testResourcesRoot.svg'
2020-05-06 17:06:29,992 [ 970540] INFO - tellij.openapi.util.IconLoader - replace '/modules/excludeRoot.svg' with '/icons/modules/excludeRoot.svg'
2020-05-06 17:06:41,563 [ 982111] INFO - rationStore.ComponentStoreImpl - Saving Project '/home/risal/AndroidStudioProjects/BukaKata' BukaKataRunManager took 15 ms, libraryTable took 77 ms
2020-05-06 17:06:41,571 [ 982119] INFO - mponents.impl.stores.StoreUtil - saveProjectsAndApp took 181 ms
2020-05-06 17:07:50,844 [1051392] INFO - tellij.openapi.util.IconLoader - replace '/general/copyHovered.svg' with '/icons/general/copyHovered.svg'
2020-05-06 17:07:52,725 [1053273] INFO - #git4idea.commands.GitHandler - [BukaKata] git /usr/bin/git -c credential.helper= -c core.quotepath=false -c log.showSignature=false rm --ignore-unmatch --cached -- .idea/render.experimental.xml
2020-05-06 17:07:55,404 [1055952] INFO - rationStore.ComponentStoreImpl - Saving appFindSettings took 29 ms
2020-05-06 17:07:55,501 [1056049] INFO - rationStore.ComponentStoreImpl - Saving Project '/home/risal/AndroidStudioProjects/BukaKata' BukaKataRunManager took 27 ms, libraryTable took 31 ms
2020-05-06 17:07:55,501 [1056049] INFO - mponents.impl.stores.StoreUtil - saveProjectsAndApp took 161 ms
I've found the solution, it's very simple
just add /home inside the PATH variable in your /etc/environment, then restart
before
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games"
after
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/home"
Don't forget the : as separator
With Android Studio v3.5.2 on Ubuntu 18.04, the time elapsed between start and 'Welcome' window on my laptop was about 7...10 seconds. After upgrading to Ubuntu 19.10, same Android Studio has startup time about 25...30 seconds. No CPU or RAM usage spikes detected by System Monitor (2% and 10% accordingly). After 'Welcome' window everything works just fine. Here are log records:
2020-01-21 00:05:31,671 [49-5587405] INFO - #com.intellij.idea.Main - JVM Args: -Xms256m -Xmx1280m -XX:ReservedCodeCacheSize=240m -XX:+UseConcMarkSweepGC -XX:SoftRefLRUPolicyMSPerMB=50 -XX:CICompilerCount=2 -Dsun.io.useCanonCaches=false -Djava.net.preferIPv4Stack=true -Djdk.http.auth.tunneling.disabledSchemes="" -Djna.nosys=true -Djna.boot.library.path= -da -Dawt.useSystemAAFontSettings=lcd -Dsun.java2d.renderer=sun.java2d.marlin.MarlinRenderingEngine -Dsun.tools.attach.tmp.only=true -Xmx2048m -XX:ErrorFile=/home/user/java_error_in_STUDIO_%p.log -XX:HeapDumpPath=/home/user/java_error_in_STUDIO.hprof -Didea.paths.selector=AndroidStudio3.5 -Djb.vmOptionsFile=/snap/android-studio/81/android-studio/bin/studio64.vmoptions,/home/user/.AndroidStudio3.5/config/studio64.vmoptions -Didea.platform.prefix=AndroidStudio -Didea.jre.check=true
2020-01-21 00:05:31,671 [49-5587405] INFO - #com.intellij.idea.Main - ext: /snap/android-studio/81/android-studio/jre/jre/lib/ext: [cldrdata.jar, dnsns.jar, jaccess.jar, localedata.jar, meta-index, nashorn.jar, sunec.jar, sunjce_provider.jar, sunpkcs11.jar, zipfs.jar]
2020-01-21 00:05:31,671 [49-5587405] INFO - #com.intellij.idea.Main - charsets: JNU=UTF-8 file=UTF-8
2020-01-21 00:05:31,686 [49-5587405] INFO - #com.intellij.idea.Main - JNA library (64-bit) loaded in 14 ms
2020-01-21 00:05:56,931 [49-5587405] INFO - #com.intellij.util.ui.JBUI - System scale factor: 1.0 (IDE-managed HiDPI)
What causes 25 sec. delay between 'JNA library loaded' and 'System scale factor: 1.0'?
UPDATE (06 MAY 2020)
As for Ubuntu 19.10, after one of the automatic system updates the bug suddenly disappeared. Its cause remains unknown.
Please try installing the following package:
sudo apt-get install appmenu-gtk2-module
This solved the delay in launching of Android Studio which was installed using snap in my case. Previously it would take about 30 seconds to begin doing any processing, now it takes about 4 or 5 seconds.
I have installed the Android Studio latest version 1.5. But I have never built even the hello world project, because the gradle, building for the project, is running forever.
These are the AS logs:
2016-03-08 15:14:24,355 [ 0] INFO - #com.intellij.idea.Main - ------------------------------------------------------ IDE STARTED ------------------------------------------------------
2016-03-08 15:14:24,867 [ 512] INFO - #com.intellij.idea.Main - IDE: Android Studio (build #AI-141.2178183, 19 Aug 2015 00:00)
2016-03-08 15:14:24,867 [ 512] INFO - #com.intellij.idea.Main - OS: Windows 7 (6.1, x86)
2016-03-08 15:14:24,867 [ 512] INFO - #com.intellij.idea.Main - JRE: 1.8.0_73-b02 (Oracle Corporation)
2016-03-08 15:14:24,867 [ 512] INFO - #com.intellij.idea.Main - JVM: 25.73-b02 (Java HotSpot(TM) Server VM)
2016-03-08 15:14:24,908 [ 553] INFO - #com.intellij.idea.Main - JVM Args: -Xms256m -Xmx750m -XX:MaxPermSize=350m -XX:ReservedCodeCacheSize=150m -XX:+UseConcMarkSweepGC -XX:SoftRefLRUPolicyMSPerMB=50 -ea -Djna.nosys=true -Djna.boot.library.path= -Djna.debug_load=true -Djna.debug_load.jna=true -Dsun.io.useCanonCaches=false -Djava.net.preferIPv4Stack=true -Didea.paths.selector=AndroidStudio1.3 -Didea.platform.prefix=AndroidStudio -Djb.vmOptions=C:\Program Files\Android\Android Studio\bin\studio.exe.vmoptions -Xbootclasspath/a:C:\Program Files\Android\Android Studio\lib\boot.jar -Didea.jre.check=false
2016-03-08 15:14:25,511 [ 1156] INFO - #com.intellij.idea.Main - JNA library loaded (32-bit) in 603 ms
2016-03-08 15:14:25,546 [ 1191] INFO - penapi.util.io.win32.IdeaWin32 - Native filesystem for Windows is operational
2016-03-08 15:14:25,574 [ 1219] INFO - #com.intellij.idea.Main - Using "FocusKiller" library to prevent focus stealing.
2016-03-08 15:14:33,199 [ 8844] INFO - llij.ide.plugins.PluginManager - 28 plugins initialized in 1591 ms
2016-03-08 15:14:33,203 [ 8848] INFO - llij.ide.plugins.PluginManager - Loaded bundled plugins: Android NDK Support (1.0), Android Support (10.1.3.2), CVS Integration (11), Copyright (8.1), Coverage, EditorConfig (1.0), Git Integration (8.1), GitHub, Google Cloud Testing (1.0), Google Cloud Tools For Android Studio (0.2.8), Google Login (1.0), Google Services (0.1), Gradle, Groovy (9.0), I18n for Java, IDEA CORE, IntelliLang (8.0), JUnit (1.0), Java Bytecode Decompiler (0.1), JavaFX (1.0), Maven Integration, Properties Support, SDK Updater (1.0), Subversion Integration (1.1), Task Management (1.0), Terminal (0.1), TestNG-J (8.0), hg4idea (10.0)
2016-03-08 15:14:38,075 [ 13720] INFO - ellij.concurrency.JobScheduler - 50 ms execution limit failed for: com.intellij.openapi.progress.impl.CoreProgressManager$1#6d52b; elapsed time was 55ms
2016-03-08 15:14:38,150 [ 13795] INFO - ellij.util.io.PagedFileStorage - lower=100; upper=200; buffer=10; max=739246080
2016-03-08 15:14:38,412 [ 14057] INFO - api.vfs.impl.local.FileWatcher - Starting file watcher: C:\Program Files\Android\Android Studio\bin\fsnotifier.exe
2016-03-08 15:14:38,490 [ 14135] INFO - api.vfs.impl.local.FileWatcher - Native file watcher is operational.
2016-03-08 15:14:41,844 [ 17489] INFO - lij.diagnostic.DebugLogManager - Set DEBUG for the following categories: []
2016-03-08 15:14:44,532 [ 20177] INFO - rains.ide.BuiltInServerManager - built-in server started, port 63343
2016-03-08 15:14:51,798 [ 27443] INFO - TestNG Runner - Create TestNG Template Configuration
2016-03-08 15:14:52,545 [ 28190] INFO - ellij.project.impl.ProjectImpl - 21 project components initialized in 4439 ms
2016-03-08 15:14:52,545 [ 28190] INFO - le.impl.ModuleManagerComponent - 0 module(s) loaded in 0 ms
2016-03-08 15:15:03,549 [ 39194] INFO - pl.stores.ApplicationStoreImpl - 88 application components initialized in 30087 ms
2016-03-08 15:15:04,818 [ 40463] INFO - .intellij.idea.IdeaApplication - App initialization took 44843 ms
2016-03-08 15:15:15,861 [ 51506] INFO - TestNG Runner - Create TestNG Template Configuration
2016-03-08 15:15:18,193 [ 53838] INFO - ellij.project.impl.ProjectImpl - 142 project components initialized in 6884 ms
2016-03-08 15:15:19,046 [ 54691] INFO - le.impl.ModuleManagerComponent - 2 module(s) loaded in 853 ms
2016-03-08 15:15:30,622 [ 66267] INFO - indexing.UnindexedFilesUpdater - Indexable files iterated in 8454 ms
2016-03-08 15:15:31,511 [ 67156] INFO - #com.jetbrains.cidr.lang - Clearing symbols finished in 0 s.
2016-03-08 15:15:31,613 [ 67258] INFO - #com.jetbrains.cidr.lang - Loading symbols finished in 0 s.
2016-03-08 15:15:31,721 [ 67366] INFO - #com.jetbrains.cidr.lang - Building symbols finished in 0 s.
2016-03-08 15:15:31,806 [ 67451] INFO - #com.jetbrains.cidr.lang - Saving symbols finished in 0 s.
2016-03-08 15:15:38,983 [ 74628] INFO - ls.idea.gradle.GradleSyncState - Started sync with Gradle for project 'Hello'.
2016-03-08 15:15:42,082 [ 77727] INFO - s.plugins.gradle.GradleManager - Instructing gradle to use java from C:/Program Files/Java/jdk1.8.0_40
2016-03-08 15:15:42,170 [ 77815] INFO - s.plugins.gradle.GradleManager - Instructing gradle to use java from C:/Program Files/Java/jdk1.8.0_40
2016-03-08 15:15:42,798 [ 78443] INFO - util.EmbeddedDistributionPaths - Looking for embedded Maven repo at 'C:\Program Files\Android\Android Studio\gradle\m2repository'
2016-03-08 15:15:44,554 [ 80199] INFO - .project.GradleExecutionHelper - Passing command-line args to Gradle Tooling API: [-Pandroid.injected.build.model.only=true, -Pandroid.injected.build.model.only.advanced=true, -Pandroid.injected.invoked.from.ide=true, --init-script, C:\Users\Administrator\AppData\Local\Temp\asLocalRepo53.gradle, --init-script, C:\Users\Administrator\AppData\Local\Temp\ijinit31.gradle]
2016-03-08 15:16:03,871 [ 99516] INFO - tartup.impl.StartupManagerImpl - D:\Project\Hello\.idea\misc.xml case-sensitivity: false
2016-03-08 15:16:09,525 [ 105170] INFO - lij.tasks.impl.TaskManagerImpl - Updating issues cache (every 20 min)
2016-03-08 15:16:10,723 [ 106368] INFO - CompilerWorkspaceConfiguration - Available processors: 4
2016-03-08 15:16:11,201 [ 106846] INFO - attrs.AttributeDefinitionsImpl - Found tag with unknown parent: AndroidManifest.AndroidManifestCompatibleScreens
2016-03-08 15:16:11,201 [ 106846] INFO - attrs.AttributeDefinitionsImpl - Found tag with unknown parent: AndroidManifest.AndroidManifestSupportsInput
2016-03-08 15:16:17,403 [ 113048] INFO - tor.impl.FileEditorManagerImpl - Project opening took 66279 ms
2016-03-08 15:16:19,021 [ 114666] INFO - nject.config.XPathSupportProxy - XPath Support is not available
2016-03-08 15:19:48,535 [ 324180] INFO - on.console.RunIdeConsoleAction - Loading javax.script.* engines...
2016-03-08 15:19:49,052 [ 324697] INFO - on.console.RunIdeConsoleAction - org.codehaus.groovy.jsr223.GroovyScriptEngineFactory: *.groovy: Groovy/2.3.9 (Groovy Scripting Engine/2.0)
2016-03-08 15:20:29,379 [ 365024] WARN - options.ex.ConfigurableWrapper - XML does not provide id for class com.android.tools.idea.run.CloudTestingConfigurable
2016-03-08 15:20:30,007 [ 365652] WARN - ConfigurableExtensionPointUtil - Can't find parent for project.propCompiler (Compiler)
2016-03-08 15:25:18,774 [ 654419] WARN - options.ex.ConfigurableWrapper - XML does not provide id for class com.android.tools.idea.run.CloudTestingConfigurable
2016-03-08 15:25:18,782 [ 654427] WARN - ConfigurableExtensionPointUtil - Can't find parent for project.propCompiler (Compiler)
2016-03-08 15:28:49,224 [ 864869] INFO - tools.idea.ddms.adb.AdbService - Initializing adb using: C:\Users\Administrator\AppData\Local\Android\sdk\platform-tools\adb.exe, client support = true
2016-03-08 15:28:54,211 [ 869856] INFO - tools.idea.ddms.adb.AdbService - Successfully connected to adb
2016-03-08 15:28:54,213 [ 869858] INFO - nitor.AndroidToolWindowFactory - Successfully obtained debug bridge
2016-03-08 15:29:04,093 [ 879738] INFO - android.run.AndroidDebugRunner - device unauthorized.
This adb server's $ADB_VENDOR_KEYS is not set
Try 'adb kill-server' if that seems wrong.
Otherwise check for a confirmation dialog on your device.
com.android.ddmlib.AdbCommandRejectedException: device unauthorized.
This adb server's $ADB_VENDOR_KEYS is not set
Try 'adb kill-server' if that seems wrong.
Otherwise check for a confirmation dialog on your device.
at com.android.ddmlib.AdbHelper.setDevice(AdbHelper.java:855)
at com.android.ddmlib.AdbHelper.executeRemoteCommand(AdbHelper.java:458)
at com.android.ddmlib.AdbHelper.executeRemoteCommand(AdbHelper.java:388)
at com.android.ddmlib.AdbHelper.executeRemoteCommand(AdbHelper.java:357)
at com.android.ddmlib.Device.executeShellCommand(Device.java:568)
at org.jetbrains.android.util.AndroidUtils.executeCommandOnDevice(AndroidUtils.java:396)
at org.jetbrains.android.logcat.AndroidLogcatUtil.startLogging(AndroidLogcatUtil.java:67)
at org.jetbrains.android.logcat.AndroidLogcatUtil.access$100(AndroidLogcatUtil.java:46)
at org.jetbrains.android.logcat.AndroidLogcatUtil$4.run(AndroidLogcatUtil.java:132)
at com.intellij.openapi.application.impl.ApplicationImpl$8.run(ApplicationImpl.java:400)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
at org.jetbrains.ide.PooledThreadExecutor$1$1.run(PooledThreadExecutor.java:56)
2016-03-08 15:29:58,949 [ 934594] INFO - openapi.editor.impl.EditorImpl - Cache hits:4096, total requests:4317,null
I'm using vstest to execute tests on local.
"C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\CommonExtensions\Microsoft\TestWindow\vstest.console.exe\" "C:\Debug\Solution.dll /Tests:VerifyTest1,VerifyTest2 /Logger:trx"
And over console i receive output something like this -
Passed VerifyTest1
Failed VerifyTest2
Standard Output Messages:
TestContext Messages:
1/29/2016 21:50:00 - START - START : [VerifyTest2]
1/29/2016 21:50:00 - INFO - Operating System - Microsoft Windows 10 Enterprise
1/29/2016 21:50:00 - INFO - Test Environment - Test1
1/29/2016 21:50:00 - INFO - Test Environment - Test1
1/29/2016 21:50:00 - INFO - File updated
1/29/2016 21:50:02 - INFO - Login Complete! via UI API's
1/29/2016 21:50:03 - INFO - eb481527-49f6-49bc-a9ca-9ccf4e10d12a submitted successfully.
1/29/2016 21:50:11 - PASS - Return created through UI
1/29/2016 21:50:11 - INFO - Checking Process launched or NOT
1/29/2016 21:50:11 - INFO - Process: My.CommonUIFramework.Shell is launched
1/29/2016 21:50:11 - INFO - Terminating the Process: My.CommonUIFramework.Shell
1/29/2016 21:50:11 - INFO - Checking Process launched or NOT
1/29/2016 21:50:11 - INFO - Process: My.Xion.DataMigration.UI is NOT launched
1/29/2016 21:50:12 - INFO - Launched the Application : My.CommonUIFramework.Shell
1/29/2016 21:50:12 - INFO - Checking Process launched or NOT
Now, i don't want the debug trace with all the info when a test fails on Console. I just want passed or failed result on Console. Is there a way to do that. I know that i can see the result on trx file but i just wanted to know is there a way to suppress the debug trace or Standard Output Messages on Console.
You May Want to Disable your trace Logs. You can do it thru multiple channels. Try as mentioned in here based on ur VSTS & .Net version. https://msdn.microsoft.com/en-us/library/jj159363(v=vs.120).aspx
0 is the setting for disabling traces.
Using MSTest instead of VSTest solved the purpose of my problem.
environment:
Webstorm v10.0.4
Node.js v0.12.5
Windows 8.1
Ubuntu 14.04
Just as the image showing below, on the pannel of creating 'Node.js Express App', Webstorm only finds Node and npm, but can not recognize Express.
Of course Express is installed globally, and I can create a Express project via express-generator on terminal.
➜ ~ npm -g list -depth=0
/usr/local/lib
├── bower#1.4.1
├── cheerio#0.19.0
├── express#4.13.0
├── express-generator#4.12.4
├── npm#2.11.2
└── nrm#0.2.5
And the idea.log as follow, not detail messages:
[ 0] INFO - #com.intellij.idea.Main - ------------------------------------------------------ IDE STARTED ------------------------------------------------------
[ 93] INFO - #com.intellij.idea.Main - IDE: WebStorm (build #WS-141.1550, 12 Jun 2015 00:00)
[ 93] INFO - #com.intellij.idea.Main - OS: Windows 8 (6.2, x86)
[ 93] INFO - #com.intellij.idea.Main - JRE: 1.8.0_40-b26 (Oracle Corporation)
[ 93] INFO - #com.intellij.idea.Main - JVM: 25.40-b25 (Java HotSpot(TM) Server VM)
[ 109] INFO - #com.intellij.idea.Main - JVM Args: -Xms128m -Xmx512m -XX:MaxPermSize=250m -XX:ReservedCodeCacheSize=150m -XX:+UseConcMarkSweepGC -XX:SoftRefLRUPolicyMSPerMB=50 -ea -Dsun.io.useCanonCaches=false -Djava.net.preferIPv4Stack=true -Djb.vmOptions=D:\WebStorm 10.0.4\bin\WebStorm.exe.vmoptions -Xbootclasspath/a:D:\WebStorm 10.0.4\lib\boot.jar -Didea.platform.prefix=WebStorm -Didea.no.jre.check=true -Didea.paths.selector=WebStorm10
[ 281] INFO - #com.intellij.idea.Main - JNA library loaded (32-bit) in 172 ms
[ 296] INFO - penapi.util.io.win32.IdeaWin32 - Native filesystem for Windows is operational
[ 328] INFO - #com.intellij.idea.Main - Using "FocusKiller" library to prevent focus stealing.
[ 1920] INFO - llij.ide.plugins.PluginManager - Cannot find optional descriptor js-nashorn-support.xml
[ 3094] INFO - llij.ide.plugins.PluginManager - 48 plugins initialized in 1909 ms
[ 3110] INFO - llij.ide.plugins.PluginManager - Loaded bundled plugins: ASP (0.1), AngularJS (141.1550), CSS Support, CVS Integration (11), CoffeeScript (2.0), Cucumber.js (141.1550), Dart (141.1550), EJS (141.1550), EditorConfig (1.0), File Watchers (141.1550), Gherkin (999.999), Git Integration (8.1), GitHub, HAML, HTML Tools (2.0), Handlebars/Mustache (141.1550), IDEA CORE, IntelliLang (8.0), JSTestDriver Plugin (141.1550), Jade (141.1550), Java Server Pages Integration (1.0), JavaScript Debugger (1.0), JavaScript Intention Power Pack (0.9.4), JavaScript Support (1.0), Karma (141.1550), LESS support, LiveEdit (999.0), Meteor (141.1550), NodeJS (141.1550), Perforce Integration (2.0), PhoneGap/Cordova Plugin (141.1550), Polymer & Web Components (141.1550), QuirksMode, REST Client, Refactor-X (2.01), Remote Hosts Access (0.1), SASS support, Spy-js (141.1550), Stylus support (141.1550), Subversion Integration (1.1), Task Management (1.0), Terminal (0.1), TextMate bundles support (VERSION), W3C Validators (2.0), XPathView + XSLT Support (4), XSLT-Debugger (1.4), YAML, hg4idea (10.0)
[ 4391] INFO - ellij.util.io.PagedFileStorage - lower=100; upper=200; buffer=10; max=498008064
[ 4469] INFO - api.vfs.impl.local.FileWatcher - Starting file watcher: D:\WebStorm 10.0.4\bin\fsnotifier.exe
[ 4516] INFO - api.vfs.impl.local.FileWatcher - Native file watcher is operational.
[ 5474] INFO - lij.diagnostic.DebugLogManager - Set DEBUG for the following categories: []
[ 6709] INFO - rains.ide.BuiltInServerManager - built-in server started, port 63343
[ 8931] INFO - pl.stores.ApplicationStoreImpl - 77 application components initialized in 5758 ms
[ 8965] INFO - .intellij.idea.IdeaApplication - App initialization took 10956 ms
[ 9614] INFO - ellij.project.impl.ProjectImpl - 16 project components initialized in 258 ms
[ 9614] INFO - le.impl.ModuleManagerComponent - 0 module(s) loaded in 0 ms
[ 17941] INFO - odejs.packages.NodePackageUtil - Loading node package info for express-generator ...
[ 20427] INFO - odejs.packages.NodePackageUtil - Info for express-generator node package loaded successfully in 2478.9 ms
[ 21655] INFO - odejs.packages.NodePackageUtil - Loading node package info for express-generator ...
[ 22243] INFO - odejs.packages.NodePackageUtil - Info for express-generator node package loaded successfully in 577.0 ms
This problem is occured both on Ubuntu and Windows.
Your help is appreciated!
Updated:
Just as shown below, I use nrm to select the fastest npm mirror -- taobao, and Webstorm goes wrong with it. When changed back to npm' main repository,Webstormcan fetchexpress-generator` info, and everything is OK. Strange!
C:\Users\honghe>nrm ls
npm ---- https://registry.npmjs.org/
cnpm --- http://r.cnpmjs.org/
* taobao - http://registry.npm.taobao.org/
edunpm - http://registry.enpmjs.org/
eu ----- http://registry.npmjs.eu/
au ----- http://registry.npmjs.org.au/
sl ----- http://npm.strongloop.com/
nj ----- https://registry.nodejitsu.com/
pt ----- http://registry.npmjs.pt/
C:\Users\honghe>nrm test
npm ---- 1646ms
cnpm --- 1275ms
* taobao - 4388ms
edunpm - 994ms
eu ----- 2422ms
au ----- 1040ms
sl ----- 1369ms
nj ----- 2176ms
pt ----- Fetch Error
Initially, WebStorm installs specified version of express-generator package in temporary directory. Then WebStorm uses it to generate a new Express project. WebStorm doesn't use already installed express or express-generator packages.
BTW, express-generator always installs express package locally to a new project, so already installed express packages cannot be reused anyway.
According to the screenshot, the problem is that Version: Unavailable (version of express-generator). The cause should be specified at the bottom of the dialog, below CSS combobox. Not sure, but probably, it might be caused by the lack of the Internet connection. More detailed error description can be found in idea.log (on the main menu "Help | Show Log in Explorer").
I stumbled on this question while looking for a resolution. Mine was a syntax error in the 'package.json' file. Either in the main project directory or the node install within Program Files. The IDE doesn't flag the error, it just states that its 'Unavailible'.
To resolve this do the following, open CMD - within the folder for the node instalation, Delete the package.json along with the node_modules folder. (Ensure the non default ones are backed up so you can get them back) Then run:
npm init
This will intialise npm and restore the default packages and package.json. This will in turn restore express-generator.