<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <title>Gulp.watch starting correctly but removing the installed theme</title>
  <link rel="self" href="https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=111560615" />
  <subtitle>Gulp.watch starting correctly but removing the installed theme</subtitle>
  <id>https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=111560615</id>
  <updated>2026-04-06T16:13:51Z</updated>
  <dc:date>2026-04-06T16:13:51Z</dc:date>
  <entry>
    <title>RE: Gulp.watch starting correctly but removing the installed theme</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=111648903" />
    <author>
      <name>Chema Balsas</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=111648903</id>
    <updated>2018-11-23T10:07:55Z</updated>
    <published>2018-11-23T10:07:55Z</published>
    <summary type="html">&lt;p&gt;Hey Claudio, the problem you're seeing has been reported at &lt;a
    href="https://github.com/liferay/liferay-themes-sdk/issues/102"&gt;liferay-themes-sdk#102&lt;/a&gt;&lt;a
  href="https://github.com/liferay/liferay-themes-sdk/issues/95"&gt; &lt;/a&gt;.
  You can track it there.&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;As far as we've been able to observe, there's some problem right now
  with the Gogo Shell, wich is not properly handling our watch
  mechanism. You can see &lt;a
  href="https://issues.liferay.com/browse/LPS-86972"&gt;LPS-86972&lt;/a&gt;
    and &lt;a
  href="https://issues.liferay.com/browse/LPS-87487"&gt;LPS-87487&lt;/a&gt; for
  more information about this.&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;We're looking into this, hope to be able to figure it out soon.&lt;/p&gt;</summary>
    <dc:creator>Chema Balsas</dc:creator>
    <dc:date>2018-11-23T10:07:55Z</dc:date>
  </entry>
  <entry>
    <title>RE: Gulp.watch starting correctly but removing the installed theme</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=111624471" />
    <author>
      <name>Claudio Ferraro</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=111624471</id>
    <updated>2018-11-21T11:45:52Z</updated>
    <published>2018-11-21T11:45:52Z</published>
    <summary type="html">&lt;div&gt;Ciao Iacopo,&lt;/div&gt;
&lt;div&gt;Thank You for Your involvement, I really appreciate it.&lt;/div&gt;
&lt;div&gt;I,&lt;/div&gt;
&lt;div&gt;-Installed a fresh instance of Liferay Tomcat bundle (7.1.1
  GA2).&lt;br /&gt; -Enabled Developer mode.&lt;br /&gt; -Updated Yeoman Theme
  generator.&lt;br /&gt; -Created a new theme with it.&lt;br /&gt; -Ran &amp;quot;gulp
  deploy&amp;quot;, which worked just fine (&amp;quot;2018-11-21 11:34:50.965
  INFO 
  [fileinstall-D:/Gulp_watch_issue/liferay-ce-portal-7.1.1-ga2/osgi/war][ThemeHotDeployListener:108]
  1 theme for test-theme is available for use&amp;quot;)&lt;br /&gt; -Then ran
  &amp;quot;gulp watch&amp;quot;, which unregistered and stopped the
  &amp;quot;test-theme&amp;quot;, and then launched a proxy on localhost:9080.&lt;/div&gt;
&lt;div&gt;The tomcat console only showed&lt;br /&gt; &amp;quot;2018-11-21 11:35:51.049
  INFO 
  [fileinstall-D:/Gulp_watch_issue/liferay-ce-portal-7.1.1-ga2/osgi/war][ThemeHotDeployListener:171]
  1 theme for test-theme was unregistered&lt;br /&gt; 2018-11-21 11:35:51.083
  INFO 
  [fileinstall-D:/Gulp_watch_issue/liferay-ce-portal-7.1.1-ga2/osgi/war][BundleStartStopLogger:42]
  STOPPED test-theme_1.0.0 [946]&amp;quot;&lt;/div&gt;
&lt;div&gt;Which I believe is not the only thing that is supposed to happen.&lt;/div&gt;
&lt;div&gt;I have also checked the .web_bundle_build, and there is no .jar
  file there.&lt;br /&gt; It was there before all updates I have performed,
  however it still was not working properly then.&lt;/div&gt;
&lt;div&gt;
  &lt;br /&gt; Here is my liferay-theme.json file contents:&lt;/div&gt;
&lt;div&gt;{&lt;br /&gt;   &amp;quot;LiferayTheme&amp;quot;: {&lt;br /&gt;    
  &amp;quot;deploymentStrategy&amp;quot;: &amp;quot;LocalAppServer&amp;quot;,&lt;br /&gt;    
  &amp;quot;appServerPath&amp;quot;:
  &amp;quot;D:\\Gulp_watch_issue\\liferay-ce-portal-7.1.1-ga2\\tomcat-9.0.10&amp;quot;,&lt;br /&gt;
      &amp;quot;deployPath&amp;quot;:
  &amp;quot;D:\\Gulp_watch_issue\\liferay-ce-portal-7.1.1-ga2\\deploy&amp;quot;,&lt;br /&gt;
      &amp;quot;url&amp;quot;: &amp;quot;http://localhost:8080&amp;quot;,&lt;br /&gt;    
  &amp;quot;appServerPathPlugin&amp;quot;:
  &amp;quot;D:\\Gulp_watch_issue\\test-theme\\.web_bundle_build&amp;quot;,&lt;br /&gt;
      &amp;quot;deployed&amp;quot;: true,&lt;br /&gt;     &amp;quot;pluginName&amp;quot;:
  &amp;quot;test-theme&amp;quot;,&lt;br /&gt;     &amp;quot;webBundleDir&amp;quot;:
  &amp;quot;watching&amp;quot;&lt;br /&gt;   }&lt;br /&gt; }&lt;/div&gt;
&lt;div&gt;
  &lt;br /&gt; and my package.json if it will be helpful at all&lt;/div&gt;
&lt;div&gt;{&lt;br /&gt;  &amp;quot;devDependencies&amp;quot;: {&lt;br /&gt;   &amp;quot;gulp&amp;quot;:
  &amp;quot;3.9.1&amp;quot;,&lt;br /&gt;   &amp;quot;liferay-theme-tasks&amp;quot;:
  &amp;quot;8.0.0-beta.5&amp;quot;,&lt;br /&gt;   &amp;quot;liferay-theme-deps-7.1&amp;quot;:
  &amp;quot;8.0.0-beta.5&amp;quot;&lt;br /&gt;  },&lt;br /&gt;  &amp;quot;keywords&amp;quot;:
  [&lt;br /&gt;   &amp;quot;liferay-theme&amp;quot;&lt;br /&gt;  ],&lt;br /&gt;
   &amp;quot;liferayTheme&amp;quot;: {&lt;br /&gt;   &amp;quot;baseTheme&amp;quot;:
  &amp;quot;styled&amp;quot;,&lt;br /&gt;   &amp;quot;screenshot&amp;quot;:
  &amp;quot;&amp;quot;,&lt;br /&gt;   &amp;quot;rubySass&amp;quot;: false,&lt;br /&gt;
    &amp;quot;templateLanguage&amp;quot;: &amp;quot;ftl&amp;quot;,&lt;br /&gt;
    &amp;quot;version&amp;quot;: &amp;quot;7.1&amp;quot;&lt;br /&gt;  },&lt;br /&gt;
   &amp;quot;main&amp;quot;: &amp;quot;package.json&amp;quot;,&lt;br /&gt;  &amp;quot;name&amp;quot;:
  &amp;quot;test-theme&amp;quot;,&lt;br /&gt;  &amp;quot;version&amp;quot;:
  &amp;quot;1.0.0&amp;quot;&lt;br /&gt; }&lt;/div&gt;
&lt;div&gt;
  &lt;br /&gt; I hope it helps You get a better picture of the situation.&lt;/div&gt;</summary>
    <dc:creator>Claudio Ferraro</dc:creator>
    <dc:date>2018-11-21T11:45:52Z</dc:date>
  </entry>
  <entry>
    <title>RE: Gulp.watch starting correctly but removing the installed theme</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=111562091" />
    <author>
      <name>Iacopo Colonnelli</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=111562091</id>
    <updated>2018-11-15T14:49:43Z</updated>
    <published>2018-11-15T14:49:43Z</published>
    <summary type="html">&lt;p&gt;Ciao Claudio,&lt;/p&gt;
&lt;p&gt;The fact that the deployed theme is removed from the osgi/war folder
  is correct. Watch task needs to deploy its own version of the theme in
  order to be able to fast deploy modified files instead of recompiling
  the whole thing. And the fact that if you redeploy the whole thing you
  loose the fast deployment is correct too, because you are deploying a
  normal version of the bundle which isn't able to deal with this kind
  of updates.&lt;/p&gt;
&lt;p&gt;What is not correct is the fact that Liferay isn't able to see the
  theme when deployed with gulp watch. The involved jar should be
  created inside .web_bundle_build folder, which should be the one
  pointed by the &amp;quot;appServerPathPlugin&amp;quot; inside your
  liferay-theme.json. Then the watch task executes a GoGo Shell
  connection on your localhost:11311 port by default to initialize a
  watch socket on the server. If you are in developer mode, the port
  should be open. Do you see any error message on Liferay console
  related to WabDeployer or something like that?&lt;/p&gt;
&lt;p&gt;If not, maybe you can try to simply reassign the theme to your site
  after launching gulp watch. If you go to Public Pages or Private Pages
  and click the &amp;quot;Change Current Theme&amp;quot; button, do you see your
  theme among the options?&lt;/p&gt;
&lt;p&gt;Let me know if some of these suggestions did help you ^_^&lt;/p&gt;
&lt;p&gt;In bocca al lupo&lt;/p&gt;</summary>
    <dc:creator>Iacopo Colonnelli</dc:creator>
    <dc:date>2018-11-15T14:49:43Z</dc:date>
  </entry>
  <entry>
    <title>Gulp.watch starting correctly but removing the installed theme</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=111560614" />
    <author>
      <name>Claudio Ferraro</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=111560614</id>
    <updated>2018-11-15T11:32:21Z</updated>
    <published>2018-11-15T11:32:21Z</published>
    <summary type="html">&lt;p&gt;Hello guys.&lt;/p&gt;
&lt;p&gt;We followed this guide:&lt;/p&gt;
&lt;p&gt;https://dev.liferay.com/develop/tutorials/-/knowledge_base/7-1/automatically-deploying-theme-changes&lt;/p&gt;
&lt;p&gt;on liferay-ce-portal-7.1.0-ga1 and liferay-ce-portal-7.1.1-ga2&lt;/p&gt;
&lt;p&gt;in order to publish our changes automatically (HOT) to our localhost
  tomcat environment.&lt;/p&gt;
&lt;p&gt;Sadly as we execute the &amp;quot;gulp watch&amp;quot; command , the proxy is
  created and a new test environment is created correctly as well, but
  our theme installed looks to be dropped off from the Bundle and on the
  terminal we can see this error:&lt;/p&gt;
&lt;p&gt;[http-nio-8080-exec-6][ThemeLocalServiceImpl:230] No theme found for
  specified theme id [theme_id]. Returning the default theme.&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Also in the osgi/war folder of the bundle there is no more WAR file
  of our template.&lt;/p&gt;
&lt;p&gt;We can still deploy again the theme but if we change some static
  content, maybe a css inside our theme , the change is not reflected in
  the Test Proxy Environment.&lt;/p&gt;
&lt;p&gt;Even a browser refresh doesn't help.&lt;/p&gt;
&lt;p&gt;Developer mode is enabled.&lt;/p&gt;
&lt;p&gt;We use this config.&lt;/p&gt;
&lt;p&gt;theme.css.fast.load=false&lt;br /&gt;
  theme.css.fast.load.check.request.parameter=true&lt;br /&gt;
  theme.images.fast.load=false&lt;br /&gt; theme.images.fast.load.check.request.parameter=true&lt;/p&gt;
&lt;p&gt;javascript.fast.load=true&lt;br /&gt; javascript.log.enabled=false&lt;/p&gt;
&lt;p&gt;layout.template.cache.enabled=false&lt;/p&gt;</summary>
    <dc:creator>Claudio Ferraro</dc:creator>
    <dc:date>2018-11-15T11:32:21Z</dc:date>
  </entry>
</feed>
