Code Monkey home page Code Monkey logo

Comments (3)

macor161 avatar macor161 commented on August 23, 2024

@jefferyyuan Thanks for creating this issue.

From the code, seems it will show SYNC_SUCCESS_MESSAGE somewhere when sync is finished
Yes, it supposed to display a green popup. It stays there for about 5 seconds.

But it would be great if we know sync is still running, so we are not panic : )
Totally agree, a loading indicator would be pretty useful. I'm going to add a feature request for this.

I will look into the disabled packages, snippets.cson and init.coffee file sync over the weekend to see what's going on.

from atom-package-sync.

macor161 avatar macor161 commented on August 23, 2024

After having a look at the code, it seems that snippers.cson and init.coffee shoud sync:

            switch(fileName) {
                case 'settings.json':
                    this.applyPackageSettings('', JSON.parse(file.content))
                    break

                case 'keymap.cson':
                    fs.writeFileSync(atom.keymaps.getUserKeymapPath(), file.content)
                    break

                case 'styles.less':
                    fs.writeFileSync(atom.styles.getUserStyleSheetPath(), file.content)
                    break

                case 'init.coffee':
                    fs.writeFileSync(atom.config.configDirPath + "/init.coffee", file.content)
                    break

                case 'snippets.cson':
                    fs.writeFileSync(atom.config.configDirPath + "/snippets.cson", file.content)
                    break

                default: break
            }

Can you post the content of your files?

from atom-package-sync.

wvidana avatar wvidana commented on August 23, 2024

Not sure if a similar issue, but just did a fresh install and I don't see any synced packages or settings, though I do get the green popup. Looking at the logs i see erros in finding both files snippers.cson and init.coffee

Error reading file undefined/init.coffee. Probably doesn't exist. Error: ENOENT: no such file or directory, open 'undefined/init.coffee'
    at Object.fs.openSync (fs.js:577)
    at Object.module.(anonymous function) [as openSync] (ELECTRON_ASAR.js:166:20)
    at Object.fs.readFileSync (fs.js:483)
    at Object.fs.readFileSync (ELECTRON_ASAR.js:563)
    at AtomSettingsManager.fileContent (/Users/t2207741/.atom/packages/atom-package-sync/lib/atom-settings-manager.js:261)
    at AtomSettingsManager.getFiles (/Users/t2207741/.atom/packages/atom-package-sync/lib/atom-settings-manager.js:108)
    at AtomSettingsManager.getAtomSettingsChecksum (/Users/t2207741/.atom/packages/atom-package-sync/lib/atom-settings-manager.js:246)
    at AtomSettingsManager.setLastUpdate (/Users/t2207741/.atom/packages/atom-package-sync/lib/atom-settings-manager.js:223)
    at _qlApi.saveAtomSettings.then.result (/Users/t2207741/.atom/packages/atom-package-sync/lib/atom-package-sync.js:286)
fileContent @ /Users/t2207741/.atom/packages/atom-package-sync/lib/atom-settings-manager.js:264
/Users/t2207741/.atom/packages/atom-package-sync/lib/atom-settings-manager.js:264
Error reading file undefined/snippets.cson. Probably doesn't exist. Error: ENOENT: no such file or directory, open 'undefined/snippets.cson'
    at Object.fs.openSync (fs.js:577)
    at Object.module.(anonymous function) [as openSync] (ELECTRON_ASAR.js:166:20)
    at Object.fs.readFileSync (fs.js:483)
    at Object.fs.readFileSync (ELECTRON_ASAR.js:563)
    at AtomSettingsManager.fileContent (/Users/t2207741/.atom/packages/atom-package-sync/lib/atom-settings-manager.js:261)
    at AtomSettingsManager.getFiles (/Users/t2207741/.atom/packages/atom-package-sync/lib/atom-settings-manager.js:109)
    at AtomSettingsManager.getAtomSettingsChecksum (/Users/t2207741/.atom/packages/atom-package-sync/lib/atom-settings-manager.js:246)
    at AtomSettingsManager.setLastUpdate (/Users/t2207741/.atom/packages/atom-package-sync/lib/atom-settings-manager.js:223)
    at _qlApi.saveAtomSettings.then.result (/Users/t2207741/.atom/packages/atom-package-sync/lib/atom-package-sync.js:286)

Both errors on /Users/t2207741/.atom/packages/atom-package-sync/lib/atom-settings-manager.js:264, which is https://github.com/macor161/atom-package-sync/blob/master/lib/atom-settings-manager.js#L264

NOTE

This computer is behind a proxy which already had some issues with installing packages through the GUI, only worked with apm after manually adding some proxy settings

NOTE2

My snippets.cson and init.coffee files do exists, though both are just comment lines

from atom-package-sync.

Related Issues (19)

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.