yatt / jedi-sakura Goto Github PK
View Code? Open in Web Editor NEWサクラエディタのjediプラグイン
License: MIT License
サクラエディタのjediプラグイン
License: MIT License
「jedi_sakura - コピー.py」みたいなファイル名で補完に失敗する?
要調査
内容
サクラエディタの入力補完機能が実行されたときに、jedi内でエラーが発生し、表示される候補が不完全となる。
再現方法
Anaconda (Python 3.6)をインストールしている状態。インストール時にPATHは設定していないので、プラグインの設定で、python.exeのフルパスを指定する。
以下の2行のテキストにおいて、2行目6文字目(「.」入力直後)でCtrl+Spaceを押下すると、エラーのメッセージボックスが表示される。
文字コード UTF-8、改行コード LF
import numpy
numpy.
原因
jedi内部で実行制御のためにassert文を使用しているが、
jedi-sakura.vbsからの呼び出しにおいて、python.exeにコマンドラインオプション -O (最適化)を指定しており、コンパイル結果がassertを含まないため、適切に実行されない。
対処
取り急ぎ、jedi-sakura.vbsのオプション "-O" を指定している部分(変数への代入)を ""(空文字)に修正することで、assertを有効化できる。
ただし、Assert処理が入るので、処理が重くなる。
環境
jedi-sakura-0.0.4.zip
Windows 10 Pro
サクラエディタ Ver. 2.2.0.1
Python 3.6.5 :: Anaconda, Inc.
conda list | grep jedi
jedi 0.11.1 py36_1
conda list | grep conda
anaconda-client 1.6.14 py36_0
anaconda-navigator 1.8.2 py36_0
anaconda-project 0.8.2 py36hfad2e28_0
conda 4.5.0 py36_0
conda-build 3.8.0 py36_0
conda-env 2.6.0 h36134e3_1
conda-verify 2.0.0 py36h065de53_0
msys2-conda-epoch 20160418 1
conda list | grep numpy
numpy 1.14.2 py36h5c71026_1
numpydoc 0.8.0 py36_0
リリースブランチには、サクラエディタのzipファイルプラグインの形式に固めたモノも置くべきでは
プラグインの作りの問題なのか、補完直後にCtrl+zで正しく戻らない場合がある
(要調査)
Python3で正常に動作しない。
jedi-sakura-0.0.4.zip
に含まれるjedi-sakura.pyには2か所のprint関数呼び出しがあり、Syntax errorとなる。
環境
jedi-sakura-0.0.4.zip
Windows 10 Pro
サクラエディタ Ver. 2.2.0.1
Python 3.6.5 :: Anaconda, Inc.
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.