Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 431149

Summary: [Orionnode] npm update orion deletes the default workspace
Product: [ECD] Orion Reporter: Lee Surprenant <lmsurpre>
Component: NodeAssignee: Project Inbox <orion.server-inbox>
Status: RESOLVED WONTFIX QA Contact:
Severity: normal    
Priority: P3 CC: mamacdon
Version: 6.0   
Target Milestone: ---   
Hardware: PC   
OS: Mac OS X   
Whiteboard:

Description Lee Surprenant CLA 2014-03-25 13:27:11 EDT
To recreate:
1. npm install orion@0.0.25
2. npm start orion
3. add a file to the workspace
4. npm update orion
5. note that the workspace is reset

It looks like npm update replaces the entire orion directory under node_modules.  

This means that it deletes any work I've done within the default workspace (.../node_modules/orion/.workspace).  This is bad.

It also means that it overwrites my orion.conf
Are there other node modules with local config data?  Does the data get wiped upon re-install/update?  If not, I wonder where they are storing their configuration data.
Comment 1 Mark Macdonald CLA 2014-03-25 14:53:10 EDT
My inclination would be to move the default workspace to ${HOME}/.orion/ or %USERPROFILE%\.orion\

For the orion.conf issue, see bug 430426. Allowing a conf file path to be provided would obviate the need to modify the orion.conf in the server install directory.

Not sure what other npm-installed modules do, will investigate and see if they have any better ideas.
Comment 2 John Arthorne CLA 2015-05-05 16:19:06 EDT
Closing as part of a mass clean up of inactive bugs. Please reopen if this problem still occurs or is relevant to you. For more details see:


https://dev.eclipse.org/mhonarc/lists/orion-dev/msg03444.html