atom-beautify sqlparse中文乱码|Could not find ‘sqlFormat‘ Beautify 0.28.7

1、atom-beautify sqlparse中文乱码

atom-beautify底层调用Python3,故需设置默认编码为UTF-8

解决办法:添加以下系统变量

  • 参数:PYTHONIOENCODING
  • 值:UTF-8

在这里插入图片描述

2、 Could not find ‘sqlformat’. The program may not be installed.

https://github.com/andialbrecht/sqlparse

解决方法:使用文件搜索工具查找sqlformat.exe路径,添加到环境变量中,以下路径供参考:

C:\Users\***\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\local-packages\Python37\Scripts

在这里插入图片描述


 Could not find 'sqlformat'. The program may not be installed.

See sqlformat installation instructions at https://github.com/Glavin001/atom-beautify#beautifiers or go to https://github.com/andialbrecht/sqlparse
Your program is properly installed if running 'where.exe sqlformat' in your CMD prompt returns an absolute path to the executable.
Hide Stack Trace
Error: Could not find 'sqlformat'. The program may not be installed.
    at Function.Executable.commandNotFoundError (file:///C:/Users/liguangliang/.atom/packages/atom-beautify/src/beautifiers/executable.coffee:277:10)
    at HybridExecutable.Executable.commandNotFoundError (file:///C:/Users/liguangliang/.atom/packages/atom-beautify/src/beautifiers/executable.coffee:269:18)
    at file:///C:/Users/liguangliang/.atom/packages/atom-beautify/src/beautifiers/executable.coffee:197:22
    at tryCatcher (C:\Users\liguangliang\.atom\packages\atom-beautify\node_modules\bluebird\js\release\util.js:16:23)
    at Promise._settlePromiseFromHandler (C:\Users\liguangliang\.atom\packages\atom-beautify\node_modules\bluebird\js\release\promise.js:547:31)
    at Promise._settlePromise (C:\Users\liguangliang\.atom\packages\atom-beautify\node_modules\bluebird\js\release\promise.js:604:18)
    at Promise._settlePromise0 (C:\Users\liguangliang\.atom\packages\atom-beautify\node_modules\bluebird\js\release\promise.js:649:10)
    at Promise._settlePromises (C:\Users\liguangliang\.atom\packages\atom-beautify\node_modules\bluebird\js\release\promise.js:725:18)
    at _drainQueueStep (C:\Users\liguangliang\.atom\packages\atom-beautify\node_modules\bluebird\js\release\async.js:93:12)
    at _drainQueue (C:\Users\liguangliang\.atom\packages\atom-beautify\node_modules\bluebird\js\release\async.js:86:9)
    at Async._drainQueues (C:\Users\liguangliang\.atom\packages\atom-beautify\node_modules\bluebird\js\release\async.js:102:5)
    at Async.drainQueues (C:\Users\liguangliang\.atom\packages\atom-beautify\node_modules\bluebird\js\release\async.js:15:14)
    at processTicksAndRejections (internal/process/task_queue
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
SQL代码美化程序 SQL Pretty Printer 3.2.8 Copyright 2005-2011, Gudu Software. All Rights Reserved http://www.dpriver.com -------------------------------------------------------- Overview -------- SQL Pretty Printer is a tool that will help you beautify your SQL code. Using hotkey functionality, SQL Pretty Printer can reformat SQL statements for a wide variety of database tools such as Microsoft Query Analyzer, SQL Server Management Studio (SSMS), TOAD and PL/SQL Developer, development environments such as Visual Studio 2003/2005/2008 and Eclipse, and popular editors such as UltraEditor and EditPlus. In addition to beautifying SQL code, SQL Pretty Printer can translate SQL code into C#, Java, PHP, DELPHI and other program languages. SQL Pretty Printer also includes command line functionality, with the ability to format single files, single directories and multiple directories. SQL Pretty Printer is designed to deal with the syntax used by most popular database systems including Microsoft SQL Server, Oracle, IBM DB2, MySQL and Microsoft Access (Informix, Sybase, and PostgreSQL support is currently in development). Output conforms to most of the entry level SQL99 Standard. Add-Ins for SSMS and Visual Studio 2003/2005/2008/2011 are available. APIs for dotnet and COM version are available. features: ** Beautifies SQL statements utilizing highly customizable format options. ** Formats SQL on-the-fly in popular tools and editors using hotkey functionality. ** Minimizes to the system tray for quick access. ** Includes a command line for batch conversion of single files, single directories or directory trees (use the command line API in your own program!) ** Verifies SQL syntax with detailed error information. ** Converts monochrome SQL code into colorful RTF document. ** Converts monochrome SQL code into colorful HTML for easy placement in blogs and forums. ** Converts SQL to various programming languages including C#, Java, DELPHI, PHP and others. ** Currently supports SQL syntax for Microsoft SQL Server, Oracle, IBM DB2, MySQL and Microsoft Access (Informix, Sybase, and PostgreSQL support is currently in development). ** Add-In for SQL Server Management Studio available. ** Add-In for Visual Studio 2003/2005/2008 available. Requirements ------------ Pentium class CPU or higher Windows 95/98/NT/2000/XP/Vista/win7
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值