GithubHelp home page GithubHelp logo

jedi-sakura's People

Contributors

yatt avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

jedi-sakura's Issues

表示される候補が不完全となる場合がある

内容
サクラエディタの入力補完機能が実行されたときに、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

Python3でprint関数がsyntax error

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.

全体的なTest

  • python version (2.7/3.4)
  • encoding (cp932/utf-8)(日本語ありなし)
  • パスに空白、パスに日本語

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.