Skip to content

Instantly share code, notes, and snippets.

@kcleong
Created October 23, 2020 12:37
Show Gist options
  • Save kcleong/eb39aa77bc77bdbcfcec2fc3691938b9 to your computer and use it in GitHub Desktop.
Save kcleong/eb39aa77bc77bdbcfcec2fc3691938b9 to your computer and use it in GitHub Desktop.
(NENV) (plone-webpack) ➜ example-plone-5.2.1 make watch
make -j watch_plone watch_theme
bin/instance fg
sleep 10 # wait for Plone
/Users/leong/projects/plone-webpack/example-plone-5.2.1/eggs/Products.CMFUid-3.0.1-py2.7.egg/Products/CMFUid/UniqueIdHandlerTool.py:24: DeprecationWarning: InitializeClass is deprecated. Please import from AccessControl.class_init.
from App.class_init import InitializeClass
/Users/leong/projects/plone-webpack/example-plone-5.2.1/eggs/Products.GenericSetup-2.0.1-py2.7.egg/Products/GenericSetup/registry.py:16: ImportWarning: Not importing directory '/Users/leong/projects/plone-webpack/example-plone-5.2.1/eggs/Products.GenericSetup-2.0.1-py2.7.egg/Products/GenericSetup/xml': missing __init__.py
from xml.sax import parseString
2020-10-23 14:36:28,661 WARNING [Init:89][MainThread] Class Products.CMFFormController.ControllerPythonScript.ControllerPythonScript has a security declaration for nonexistent method 'ZPythonScriptHTML_changePrefs'
2020-10-23 14:36:28,669 WARNING [Init:89][MainThread] Class Products.CMFFormController.ControllerValidator.ControllerValidator has a security declaration for nonexistent method 'ZPythonScriptHTML_changePrefs'
/Users/leong/projects/plone-webpack/example-plone-5.2.1/eggs/Products.CMFPlacefulWorkflow-2.0.0-py2.7.egg/Products/CMFPlacefulWorkflow/permissions.py:5: DeprecationWarning: setDefaultRoles is deprecated. Please use addPermission from AccessControl.Permission.
from Products.CMFCore.permissions import setDefaultRoles
2020-10-23 14:36:29,213 WARNING [TemporaryStorage:93][MainThread] DEPRECATED: Usage of the package tempstorage is deprecated, as it is known to randomly lose data.
Especially on Zope 4. For details see https://github.com/zopefoundation/tempstorage/issues/8
and https://github.com/zopefoundation/tempstorage
/Users/leong/projects/plone-webpack/example-plone-5.2.1/eggs/tempstorage-5.1-py2.7.egg/tempstorage/TemporaryStorage.py:94: DeprecationWarning: DEPRECATED: Usage of the package tempstorage is deprecated, as it is known to randomly lose data.
Especially on Zope 4. For details see https://github.com/zopefoundation/tempstorage/issues/8
and https://github.com/zopefoundation/tempstorage
warnings.warn(deprecation_warning, DeprecationWarning)
/Users/leong/projects/plone-webpack/example-plone-5.2.1/eggs/plone.subrequest-1.9.1-py2.7.egg/plone/subrequest/__init__.py:18: DeprecationWarning: zope.site.hooks has moved to zope.component.hooks. Import of zope.site.hooks will become unsupported in Version 5.0
from zope.site.hooks import getSite
/Users/leong/projects/plone-webpack/example-plone-5.2.1/eggs/plone.app.upgrade-2.0.31-py2.7.egg/plone/app/upgrade/__init__.py:167: DeprecationWarning: LockItem is deprecated. Please import from OFS.LockItem.
from webdav.LockItem import LockItem
/Users/leong/projects/plone-webpack/example-plone-5.2.1/eggs/zope.configuration-4.3.1-py2.7.egg/zope/configuration/config.py:240: DeprecationWarning: IObjectEvent is deprecated. Import from zope.interface.interfaces
obj = getattr(mod, oname)
/Users/leong/projects/plone-webpack/example-plone-5.2.1/eggs/plone.app.textfield-1.3.2-py2.7.egg/plone/app/textfield/utils.py:10: DeprecationWarning: ComponentLookupError is deprecated. Import from zope.interface.interfaces
from zope.component.interfaces import ComponentLookupError
/Users/leong/projects/plone-webpack/example-plone-5.2.1/eggs/plone.app.content-3.7.4-py2.7.egg/plone/app/content/browser/vocabulary.py:10: DeprecationWarning: IFieldPermissionChecker is deprecated. Import IFieldPermissionChecker from plone.app.z3cform.interfaces instead
from plone.app.widgets.interfaces import IFieldPermissionChecker
2020-10-23 14:36:30,825 INFO [chameleon.config:38][MainThread] directory cache: /Users/leong/projects/plone-webpack/example-plone-5.2.1/var/cache.
/Users/leong/projects/plone-webpack/example-plone-5.2.1/eggs/zope.configuration-4.3.1-py2.7.egg/zope/configuration/config.py:240: DeprecationWarning: IComponentRegistry is deprecated. Import from zope.interface.interfaces
obj = getattr(mod, oname)
/Users/leong/projects/plone-webpack/example-plone-5.2.1/eggs/zope.configuration-4.3.1-py2.7.egg/zope/configuration/config.py:240: DeprecationWarning: LockableItem is deprecated. Please import from OFS.Lockable.
obj = getattr(mod, oname)
/Users/leong/projects/plone-webpack/example-plone-5.2.1/eggs/plone.schemaeditor-2.1.0-py2.7.egg/plone/schemaeditor/utils.py:6: DeprecationWarning: ObjectEvent is deprecated. Import from zope.interface.interfaces
from zope.component.interfaces import ObjectEvent
/Users/leong/projects/plone-webpack/example-plone-5.2.1/eggs/plone.app.layout-3.4.0-py2.7.egg/plone/app/layout/viewlets/common.py:19: DeprecationWarning: ILanguageSchema is deprecated. It has been moved to plone.i18n.interfaces, import from there instead.
from Products.CMFPlone.interfaces.controlpanel import ILanguageSchema
make -C resources watch
rm -f -r theme
yarn run watch
yarn run v1.22.10
warning package.json: No license field
$ webpack-dev-server
/Users/leong/projects/plone-webpack/example-plone-5.2.1/eggs/zope.configuration-4.3.1-py2.7.egg/zope/configuration/config.py:240: DeprecationWarning: LazyMap is deprecated. Please import from ZTUtils.Lazy.
obj = getattr(mod, oname)
/Users/leong/projects/plone-webpack/example-plone-5.2.1/eggs/zope.configuration-4.3.1-py2.7.egg/zope/configuration/config.py:240: DeprecationWarning: LazyCat is deprecated. Please import from ZTUtils.Lazy.
obj = getattr(mod, oname)
/Users/leong/projects/plone-webpack/example-plone-5.2.1/eggs/plone.app.layout-3.4.0-py2.7.egg/plone/app/layout/globals/portal.py:11: DeprecationWarning: ILanguageSchema is deprecated. It has been moved to plone.i18n.interfaces, import from there instead.
from Products.CMFPlone.interfaces import ILanguageSchema
/Users/leong/projects/plone-webpack/example-plone-5.2.1/eggs/Products.PluggableAuthService-2.2.1-py2.7.egg/Products/PluggableAuthService/plugins/exportimport.py:19: ImportWarning: Not importing directory '/Users/leong/projects/plone-webpack/example-plone-5.2.1/eggs/Products.PluggableAuthService-2.2.1-py2.7.egg/Products/PluggableAuthService/plugins/xml': missing __init__.py
from xml.dom.minidom import parseString
/Users/leong/projects/plone-webpack/example-plone-5.2.1/eggs/zope.configuration-4.3.1-py2.7.egg/zope/configuration/config.py:225: ImportWarning: Not importing directory '/Users/leong/projects/plone-webpack/example-plone-5.2.1/eggs/plone.app.iterate-3.3.13-py2.7.egg/plone/app/iterate/profiles': missing __init__.py
__import__(mname)
ℹ 「wds」: Project is running at http://localhost:9000/
ℹ 「wds」: webpack output is served from /Plone/++theme++example/
ℹ 「wds」: Content not from webpack is served from /Users/leong/projects/plone-webpack/example-plone-5.2.1/resources
/Users/leong/projects/plone-webpack/example-plone-5.2.1/eggs/plone.restapi-6.1.0-py2.7.egg/plone/restapi/serializer/catalog.py:5: DeprecationWarning: Lazy is deprecated. Please import from ZTUtils.Lazy.
from Products.ZCatalog.Lazy import Lazy
/Users/leong/projects/plone-webpack/example-plone-5.2.1/eggs/plone.app.theming-4.0.4-py2.7.egg/plone/app/theming/plugins/utils.py:90: DeprecationWarning: This method will be removed in future versions. Use 'parser.read_file()' instead.
parser.readfp(fp)
2020-10-23 14:36:35,658 INFO [Zope:45][MainThread] Ready to handle requests
Starting server in PID 70405.
/Users/leong/projects/plone-webpack/example-plone-5.2.1/eggs/waitress-1.4.2-py2.7.egg/waitress/adjustments.py:445: DeprecationWarning: In future versions of Waitress clear_untrusted_proxy_headers will be set to True by default. You may opt-out by setting this value to False, or opt-in explicitly by setting this to True.
DeprecationWarning,
Serving on http://0.0.0.0:8080
/Users/leong/projects/plone-webpack/example-plone-5.2.1/resources/node_modules/sync-rpc/lib/index.js:127
throw res.error;
^
Error: spawnSync nc ENOBUFS
at Object.spawnSync (node:internal/child_process:1067:20)
at spawnSync (node:child_process:622:24)
at Object.nativeNC [as fastestFunction] (/Users/leong/projects/plone-webpack/example-plone-5.2.1/resources/node_modules/sync-rpc/lib/index.js:90:10)
at sendMessage (/Users/leong/projects/plone-webpack/example-plone-5.2.1/resources/node_modules/sync-rpc/lib/index.js:118:29)
at /Users/leong/projects/plone-webpack/example-plone-5.2.1/resources/node_modules/sync-rpc/lib/index.js:159:25
at request (/Users/leong/projects/plone-webpack/example-plone-5.2.1/resources/node_modules/sync-request/lib/index.js:28:15)
at PlonePlugin.get (/Users/leong/projects/plone-webpack/example-plone-5.2.1/resources/node_modules/plonetheme-webpack-plugin/index.js:713:22)
at /Users/leong/projects/plone-webpack/example-plone-5.2.1/resources/node_modules/plonetheme-webpack-plugin/index.js:775:40
at eval (eval at create (/Users/leong/projects/plone-webpack/example-plone-5.2.1/resources/node_modules/tapable/lib/HookCodeFactory.js:32:10), <anonymous>:43:1)
at Array.<anonymous> (/Users/leong/projects/plone-webpack/example-plone-5.2.1/resources/node_modules/enhanced-resolve/lib/FileExistsPlugin.js:24:14)
at Storage.finished (/Users/leong/projects/plone-webpack/example-plone-5.2.1/resources/node_modules/enhanced-resolve/lib/CachedInputFileSystem.js:55:16)
at /Users/leong/projects/plone-webpack/example-plone-5.2.1/resources/node_modules/enhanced-resolve/lib/CachedInputFileSystem.js:91:9
at /Users/leong/projects/plone-webpack/example-plone-5.2.1/resources/node_modules/graceful-fs/polyfills.js:282:31
at FSReqCallback.oncomplete (node:fs:183:21) {
errno: -55,
code: 'ENOBUFS',
syscall: 'spawnSync nc',
path: 'nc',
spawnargs: [ '127.0.0.1', 64314 ]
}
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
make[2]: *** [watch] Error 1
make[1]: *** [watch_theme] Error 2
make[1]: *** Waiting for unfinished jobs....
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment