atom-community / atom-ide-code-format Goto Github PK
View Code? Open in Web Editor NEWCode formatting for Atom-IDE
Home Page: https://atom.io/packages/atom-ide-code-format
License: Other
Code formatting for Atom-IDE
Home Page: https://atom.io/packages/atom-ide-code-format
License: Other
Regarding formatting, I really love the idea of unibeautify. It is written by the same author who wrote atom-beautify.
https://github.com/Unibeautify/
https://github.com/Glavin001/atom-beautify
If we renew atom-beautify, we can get a decent beautifier!
The code of this library (which was originally written by Facebook) uses RxJS for doing something that can be done much simpler using async await
and Atom's built-in subscriptions. It would be great if we can remove all the bloat that RxJS has added to the code.
To do this, we can start from _formatCodeInTextEditor
Hi,
It's not clear which style (yapf/autopep8?) is applied by default. Can you please clarify how one can define it?
Thanks!
No matter what, every time I save my code the way I have it and I want it, this package modifies it as whatever he thinks it should be and I just hate it. Even if I delete this package it automatically installs on start.
[Enter steps to reproduce:]
Atom: 1.57.0 x64
Electron: 9.4.4
OS: Microsoft Windows 10 Home
Thrown From: atom-ide-code-format package 1.0.2
Failed to activate the atom-ide-code-format package
At Cannot find module 'C:\Users\Nick\.atom\packages\atom-ide-code-format\node_modules\log4js\node_modules\debug\src\index.js'. Please verify that the package.json has a valid "main" entry
Error: Cannot find module 'C:\Users\Nick\.atom\packages\atom-ide-code-format\node_modules\log4js\node_modules\debug\src\index.js'. Please verify that the package.json has a valid "main" entry
at tryPackage (internal/modules/cjs/loader.js:301:19)
at Function.Module._findPath (internal/modules/cjs/loader.js:532:18)
at Module._resolveFilename (internal/modules/cjs/loader.js:784:27)
at o._resolveFilename (electron/js2c/renderer_init.js:43:689)
at Function.get_Module._resolveFilename (~/AppData/Local/atom/app-1.57.0/resources/app/static/<embedded>:11:157820)
at Module.require (/app.asar/static/index.js:61:43)
at require (~/AppData/Local/atom/app-1.57.0/resources/app/static/<embedded>:11:149153)
at /packages/atom-ide-code-format/node_modules/log4js/lib/log4js.js:21:15)
at /packages/atom-ide-code-format/node_modules/log4js/lib/log4js.js:158:3)
at Module.get_Module._compile (~/AppData/Local/atom/app-1.57.0/resources/app/static/<embedded>:11:149837)
at Object.value [as .js] (~/AppData/Local/atom/app-1.57.0/resources/app/static/<embedded>:11:153385)
at Module.load (internal/modules/cjs/loader.js:815:32)
at Module._load (internal/modules/cjs/loader.js:727:14)
at Function.Module._load (electron/js2c/asar.js:769:28)
at Module.require (/app.asar/static/index.js:72:46)
at require (~/AppData/Local/atom/app-1.57.0/resources/app/static/<embedded>:11:149153)
at /packages/atom-ide-code-format/dist/main.js:1:248)
at /packages/atom-ide-code-format/dist/main.js:4:3)
at Module.get_Module._compile (~/AppData/Local/atom/app-1.57.0/resources/app/static/<embedded>:11:149837)
at Object.value [as .js] (~/AppData/Local/atom/app-1.57.0/resources/app/static/<embedded>:11:153385)
at Module.load (internal/modules/cjs/loader.js:815:32)
at Module._load (internal/modules/cjs/loader.js:727:14)
at Function.Module._load (electron/js2c/asar.js:769:28)
at Module.require (/app.asar/static/index.js:72:46)
at require (internal/modules/cjs/helpers.js:74:18)
at customRequire (~/AppData/Local/atom/app-1.57.0/resources/app/static/<embedded>:1:802772)
at requireModule (~/AppData/Local/atom/app-1.57.0/resources/app/static/<embedded>:14:1191588)
at Package.requireMainModule (~/AppData/Local/atom/app-1.57.0/resources/app/static/<embedded>:11:3520819)
at Package.activateNow (~/AppData/Local/atom/app-1.57.0/resources/app/static/<embedded>:11:3508803)
at ~/AppData/Local/atom/app-1.57.0/resources/app/static/<embedded>:14:2607
atom-ide-base 3.4.0
atom-ide-code-format 1.0.2
atom-ide-datatip 0.25.0
atom-ide-definitions 0.4.1
atom-ide-hyperclick 1.0.11
atom-ide-javascript 1.5.0
atom-ide-markdown-service 2.1.0
atom-ide-outline 3.1.0
atom-ide-signature-help 0.16.0
atom-python-run 0.9.7
atom-typescript 14.3.2
autocomplete-paths undefined
busy-signal 2.0.1
ide-html 0.7.0
ide-php 0.7.18
ide-python undefined
intentions 2.1.1
javascript-drag-import 0.1.13
linter 3.4.0
linter-eslint 8.6.6
linter-ui-default 3.4.1
php-cs-fixer 4.2.0
[Enter steps to reproduce:]
Atom: 1.58.0 x64
Electron: 9.4.4
OS: Debian GNU/Linux
Thrown From: atom-ide-code-format package 1.0.2
Uncaught Error: ENOENT: no such file or directory, chdir '/home/adsjcsp' -> ''
At internal/process/main_thread_only.js:29
Error: ENOENT: no such file or directory, chdir '/home/adsjcsp' -> ''
at process.chdir (internal/process/main_thread_only.js:29:13)
at process.chdir (/app.asar/node_modules/graceful-fs/polyfills.js:20:9)
at process.chdir (/packages/atom-ide-code-format/node_modules/graceful-fs/polyfills.js:22:11)
at generateCommand (/packages/python-runner/lib/python-runner.js:70:10)
at executePy (/packages/python-runner/lib/python-runner.js:103:12)
at HTMLElement.pythonRunnerExecutePy (/packages/python-runner/lib/python-runner.js:144:38)
at CommandRegistry.handleCommandEvent (/usr/share/atom/resources/app/static/<embedded>:11:352326)
at CommandRegistry.dispatch (/usr/share/atom/resources/app/static/<embedded>:11:350801)
at AtomEnvironment.dispatchContextMenuCommand (/usr/share/atom/resources/app/static/<embedded>:1:786982)
at EventEmitter.t (/usr/share/atom/resources/app/static/<embedded>:1:795036)
at EventEmitter.emit (events.js:223:5)
at Object.onMessage (electron/js2c/renderer_init.js:115:818)
-9:23.2.0 core:backspace (input.hidden-input)
-8:49.4.0 editor:move-to-first-character-of-line (input.hidden-input)
4x -8:49 core:delete (input.hidden-input)
-3:16.3.0 intentions:highlight (input.hidden-input)
-3:16.1.0 core:select-all (input.hidden-input)
-3:14.9.0 intentions:highlight (input.hidden-input)
-3:13.1.0 code-format:format-code (input.hidden-input)
-3:10.2.0 intentions:highlight (input.hidden-input)
-0:29.7.0 outline:reveal-cursor (atom-workspace.workspace.scrollbars-visible-always.theme-one-dark-syntax.theme-one-dark-ui)
-0:28 outline:show-call-hierarchy (atom-workspace.workspace.scrollbars-visible-always.theme-one-dark-syntax.theme-one-dark-ui)
-0:05.1.0 python-runner:executePy (div.line)
atom-ide-base 3.4.0
atom-ide-code-format 1.0.2
atom-ide-datatip 0.25.0
atom-ide-definitions 0.4.2
atom-ide-hyperclick 1.0.11
atom-ide-markdown-service 2.1.0
atom-ide-outline 3.2.0
atom-ide-signature-help 0.16.0
atom-python-run 0.9.7
busy-signal 2.0.1
ide-css 0.4.0
ide-json 0.2.1
intentions 2.1.1
linter 3.4.0
linter-ui-default 3.4.1
platformio-ide-terminal 2.10.1
python-black 0.7.0
python-runner 1.3.0
terminal-tab 0.6.0
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.