Comments (7)
This feature has been added to master, though it may need some fix.
from merlin.
Nice. I have a local build of merlin going now -- I'll update and try it out. Is this enabled by default in the emacs mode?
from merlin.
I can't tell anything about emacs support, though it should work out-of-the-box I think. I coded it quickly as a PoC, I will take more time to test it this we.
from merlin.
In this regard, I have a loose suggestion: if you have features that can be enabled via a command line flag to merlin, there should be an obvious mapping between the command line flag to merlin and what one needs to do to enable it via emacs. Maybe this is as simple as having an emacs mode variable called "merlin-command-line-flags". That way there isnt always an this issue of updating the emacs mode to toggle some command line flags to merlin.
from merlin.
It is already implemented in master since 1.2 I believe.
Use M-x merlin-process-add-flag yourflag, and then restart the
process with C-c r (or merlin-restart-process).
@def-lkb, could you update the variable merlin--flags that holds the
list of possible flags in merlin.el when you add a flag ? (or ping me)
There is no mechanism for default flags though setting
merlin--current-flags might do the job for the moment.
On jeu. 15/aoรปt 2013 (17:13), Roshan James wrote:
In this regard, I have a loose suggestion: if you have features that can be enabled via a command line flag to merlin, there should be an obvious mapping between the command line flag to merlin and what one needs to do to enable it via emacs. Maybe this is as simple as having an emacs mode variable called "merlin-command-line-flags". That way there isnt always an this issue of updating the emacs mode to toggle some command line flags to merlin.
Reply to this email directly or view it on GitHub:
#59 (comment)
from merlin.
I tried to verify if merlin will auto-complete from .ml files in the current directory. It does not seem to work. I am at revision fef38bd.
In the directory I have three files called a.ml, b.ml and f.ml. When editing f.ml I type A.{M-/} and I see nothing. Note that the file a.ml is not compiled yet. b.ml is compiled and has a b.cmi. When I type B.{M-/} it does autocomplete.
In the common case, such as when working on a library, there might be many .ml files in a dir which maynot be compiling as yet. They may not have .cmi files. However it would be nice to generate auto-completion for them.
I tried to force the parsing of source files by creating the following .merlin file in the dir:
SRC .
REC
This seemed to have no effect -- i.e. A.{M-/} still did not auto-complete. I restarted the merlin process.
from merlin.
Now that experimental has been merged in master branch, this bug should be fixed.
Can you confirm?
from merlin.
Related Issues (20)
- Feature: provide information about the syntax HOT 1
- Improve the granularity of the typer cache to maximise reuse. HOT 1
- merlin.hide can hide type-signatures inside modules? HOT 2
- Build failure of `merlin-lib` with OCaml 4.14.1: `Error: Unbound value Sys.is_regular_file` HOT 2
- Missing a source digest when looking for an implementation HOT 1
- `501-preview` doesn't interpret the `-cmi-file` flag on the command line. HOT 1
- Suprious `A type variable is unbound in this type declaration` on module not found
- Enrich Merlin telemetry with info about cache hits and misses HOT 1
- merlin gives syntax error on #use directive (or #require) HOT 1
- OCaml 5.1.1 support HOT 7
- Feature: jump to next/previous case HOT 1
- FLG -pp ppx.exe -as-pp does not work on Windows HOT 4
- Invalid arg from Marshal.from_bytes
- Fuzzy-CI should not include Stacktrace in diff generation
- `type-expression` crashes on function applications involving local types
- Identifier renaming also for Emacs? HOT 4
- In 5.2 preview, destruct does not work on function parameter anymore
- Merlin emacs mode does not support project-wide occurrences HOT 1
- `complete-prefix` short-circuits too eagerly when deciding whether to return only record field names
- Implement Enhanced Hover Feature for PPXs in Merlin
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from merlin.