atom-project-plus icon indicating copy to clipboard operation
atom-project-plus copied to clipboard

Doesn't save projects.

Open trusktr opened this issue 9 years ago • 15 comments

Not sure how it works, but I set the "Project Home" setting to ~/.atom/session, and then I run the Project Plus: Save command, which shows the green success notification, but when I press cmd-ctrl-p to see projects, the list is empty.

trusktr avatar Jun 12 '16 10:06 trusktr

If I remove the setting, it works. Where is it saving the projects by default? The UI doesn't show the default value:

screen shot 2016-06-12 at 3 04 51 am

trusktr avatar Jun 12 '16 10:06 trusktr

@trusktr Hmm.. Perhaps the setting is badly worded. It's older and Project Plus: Save was added much later.

Project Home is strictly a filter for the project finder. Normal/default operation of project-plus uses auto-discovery and the setting is intended to reign in the auto-discovery to a single folder (and all its children).

Projects saved via Project Plus: Save are found in ~/.atom/projects.cson -- there should be a command Project Plus: Edit Projects to open that file. That save command is intended for use if auto-discovery is disabled.

mehcode avatar Jun 12 '16 10:06 mehcode

For sure. So with the default Project Home option, where does the state get saved (open tabs, panes, cursor location, etc)?

trusktr avatar Jun 12 '16 16:06 trusktr

~~I'm having this issue as well. Could you upload an example projects.cson? That would solve my problem.~~

Okay, so I didn't know what the Command Palette was, so what?

nanohard avatar Jun 17 '16 19:06 nanohard

For sure. So with the default Project Home option, where does the state get saved (open tabs, panes, cursor location, etc)?

@trusktr This package actually doesn't save your state. Atom does. You can find it by opening up developer tools, and going to resources. It's under IndexedDB.


@nanohard Did you figure out what you were trying to figure out?

mehcode avatar Jun 20 '16 05:06 mehcode

@mehcode Yeah, I thought the command palette was the same as what pops up when you press the keyboard shortcut for this plugin. Works great for me. Thanks for this.

nanohard avatar Jun 20 '16 10:06 nanohard

I have the same issue but even with Project Home unset. When I save the project, I got the green notification but the projects.cson file is not modified. As a workaround I used project-manager to save the project.

nomoth avatar Sep 23 '16 10:09 nomoth

Same issue. I'm running project-plus completely vanilla. When I save I get the green checkmark, but when I go looking for them it says that no projects are saved.

pt8o avatar Oct 07 '16 18:10 pt8o

@nomoth @suprko Any console errors in Atom's inspector (View > Developer > Toggle Developer Tools)?

willdawsonme avatar Oct 08 '16 16:10 willdawsonme

@willdawsonme one error for me but not sure it concerns project-plus:

helpers.js:92 [Package-Deps] Unable to get loaded package 'usr'
getDependencies @ helpers.js:92

nomoth avatar Oct 12 '16 11:10 nomoth

@nomoth Yeah unlikely to be from this package! Just to clarify, no matter what project you try to save, you get the green success notification but ~/.atom/projects.cson isn't updated and you don't see the new project in the list within atom?

A few things to check:

  • What OS are using?
  • What version of atom?
  • Are there any pending updates for project plus?

Also, just to rule out another conclusion, could you rename projects.cson to projects.cson.backup and try saving again? A new file should be created with the saved project.

willdawsonme avatar Oct 16 '16 00:10 willdawsonme

Running Project Plus: Save had no effect for me, too, but deleting the projects.cson and trying again fixed the issue. Possibly an issue updating the default file?

erbridge avatar Dec 14 '16 22:12 erbridge

Hi there, when you saying run Project Plus: Save, is that the actual command? If so, where do I run this?

Thanks Steve

poomv2 avatar Jan 09 '17 09:01 poomv2

Hi, I also can't save projects anymore. I get this:

Uncaught (in promise) TypeError: _atomProjectUtil2.default.save is not a function
    at SessionProvider.save (~/.atom/packages/project-plus/lib/provider/session.js:131:28)
    at ~/.atom/packages/project-plus/lib/provider-manager.js:33:26
    at Array.map (native)
    at ~/.atom/packages/project-plus/lib/provider-manager.js:32:39
    at ProviderManager.invoke (~/.atom/packages/project-plus/lib/provider-manager.js:31:12)
    at ProviderManager.save (~/.atom/packages/project-plus/lib/provider-manager.js:63:17)
    at atom-workspace.projectPlusSave (~/.atom/packages/project-plus/lib/project-plus.js:40:25)
    at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (/usr/share/atom/resources/app/src/command-registry.js:265:35)
    at /usr/share/atom/resources/app/src/command-registry.js:3:65
    at Object.didConfirmSelection (/usr/share/atom/resources/app/node_modules/command-palette/lib/command-palette-view.js:106:35)
    at SelectListView.confirmSelection (/usr/share/atom/resources/app/node_modules/atom-select-list/src/select-list-view.js:313:26)
    at HTMLDivElement.core:confirm (/usr/share/atom/resources/app/node_modules/atom-select-list/src/select-list-view.js:81:20)
    at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (/usr/share/atom/resources/app/src/command-registry.js:265:35)
    at /usr/share/atom/resources/app/src/command-registry.js:3:65
    at KeymapManager.module.exports.KeymapManager.dispatchCommandEvent (/usr/share/atom/resources/app/node_modules/atom-keymap/lib/keymap-manager.js:610:22)
    at KeymapManager.module.exports.KeymapManager.handleKeyboardEvent (/usr/share/atom/resources/app/node_modules/atom-keymap/lib/keymap-manager.js:401:28)
    at WindowEventHandler.module.exports.WindowEventHandler.handleDocumentKeyEvent (/usr/share/atom/resources/app/src/window-event-handler.js:100:42)
    at HTMLDocument.<anonymous> (/usr/share/atom/resources/app/src/window-event-handler.js:3:65)

gtozzi avatar Jun 20 '17 01:06 gtozzi

@gtozzi I'm getting the same exact error as you. Running latest version of project-plus and [email protected] x64 (macOS Sierra)

billdami avatar Jul 13 '17 15:07 billdami