Giter VIP home page Giter VIP logo

vscode-plonefs's Introduction

Plone File System (PloneFS)

Open Plone sites in Visual Studio Code

Use

Open a Plone Site (Add Plone site to Workspace)

  • Press F1 (Mac Command + Shift + P) to open the Command Pallet
  • Select "Plone File System: Add Plone site to Workspace" (search for "Plone")
  • A dropdown will appear with a list of previously used sites and "new"
  • Click on a site to open or "new" to open a new site
  • If a new site, an input box will appear for the address, enter the address of your site home
  • Enter username (if a previous login has not expired, this and the next step will be skipped)
  • Enter password
  • The site will be added to Visual Studio Code's Explorer

Editing Title / Description / State (and Local CSS if installed)

  • Right-click an entry in Visual Studio Code Explorer
  • Select "Plone Options"
  • A drop down will appear with options you can edit
  • If selected, Local CSS wil open as a document

Note: Files do not have State. The Title and State are also displayed on the status bar for the current active document and can be edited by clicking on them.

Creating a Text Portlet

  • Right-click a File or Folder in Visual Studio Code Explorer
  • Select "Plone Options"
  • Select "Portlets"
  • Select a side
  • Select "+ new"
  • Enter a Header for the Portlet
  • You will be taken back to the Portlets list with your new Portlet added

Editing a Text Portlet

  • Right-click a File or Folder in Visual Studio Code Explorer
  • Select "Plone Options"
  • Select "Portlets"
  • Select a side
  • Select the Text Portlet you want to edit (non Text Portlets are shown, but selecting one will give an error)

Creating Working Copies

  • Right-click a Document in Visual Studio Code Explorer
  • Select "Plone Options"
  • If the Document is not a Working Copy, there will be an option for "Check Out"
  • Select "Check Out"
  • The Working Copy starting with the name "copy_of_" will appear in the current folder

Note: Folders, Files, and Collections cannot be checked out.

Checking in Working Copies

  • Right-click a Working Copy in Visual Studio Code Explorer
  • Select "Plone Options"
  • If the Document is a Working Copy, there will be options for "Check In" and "Cancel Check Out"
  • If you select "Check In" you will need to supply a check in message and press Enter / Return

Missing features

  • Cannot create new Event, News Item, or Collection
  • Portlet header changes not saved until portlet saved
  • no "Exclude from Navigation" setting
  • checking in a working copy causes the original document if opened to be marked dirty (unsaved)
  • cannot edit site root folder Title / Description
  • cannot delete
  • no support for edit history (source control)

vscode-plonefs's People

Contributors

derekdavenport avatar

Stargazers

Nicole avatar

Watchers

James Cloos avatar  avatar

vscode-plonefs's Issues

Encountering issue attempting to open Plone site

What I'm trying to do:

Open Plone site in VS Code.

What happened:

All add-ons seem to reload (just going by the status bar reloading all of the info for addons each time I attempt to open a site), and the site folder appears in the Workspace with no entries below it. It is simply the root of the site and when clicking the triangle icon to expand the folders/files there is nothing there. The below errors are from VS Code dev tool's console.

The sites I've tried:
/research/integrity
/conflictofinterest

What I expected:

The site to open and the files/folders be shown in the file tree in this workspace.

Other probably not important details:

The site I opened previously had not been opened by this add-on for a couple of months at least. I am sure my UofL password has changed since then - if that matters.

I have multiple (two) VS Code windows open when attempting this, only one for working on a Plone site.

These are the errors from the VS Code Dev Tools:

[Extension Host] Activating extension `derekdavenport.vscode-plonefs` failed:  unable to get local issuer certificate
  | _logMessageInConsole | @ | workbench.main.js:3855
-- | -- | -- | --
  | _logOrShowMessage | @ | workbench.main.js:3855
  | (anonymous) | @ | workbench.main.js:3205
  | (anonymous) | @ | workbench.main.js:34
  | n | @ | workbench.main.js:34
  | $onExtensionActivationError | @ | workbench.main.js:3205
  | _doInvokeHandler | @ | workbench.main.js:3252
  | _invokeHandler | @ | workbench.main.js:3252
  | _receiveRequest | @ | workbench.main.js:3251
  | _receiveOneMessage | @ | workbench.main.js:3249
  | _protocol.onMessage.e | @ | workbench.main.js:3248
  | fire | @ | workbench.main.js:77
  | a | @ | workbench.main.js:321
  | e | @ | workbench.main.js:321
  | fire | @ | workbench.main.js:77
  | _receiveMessage | @ | workbench.main.js:330
  | S._socketDisposables.push._socketReader.onMessage.e | @ | workbench.main.js:327
  | fire | @ | workbench.main.js:77
  | acceptChunk | @ | workbench.main.js:323
  | _register._socket.onData.e | @ | workbench.main.js:323
  | t | @ | workbench.main.js:332
  | emit | @ | events.js:182
  | addChunk | @ | _stream_readable.js:279
  | readableAddChunk | @ | _stream_readable.js:264
  | Readable.push | @ | _stream_readable.js:219
  | onread | @ | net.js:636

And:

[Extension Host] Here is the error stack:  RequestError: unable to get local issuer certificate
	at ClientRequest.module.exports.a.exports.o.once.e (/home/<myusername>/.vscode/extensions/derekdavenport.vscode-plonefs-0.4.6/out/extension.js:31:18836)
	at Object.onceWrapper (events.js:273:13)
	at ClientRequest.emit (events.js:187:15)
	at ClientRequest.module.exports.a.exports.a.emit.n (/home/<myusername>/.vscode/extensions/derekdavenport.vscode-plonefs-0.4.6/out/extension.js:151:25893)
	at TLSSocket.socketErrorListener (_http_client.js:382:9)
	at TLSSocket.emit (events.js:182:13)
	at emitErrorNT (internal/streams/destroy.js:82:8)
	at emitErrorAndCloseNT (internal/streams/destroy.js:50:3)
	at process._tickCallback (internal/process/next_tick.js:63:19)

I am running VS Code:
Version: 1.34.0
Commit: a622c65b2c713c890fcf4fbf07cf34049d5fe758
Date: 2019-05-15T21:55:35.507Z
Electron: 3.1.8
Chrome: 66.0.3359.181
Node.js: 10.2.0
V8: 6.6.346.32
OS: Linux x64 4.15.0-51-generic

on Ubuntu 18.04.2 LTS bionic

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.