Code Monkey home page Code Monkey logo

atom-to-base64's People

Contributors

fentas avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

atom-to-base64's Issues

Base64 insert (css: url(...))

[Enter steps to reproduce below:]

  1. ...
  2. ...

Atom Version: 1.0.11
System: Ubuntu 14.04.3
Thrown From: to-base64 package, v0.4.2

Stack Trace

Uncaught ReferenceError: i is not defined

At /home/user/github/to-base64/lib/to-base64-insert-as-view.coffee:22

ReferenceError: i is not defined
  at ToBase64.<anonymous> (/home/user/github/to-base64/lib/to-base64-insert-as-view.coffee:22:72)
  at IncomingMessage.<anonymous> (/home/user/github/to-base64/lib/to-base64-core.coffee:56:18)
  at emitOne (events.js:77:13)
  at IncomingMessage.emit (events.js:166:7)
  at IncomingMessage.Readable.read (_stream_readable.js:356:10)
  at flow (_stream_readable.js:734:26)
  at resume_ (_stream_readable.js:714:3)
  at _stream_readable.js:701:7
  at process._tickCallback (node.js:357:13)

Commands

     -0:46.8.0 core:undo (atom-text-editor.editor.is-focused)
     -0:45.3.0 command-palette:toggle (atom-text-editor.editor.is-focused)
  2x -0:43.5.0 core:move-down (atom-text-editor.editor.mini.is-focused)
     -0:40.3.0 core:confirm (atom-text-editor.editor.mini.is-focused)
     -0:40.3.0 to-base64:encode (atom-text-editor.editor)
     -0:38 core:undo (atom-text-editor.editor.is-focused)
     -0:17.2.0 command-palette:toggle (atom-text-editor.editor.is-focused)
  2x -0:15.5.0 core:move-down (atom-text-editor.editor.mini.is-focused)
     -0:12.2.0 core:confirm (atom-text-editor.editor.mini.is-focused)
     -0:12.2.0 to-base64:encode (atom-text-editor.editor)
  2x -0:10 core:undo (atom-text-editor.editor.is-focused)
     -0:07.5.0 command-palette:toggle (atom-text-editor.editor.is-focused)
     -0:05.8.0 core:move-down (atom-text-editor.editor.mini.is-focused)
     -0:05.5.0 core:confirm (atom-text-editor.editor.mini.is-focused)
     -0:05.5.0 to-base64:insert (atom-text-editor.editor)
     -0:01.3.0 core:confirm (atom-text-editor.editor.mini.is-focused)

Config

{
  "core": {
    "disabledPackages": [
      "test"
    ]
  },
  "to-base64": {
    "mtypes": {
      "application": {
        "font-woff": {
          "css": {},
          "data": {}
        },
        "x-font-ttf": {
          "css": {},
          "data": {}
        }
      },
      "image": {
        "_": {
          "css": {},
          "data": {},
          "xhtml": {}
        }
      }
    }
  }
}

Installed Packages

# User
atom-beautify, v0.28.14
editor-stats, v0.17.0
file-icons, v1.6.9
git-control, v0.3.0
linter, v1.6.0
linter-jshint, v1.2.0
project-manager, v2.5.2
tabs-to-spaces, v0.11.1
to-base64, v0.4.2
travis-ci-status, v0.18.0
tree-view-git-branch, v0.0.3

# Dev
No dev packages

Uncaught TypeError when searching for a file

  1. Press ⌘⇧P
  2. Type insert and press ↩
  3. Type anything. In my case it was "logo".

Atom Version: 1.0.0
System: Mac OS X 10.11
Thrown From: to-base64 package, v0.4.1

Stack Trace

Uncaught TypeError: Arguments to path.resolve must be strings

At path.js:400

TypeError: Arguments to path.resolve must be strings
  at Object.posix.resolve (path.js:400:13)
  at new PathScanner (/Users/igor1043k/.atom/packages/to-base64/lib/path-scanner.coffee:54:22)
  at Function.<anonymous> (/Users/igor1043k/.atom/packages/to-base64/lib/to-base64-insert-view.coffee:109:27)
  at Function.View.buildHtml (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/atom-space-pen-views/node_modules/space-pen/lib/space-pen.js:123:10)
  at Function.View.render (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/atom-space-pen-views/node_modules/space-pen/lib/space-pen.js:129:19)
  at exports.$$ (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/atom-space-pen-views/node_modules/space-pen/lib/space-pen.js:627:24)
  at ToBase64InsertView.module.exports.ToBase64InsertView.viewForItem (/Users/igor1043k/.atom/packages/to-base64/lib/to-base64-insert-view.coffee:45:5)
  at ToBase64InsertView.module.exports.SelectListView.populateList (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/atom-space-pen-views/lib/select-list-view.js:206:29)
  at ToBase64InsertView.module.exports.ToBase64InsertView.populateList (/Users/igor1043k/.atom/packages/to-base64/lib/to-base64-insert-view.coffee:146:5)
  at /Applications/Atom.app/Contents/Resources/app.asar/node_modules/atom-space-pen-views/lib/select-list-view.js:350:26

Commands

     -0:17.2.0 editor:move-to-first-character-of-line (atom-text-editor.editor.is-focused)
     -0:16.8.0 core:undo (atom-text-editor.editor.is-focused)
     -0:16.4.0 editor:select-to-first-character-of-line (atom-text-editor.editor.is-focused)
     -0:15.1.0 core:move-left (atom-text-editor.editor.is-focused)
     -0:14.1.0 core:move-up (atom-text-editor.editor.is-focused)
  2x -0:13.8.0 core:undo (atom-text-editor.editor.is-focused)
     -0:11.9.0 command-palette:toggle (atom-text-editor.editor.is-focused)
     -0:10.5.0 core:confirm (atom-text-editor.editor.mini.is-focused)
     -0:10.5.0 to-base64:insert (atom-text-editor.editor)
     -0:08.0 core:confirm (atom-text-editor.editor.mini.is-focused)
     -0:07.0 command-palette:toggle (atom-workspace.workspace.scrollbars-visible-when-scrolling.theme-monokai.theme-one-dark-ui)
     -0:05.2.0 editor:consolidate-selections (atom-text-editor.editor.mini.is-focused)
     -0:05.2.0 core:cancel (atom-text-editor.editor.mini.is-focused)
     -0:04.8.0 command-palette:toggle (atom-workspace.workspace.scrollbars-visible-when-scrolling.theme-monokai.theme-one-dark-ui)
     -0:03.6.0 core:confirm (atom-text-editor.editor.mini.is-focused)
     -0:03.6.0 to-base64:insert (atom-workspace.workspace.scrollbars-visible-when-scrolling.theme-monokai.theme-one-dark-ui)

Config

{
  "core": {
    "useReactEditor": true,
    "disabledPackages": [
      "custom-title",
      "term2",
      "term",
      "Sublime-Style-Column-Selection",
      "Zen",
      "maximize-panes",
      "autocomplete-sass"
    ],
    "themes": [
      "one-dark-ui",
      "monokai"
    ]
  }
}

Installed Packages

# User
atom-beautify, v0.28.6
atom-ternjs, v0.6.4
autocomplete-paths, v1.0.2
autocomplete-php, v0.3.6
autocomplete-ruby, v0.1.0
clipboard-history, v0.6.6
color-picker, v2.0.7
editorconfig, v1.0.0
emmet, v2.3.10
file-icons, v1.5.8
highlight-selected, v0.10.1
linter, v1.0.6
linter-coffeelint, v0.3.2
linter-haml, v0.4.0
linter-jshint, v0.1.7
linter-php, v0.0.15
linter-rubocop, v0.2.7
minimap, v4.10.0
minimap-find-and-replace, v4.2.0
minimap-git-diff, v4.1.3
minimap-highlight-selected, v4.3.0
minimap-linter, v0.1.0
minimap-pigments, v0.1.1
minimap-selection, v4.2.0
monokai, v0.14.0
pigments, v0.8.0
symbols-tree-view, v0.9.3
terminal-status, v1.6.8
to-base64, v0.4.1

# Dev
No dev packages

Error updating to 0.5.x - oniguruma

See console output below. Seems to be an error with oniguruma install. Teh debug log file listed in the output does not exist. The temp install directory is cleaned up after install it seems.

No problems with installing version 0.4.2. I performed a complete uninstall / reinstall and it still did not work.

> atom --version
Atom    : 1.12.5
Electron: 1.3.9
Chrome  : 52.0.2743.82
Node    : 6.5.0
>apm --version
apm  1.12.9
npm  3.10.5
node 4.4.5
python 2.7.12
git 2.10.2.windows.1
visual studio

Console Output:

Installing [email protected] to C:\Users\user\.atom\packages failed

> [email protected] install C:\Users\user\AppData\Local\Temp\apm-install-dir-1161027-4104-112pu99\node_modules\to-base6
ode_modules\oniguruma
> node-gyp rebuild


C:\Users\user\AppData\Local\Temp\apm-install-dir-1161027-4104-112pu99\node_modules\to-base64\node_modules\oniguruma>i
ot defined npm_config_node_gyp (node "C:\Users\user\AppData\Local\atom\app-1.12.5\resources\app\apm\node_modules\npm\
\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild )  else (node "C:\Users\user\AppData\Local\atom\a
1.12.5\resources\app\apm\bin\\..\node_modules\node-gyp\bin\node-gyp.js" rebuild )
Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.
MSBUILD : error MSB3428: Could not load the Visual C++ component "VCBuild.exe". To fix this, 1) install the .NET Fram
rk 2.0 SDK, 2) install Microsoft Visual Studio 2005 or 3) add the location of the component to the system path if it
installed elsewhere.  [C:\Users\user\AppData\Local\Temp\apm-install-dir-1161027-4104-112pu99\node_modules\to-base64\n
_modules\oniguruma\build\binding.sln]
C:\Users\user\AppData\Local\Temp\apm-install-dir-1161027-4104-112pu99
`-- (empty)


npm WARN deprecated [email protected]: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
gyp ERR! build error
gyp ERR! stack Error: `C:\Windows\Microsoft.NET\Framework\v4.0.30319\msbuild.exe` failed with exit code: 1
gyp ERR! stack     at ChildProcess.onExit (C:\Users\user\AppData\Local\atom\app-1.12.5\resources\app\apm\node_modules
de-gyp\lib\build.js:276:23)
gyp ERR! stack     at emitTwo (events.js:87:13)
gyp ERR! stack     at ChildProcess.emit (events.js:172:7)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12)
gyp ERR! System Windows_NT 6.1.7601
gyp ERR! command "C:\\Users\\user\\AppData\\Local\\atom\\app-1.12.5\\resources\\app\\apm\\bin\\node.exe" "C:\\Users\\
r\\AppData\\Local\\atom\\app-1.12.5\\resources\\app\\apm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
gyp ERR! cwd C:\Users\user\AppData\Local\Temp\apm-install-dir-1161027-4104-112pu99\node_modules\to-base64\node_module
niguruma
gyp ERR! node -v v4.4.5
gyp ERR! node-gyp -v v3.4.0
gyp ERR! not ok
npm WARN enoent ENOENT: no such file or directory, open 'C:\Users\user\AppData\Local\Temp\apm-install-dir-1161027-410
12pu99\package.json'
npm WARN apm-install-dir-1161027-4104-112pu99 No description
npm WARN apm-install-dir-1161027-4104-112pu99 No repository field.
npm WARN apm-install-dir-1161027-4104-112pu99 No README data
npm WARN apm-install-dir-1161027-4104-112pu99 No license field.
npm ERR! Windows_NT 6.1.7601
npm ERR! argv "C:\\Users\\user\\AppData\\Local\\atom\\app-1.12.5\\resources\\app\\apm\\bin\\node.exe" "C:\\Users\\use
AppData\\Local\\atom\\app-1.12.5\\resources\\app\\apm\\node_modules\\npm\\bin\\npm-cli.js" "--globalconfig" "C:\\User
user\\.atom\\.apm\\.apmrc" "--userconfig" "C:\\Users\\user\\.atom\\.apmrc" "install" "C:\\Users\\user\\AppData\\Local
emp\\d-1161027-4104-1o0mg53\\package.tgz" "--runtime=electron" "--target=1.3.9" "--arch=ia32" "--global-style"
npm ERR! node v4.4.5
npm ERR! npm  v3.10.5
npm ERR! code ELIFECYCLE

npm ERR! [email protected] install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script 'node-gyp rebuild'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the oniguruma package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node-gyp rebuild
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs oniguruma
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls oniguruma
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     C:\Users\user\AppData\Local\Temp\apm-install-dir-1161027-4104-112pu99\npm-debug.log
npm ERR! code 1

Uncaught TypeError: Object.observe is not a function

This happens on the latest 1.12 beta (5) when using the "To Base64" contextual menu in the tree view.

Steps to reproduce:

  1. Select a SVG file on the tree view.
  2. Right click and select "To Base64".

Manually selecting file contents and selecting To Base64 > Encode works fine though.

Atom Version: 1.12.0-beta5
Electron Version: 1.3.6
System: Mac OS X 10.11.6
Thrown From: to-base64 package, v0.4.2

Stack Trace

Uncaught TypeError: Object.observe is not a function

At /Users/proteo/.atom/packages/to-base64/lib/to-base64-core.coffee:43

TypeError: Object.observe is not a function
    at /Users/proteo/.atom/packages/to-base64/lib/to-base64-core.coffee:43:14

Commands

     -5:01.1.0 editor:move-to-first-character-of-line (atom-text-editor.editor.is-focused)
     -5:00.9.0 editor:select-to-end-of-line (atom-text-editor.editor.is-focused)
     -5:00.8.0 core:cut (atom-text-editor.editor.is-focused)
  2x -4:59 core:paste (atom-text-editor.editor.is-focused)
     -4:52 core:backspace (atom-text-editor.editor.is-focused)
     -4:48.8.0 autocomplete-plus:cancel (atom-text-editor.editor.is-focused.autocomplete-active)
  2x -4:47.9.0 core:save (atom-text-editor.editor.is-focused)
     -4:04.2.0 core:paste (atom-text-editor.editor.is-focused)
  2x -4:03.2.0 core:backspace (atom-text-editor.editor.is-focused)
     -4:02.5.0 core:undo (atom-text-editor.editor.is-focused)
     -4:01.7.0 core:backspace (atom-text-editor.editor.is-focused)
     -4:00.5.0 core:save (atom-text-editor.editor.is-focused)
     -1:00.6.0 core:delete (atom-text-editor.editor.is-focused)
     -0:59.6.0 core:save (atom-text-editor.editor.is-focused)
     -0:20.3.0 core:close (atom-text-editor.editor.is-focused)
     -0:00.3.0 to-base64:view (span.name.icon.icon-file-text)

Config

{
  "core": {
    "disabledPackages": [
      "metrics",
      "autosave",
      "background-tips",
      "exception-reporting",
      "language-c",
      "language-clojure",
      "language-csharp",
      "language-go",
      "language-mustache",
      "language-objective-c",
      "language-ruby-on-rails",
      "language-ruby",
      "language-python",
      "language-perl",
      "language-make",
      "language-java",
      "language-toml",
      "open-on-github",
      "spell-check",
      "welcome",
      "language-gfm",
      "symbols-view",
      "deprecation-cop",
      "autocomplete-snippets"
    ],
    "ignoredNames": [
      ".git",
      ".hg",
      ".svn",
      "config.codekit",
      ".vscode",
      "*.sublime-project",
      "*.sublime-workspace",
      ".DS_Store",
      "._*",
      "Thumbs.db"
    ],
    "openEmptyEditorOnStart": false,
    "packagesWithKeymapsDisabled": [
      "tool-bar"
    ],
    "projectHome": "/Users/proteo/Sites",
    "telemetryConsent": "no",
    "themes": [
      "one-dark-ui",
      "proteo-dark-theme"
    ],
    "useCustomTitleBar": true,
    "warnOnLargeFileLimit": 5
  }
}

Installed Packages

# User
atom-beautify, v0.29.13 (active)
atom-drupal-api, v1.0.1 (inactive)
atom-icons, v0.2.2 (active)
atom-minify, v0.7.5 (active)
autocomplete-php, v0.3.7 (active)
block-comment-plus, v0.4.0 (active)
caniuse, v0.9.0 (active)
custom-title, v1.0.1 (active)
docblockr, v0.8.7 (active)
docker, v0.7.0 (inactive)
drupal, v1.8.0 (active)
editorconfig, v1.7.2 (active)
escape-utils, v0.5.3 (inactive)
fold-lines, v0.2.1 (active)
git-control, v0.8.2 (inactive)
highlight-selected, v0.11.2 (active)
language-docker, v1.1.7 (active)
linter, v1.11.18 (active)
linter-drupalcs, v1.4.1 (active)
linter-less, v2.6.0 (active)
linter-php, v1.3.1 (active)
linter-sass-lint, v1.7.1 (active)
native-color-picker, v0.2.0 (inactive)
php-integrator-autocomplete-plus, v1.1.5 (active)
php-integrator-base, v1.2.6 (active)
php-integrator-linter, v1.2.1 (active)
php-integrator-navigation, v1.0.3 (active)
php-integrator-tooltips, v1.0.4 (active)
pigments, v0.37.0 (active)
project-manager, v3.3.2 (active)
proteo-dark-theme, v1.0.0 (active)
reference-theme, v0.0.0 (inactive)
remember-folds, v0.2.1 (active)
split-diff, v1.0.6 (inactive)
terminal-plus, v0.14.5 (active)
to-base64, v0.4.2 (active)
tool-bar, v1.0.1 (active)
tool-bar-config, v0.1.0 (active)
atom-dark-syntax, v0.27.0 (inactive)
atom-dark-ui, v0.52.0 (inactive)
atom-light-syntax, v0.28.0 (inactive)
atom-light-ui, v0.45.0 (inactive)
base16-tomorrow-dark-theme, v1.3.0 (inactive)
base16-tomorrow-light-theme, v1.3.0 (inactive)
one-dark-ui, v1.6.2 (active)
one-light-ui, v1.6.2 (inactive)
one-dark-syntax, v1.5.0 (inactive)
one-light-syntax, v1.5.0 (inactive)
solarized-dark-syntax, v1.0.5 (inactive)
solarized-light-syntax, v1.0.5 (inactive)
about, v1.7.0 (active)
archive-view, v0.62.0 (active)
autocomplete-atom-api, v0.10.0 (active)
autocomplete-css, v0.13.1 (active)
autocomplete-html, v0.7.2 (active)
autocomplete-plus, v2.31.4 (active)
autocomplete-snippets, v1.11.0 (inactive)
autoflow, v0.27.0 (inactive)
autosave, v0.23.1 (inactive)
background-tips, v0.26.1 (inactive)
bookmarks, v0.42.0 (active)
bracket-matcher, v0.82.2 (active)
command-palette, v0.39.0 (inactive)
deprecation-cop, v0.54.1 (inactive)
dev-live-reload, v0.47.0 (active)
encoding-selector, v0.22.0 (active)
exception-reporting, v0.40.0 (inactive)
find-and-replace, v0.202.0 (active)
fuzzy-finder, v1.4.0 (active)
git-diff, v1.1.0 (active)
go-to-line, v0.31.0 (inactive)
grammar-selector, v0.48.2 (active)
image-view, v0.60.0 (active)
incompatible-packages, v0.26.1 (active)
keybinding-resolver, v0.35.0 (active)
line-ending-selector, v0.5.0 (active)
link, v0.31.2 (inactive)
markdown-preview, v0.158.8 (active)
metrics, v1.0.0 (inactive)
notifications, v0.65.1 (active)
open-on-github, v1.2.1 (inactive)
package-generator, v1.0.1 (inactive)
settings-view, v0.243.1 (active)
snippets, v1.0.3 (active)
spell-check, v0.68.4 (inactive)
status-bar, v1.4.1 (active)
styleguide, v0.47.2 (active)
symbols-view, v0.113.1 (inactive)
tabs, v0.102.2 (active)
timecop, v0.33.2 (active)
tree-view, v0.210.0 (active)
update-package-dependencies, v0.10.0 (active)
welcome, v0.35.1 (inactive)
whitespace, v0.35.0 (active)
wrap-guide, v0.38.2 (active)
language-c, v0.54.0 (inactive)
language-clojure, v0.22.1 (inactive)
language-coffee-script, v0.48.0 (active)
language-csharp, v0.12.1 (inactive)
language-css, v0.40.1 (active)
language-gfm, v0.88.0 (inactive)
language-git, v0.15.0 (active)
language-go, v0.43.0 (inactive)
language-html, v0.46.1 (active)
language-hyperlink, v0.16.1 (active)
language-java, v0.24.0 (inactive)
language-javascript, v0.122.0 (active)
language-json, v0.18.3 (active)
language-less, v0.29.6 (active)
language-make, v0.22.2 (inactive)
language-mustache, v0.13.0 (inactive)
language-objective-c, v0.15.1 (inactive)
language-perl, v0.37.0 (inactive)
language-php, v0.37.3 (active)
language-property-list, v0.8.0 (active)
language-python, v0.45.1 (inactive)
language-ruby, v0.70.2 (inactive)
language-ruby-on-rails, v0.25.1 (inactive)
language-sass, v0.57.0 (active)
language-shellscript, v0.23.0 (active)
language-source, v0.9.0 (active)
language-sql, v0.25.0 (active)
language-text, v0.7.1 (active)
language-todo, v0.29.1 (active)
language-toml, v0.18.1 (inactive)
language-xml, v0.34.12 (active)
language-yaml, v0.27.1 (active)

# Dev
No dev packages

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.